(()=>{var e={115(e){var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!i(e[l],a[l]))return!1;return!0}if(r&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],a[c[l]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},1020(e,t,r){"use strict";
/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n=r(1594),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,i={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!l.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},1594(e){"use strict";e.exports=React},2799(e,t){"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function w(e){return S(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return w(e)||S(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===i},t.isLazy=function(e){return S(e)===g},t.isMemo=function(e){return S(e)===m},t.isPortal=function(e){return S(e)===o},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===v||e.$$typeof===x||e.$$typeof===b)},t.typeOf=S},4146(e,t,r){"use strict";var n=r(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=f(r);o&&o!==h&&e(t,o,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),g=0;g<a.length;++g){var b=a[g];if(!(i[b]||n&&n[b]||m&&m[b]||s&&s[b])){var y=p(r,b);try{c(t,b,y)}catch(e){}}}}return t}},4363(e,t,r){"use strict";e.exports=r(2799)},4848(e,t,r){"use strict";e.exports=r(1020)},5206(e){"use strict";e.exports=ReactDOM},5338(e,t,r){"use strict";var n=r(5206);t.H=n.createRoot,n.hydrateRoot},8394(e,t,r){e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[i]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[a]=u["[object Map]"]=u["[object Number]"]=u[s]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var d="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,p="object"==typeof self&&self&&self.Object===Object&&self,f=d||p||Function("return this")(),h=t&&!t.nodeType&&t,m=h&&e&&!e.nodeType&&e,g=m&&m.exports===h,b=g&&d.process,y=function(){try{var e=m&&m.require&&m.require("util").types;return e||b&&b.binding&&b.binding("util")}catch(e){}}(),v=y&&y.isTypedArray;var x,S,w,_=Array.prototype,k=Function.prototype,E=Object.prototype,C=f["__core-js_shared__"],P=k.toString,j=E.hasOwnProperty,T=(x=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",A=E.toString,R=P.call(Object),O=RegExp("^"+P.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=g?f.Buffer:void 0,F=f.Symbol,B=f.Uint8Array,I=z?z.allocUnsafe:void 0,D=(S=Object.getPrototypeOf,w=Object,function(e){return S(w(e))}),M=Object.create,$=E.propertyIsEnumerable,L=_.splice,N=F?F.toStringTag:void 0,V=function(){try{var e=he(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),W=z?z.isBuffer:void 0,U=Math.max,q=Date.now,H=he(f,"Map"),G=he(Object,"create"),Y=function(){function e(){}return function(t){if(!Ce(t))return{};if(M)return M(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function X(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function K(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function J(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Z(e){var t=this.__data__=new K(e);this.size=t.size}function Q(e,t){var r=Se(e),n=!r&&xe(e),o=!r&&!n&&_e(e),i=!r&&!n&&!o&&je(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=s.length;for(var c in e)!t&&!j.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||me(c,l))||s.push(c);return s}function ee(e,t,r){(void 0!==r&&!ve(e[t],r)||void 0===r&&!(t in e))&&ne(e,t,r)}function te(e,t,r){var n=e[t];j.call(e,t)&&ve(n,r)&&(void 0!==r||t in e)||ne(e,t,r)}function re(e,t){for(var r=e.length;r--;)if(ve(e[r][0],t))return r;return-1}function ne(e,t,r){"__proto__"==t&&V?V(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}X.prototype.clear=function(){this.__data__=G?G(null):{},this.size=0},X.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},X.prototype.get=function(e){var t=this.__data__;if(G){var r=t[e];return r===n?void 0:r}return j.call(t,e)?t[e]:void 0},X.prototype.has=function(e){var t=this.__data__;return G?void 0!==t[e]:j.call(t,e)},X.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=G&&void 0===t?n:t,this},K.prototype.clear=function(){this.__data__=[],this.size=0},K.prototype.delete=function(e){var t=this.__data__,r=re(t,e);return!(r<0)&&(r==t.length-1?t.pop():L.call(t,r,1),--this.size,!0)},K.prototype.get=function(e){var t=this.__data__,r=re(t,e);return r<0?void 0:t[r][1]},K.prototype.has=function(e){return re(this.__data__,e)>-1},K.prototype.set=function(e,t){var r=this.__data__,n=re(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},J.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(H||K),string:new X}},J.prototype.delete=function(e){var t=fe(this,e).delete(e);return this.size-=t?1:0,t},J.prototype.get=function(e){return fe(this,e).get(e)},J.prototype.has=function(e){return fe(this,e).has(e)},J.prototype.set=function(e,t){var r=fe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Z.prototype.clear=function(){this.__data__=new K,this.size=0},Z.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Z.prototype.get=function(e){return this.__data__.get(e)},Z.prototype.has=function(e){return this.__data__.has(e)},Z.prototype.set=function(e,t){var r=this.__data__;if(r instanceof K){var n=r.__data__;if(!H||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new J(n)}return r.set(e,t),this.size=r.size,this};var oe,ie=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[oe?a:++n];if(!1===t(o[s],s,o))break}return e};function ae(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":N&&N in Object(e)?function(e){var t=j.call(e,N),r=e[N];try{e[N]=void 0;var n=!0}catch(e){}var o=A.call(e);n&&(t?e[N]=r:delete e[N]);return o}(e):function(e){return A.call(e)}(e)}function se(e){return Pe(e)&&ae(e)==i}function le(e){return!(!Ce(e)||function(e){return!!T&&T in e}(e))&&(ke(e)?O:l).test(function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function ce(e){if(!Ce(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ge(e),r=[];for(var n in e)("constructor"!=n||!t&&j.call(e,n))&&r.push(n);return r}function ue(e,t,r,n,o){e!==t&&ie(t,function(i,a){if(o||(o=new Z),Ce(i))!function(e,t,r,n,o,i,a){var l=be(e,r),c=be(t,r),u=a.get(c);if(u)return void ee(e,r,u);var d=i?i(l,c,r+"",e,t,a):void 0,p=void 0===d;if(p){var f=Se(c),h=!f&&_e(c),m=!f&&!h&&je(c);d=c,f||h||m?Se(l)?d=l:Pe(x=l)&&we(x)?d=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r<n;)t[r]=e[r];return t}(l):h?(p=!1,d=function(e,t){if(t)return e.slice();var r=e.length,n=I?I(r):new e.constructor(r);return e.copy(n),n}(c,!0)):m?(p=!1,g=c,b=!0?(y=g.buffer,v=new y.constructor(y.byteLength),new B(v).set(new B(y)),v):g.buffer,d=new g.constructor(b,g.byteOffset,g.length)):d=[]:function(e){if(!Pe(e)||ae(e)!=s)return!1;var t=D(e);if(null===t)return!0;var r=j.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&P.call(r)==R}(c)||xe(c)?(d=l,xe(l)?d=function(e){return function(e,t,r,n){var o=!r;r||(r={});var i=-1,a=t.length;for(;++i<a;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),o?ne(r,s,l):te(r,s,l)}return r}(e,Te(e))}(l):Ce(l)&&!ke(l)||(d=function(e){return"function"!=typeof e.constructor||ge(e)?{}:Y(D(e))}(c))):p=!1}var g,b,y,v;var x;p&&(a.set(c,d),o(d,c,n,i,a),a.delete(c));ee(e,r,d)}(e,t,a,r,ue,n,o);else{var l=n?n(be(e,a),i,a+"",e,t,o):void 0;void 0===l&&(l=i),ee(e,a,l)}},Te)}function de(e,t){return ye(function(e,t,r){return t=U(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=U(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,s)}}(e,t,Oe),e+"")}var pe=V?function(e,t){return V(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Oe;function fe(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function he(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return le(r)?r:void 0}function me(e,t){var r=typeof e;return!!(t=null==t?o:t)&&("number"==r||"symbol"!=r&&c.test(e))&&e>-1&&e%1==0&&e<t}function ge(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||E)}function be(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ye=function(e){var t=0,r=0;return function(){var n=q(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(pe);function ve(e,t){return e===t||e!=e&&t!=t}var xe=se(function(){return arguments}())?se:function(e){return Pe(e)&&j.call(e,"callee")&&!$.call(e,"callee")},Se=Array.isArray;function we(e){return null!=e&&Ee(e.length)&&!ke(e)}var _e=W||function(){return!1};function ke(e){if(!Ce(e))return!1;var t=ae(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ee(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Ce(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Pe(e){return null!=e&&"object"==typeof e}var je=v?function(e){return function(t){return e(t)}}(v):function(e){return Pe(e)&&Ee(e.length)&&!!u[ae(e)]};function Te(e){return we(e)?Q(e,!0):ce(e)}var Ae,Re=(Ae=function(e,t,r,n){ue(e,t,r,n)},de(function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=Ae.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(e,t,r){if(!Ce(r))return!1;var n=typeof t;return!!("number"==n?we(r)&&me(t,r.length):"string"==n&&t in r)&&ve(r[t],e)}(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var a=t[r];a&&Ae(e,a,r,o)}return e}));function Oe(e){return e}e.exports=Re}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n](i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e={};r.r(e),r.d(e,{hasBrowserEnv:()=>wy,hasStandardBrowserEnv:()=>ky,hasStandardBrowserWebWorkerEnv:()=>Ey,navigator:()=>_y,origin:()=>Cy});var t=r(1594),n=r.n(t),o=r(5338);function i(e,t={}){let r=!1;function n(t){const r=`chakra-${(["container","root"].includes(t??"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:r,selector:`.${r}`,toString:()=>t}}return{parts:function(...o){!function(){if(r)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");r=!0}();for(const e of o)t[e]=n(e);return i(e,t)},toPart:n,extend:function(...r){for(const e of r)e in t||(t[e]=n(e));return i(e,t)},selectors:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]))},classnames:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]))},get keys(){return Object.keys(t)},__type:{}}}const a=i("accordion").parts("root","container","button","panel","icon"),s=i("alert").parts("title","description","container","icon","spinner"),l=i("avatar").parts("label","badge","container","excessLabel","group"),c=i("breadcrumb").parts("link","item","container","separator"),u=(i("button").parts(),i("checkbox").parts("control","icon","container","label")),d=(i("progress").parts("track","filledTrack","label"),i("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer")),p=i("editable").parts("preview","input","textarea"),f=i("form").parts("container","requiredIndicator","helperText"),h=i("formError").parts("text","icon"),m=i("input").parts("addon","field","element","group"),g=i("list").parts("container","item","icon"),b=i("menu").parts("button","list","item","groupTitle","icon","command","divider"),y=i("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),v=i("numberinput").parts("root","field","stepperGroup","stepper"),x=(i("pininput").parts("field"),i("popover").parts("content","header","body","footer","popper","arrow","closeButton")),S=i("progress").parts("label","filledTrack","track"),w=i("radio").parts("container","control","label"),_=i("select").parts("field","icon"),k=i("slider").parts("container","track","thumb","filledTrack","mark"),E=i("stat").parts("container","label","helpText","number","icon"),C=i("switch").parts("container","track","thumb","label"),P=i("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),j=i("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),T=i("tag").parts("container","label","closeButton"),A=i("card").parts("container","header","body","footer");i("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function R(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}const{definePartsStyle:O,defineMultiStyleConfig:z}=R(a.keys),F=z({baseStyle:O({container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},panel:{pt:"2",px:"4",pb:"5"},icon:{fontSize:"1.25em"}})});function B(e){return function(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(function(e){if(e.includes("\\."))return e;const t=!Number.isInteger(parseFloat(e.toString()));return t?e.replace(".","\\."):e}(function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString())))}function I(e,t){return`var(${e}${t?`, ${t}`:""})`}function D(e,t=""){return B(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}function M(e,t,r){const n=D(e,r);return{variable:n,reference:I(n,t)}}function $(e,t,r){return Math.min(Math.max(e,r),t)}class L extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var N=L;function V(e){if("string"!=typeof e)throw new N(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=K.test(e)?function(e){const t=e.toLowerCase().trim(),r=U[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(t)];if(!r)throw new N(e);return`#${r}`}(e):e;const r=H.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(q(e,2),16)),parseInt(q(e[3]||"f",2),16)/255]}const n=G.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}const o=Y.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}const i=X.exec(t);if(i){const[t,r,n,o]=Array.from(i).slice(1).map(parseFloat);if($(0,100,r)!==r)throw new N(e);if($(0,100,n)!==n)throw new N(e);return[...Z(t,r,n),Number.isNaN(o)?1:o]}throw new N(e)}const W=e=>parseInt(e.replace(/_/g,""),36),U="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=W(t.substring(0,3)),n=W(t.substring(3)).toString(16);let o="";for(let e=0;e<6-n.length;e++)o+="0";return e[r]=`${o}${n}`,e},{});const q=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),H=new RegExp(`^#${q("([a-f0-9])",3)}([a-f0-9])?$`,"i"),G=new RegExp(`^#${q("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Y=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${q(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),X=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,K=/^[a-z]+$/i,J=e=>Math.round(255*e),Z=(e,t,r)=>{let n=r/100;if(0===t)return[n,n,n].map(J);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,c=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,c=a):o>=3&&o<4?(l=a,c=i):o>=4&&o<5?(s=a,c=i):o>=5&&o<6&&(s=i,c=a);const u=n-i/2;return[s+u,l+u,c+u].map(J)};function Q(e,t,r,n){return`rgba(${$(0,255,e).toFixed()}, ${$(0,255,t).toFixed()}, ${$(0,255,r).toFixed()}, ${parseFloat($(0,1,n).toFixed(3))})`}function ee(e,t){const[r,n,o,i]=V(e);return Q(r,n,o,i-t)}const te=(e,t,r)=>{const n=function(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:o;return e===o?r:e}(e,`colors.${t}`,t);try{return function(e){const[t,r,n,o]=V(e);let i=e=>{const t=$(0,255,e).toString(16);return 1===t.length?`0${t}`:t};i(t),i(r),i(n),o<1&&i(Math.round(255*o))}(n),n}catch{return r??"#000000"}},re=e=>t=>{const r=(e=>{const[t,r,n]=V(e);return(299*t+587*r+114*n)/1e3})(te(t,e));return r<128?"dark":"light"},ne=(e,t)=>r=>ee(te(r,e),1-t);function oe(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(\n    45deg,\n    ${t} 25%,\n    transparent 25%,\n    transparent 50%,\n    ${t} 50%,\n    ${t} 75%,\n    transparent 75%,\n    transparent\n  )`,backgroundSize:`${e} ${e}`}}function ie(e){const t=`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`;return e&&(r=e,0!==Object.keys(r).length)?e.string&&e.colors?function(e,t){let r=0;if(0===e.length)return t[0];for(let t=0;t<e.length;t+=1)r=e.charCodeAt(t)+((r<<5)-r),r&=r;return r=(r%t.length+t.length)%t.length,t[r]}(e.string,e.colors):e.string&&!e.colors?function(e){let t=0;if(0===e.length)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t&=t;let r="#";for(let e=0;e<3;e+=1){r+=`00${(t>>8*e&255).toString(16)}`.substr(-2)}return r}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):t:t;var r}const{definePartsStyle:ae,defineMultiStyleConfig:se}=R(s.keys),le=M("alert-fg"),ce=M("alert-bg");function ue(e){const{theme:t,colorScheme:r}=e;return{light:`colors.${r}.100`,dark:ne(`${r}.200`,.16)(t)}}const de=se({baseStyle:ae({container:{bg:ce.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:le.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:le.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:ae(e=>{const{colorScheme:t}=e,r=ue(e);return{container:{[le.variable]:`colors.${t}.600`,[ce.variable]:r.light,_dark:{[le.variable]:`colors.${t}.200`,[ce.variable]:r.dark}}}}),"left-accent":ae(e=>{const{colorScheme:t}=e,r=ue(e);return{container:{[le.variable]:`colors.${t}.600`,[ce.variable]:r.light,_dark:{[le.variable]:`colors.${t}.200`,[ce.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:le.reference}}}),"top-accent":ae(e=>{const{colorScheme:t}=e,r=ue(e);return{container:{[le.variable]:`colors.${t}.600`,[ce.variable]:r.light,_dark:{[le.variable]:`colors.${t}.200`,[ce.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:le.reference}}}),solid:ae(e=>{const{colorScheme:t}=e;return{container:{[le.variable]:"colors.white",[ce.variable]:`colors.${t}.600`,_dark:{[le.variable]:"colors.gray.900",[ce.variable]:`colors.${t}.200`},color:le.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),pe={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},fe={...pe,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}};function he(e,...t){return"function"==typeof e?e(...t):e}const{definePartsStyle:me,defineMultiStyleConfig:ge}=R(l.keys),be=M("avatar-border-color"),ye=M("avatar-bg"),ve=M("avatar-font-size"),xe=M("avatar-size"),Se={borderRadius:"full",border:"0.2em solid",borderColor:be.reference,[be.variable]:"white",_dark:{[be.variable]:"colors.gray.800"}},we={bg:ye.reference,fontSize:ve.reference,width:xe.reference,height:xe.reference,lineHeight:"1",[ye.variable]:"colors.gray.200",_dark:{[ye.variable]:"colors.whiteAlpha.400"}},_e=e=>{const{name:t,theme:r}=e,n=t?ie({string:t}):"colors.gray.400",o=(e=>t=>"dark"===re(e)(t))(n)(r);let i="white";return o||(i="gray.800"),{bg:ye.reference,fontSize:ve.reference,color:i,borderColor:be.reference,verticalAlign:"top",width:xe.reference,height:xe.reference,"&:not([data-loaded])":{[ye.variable]:n},[be.variable]:"colors.white",_dark:{[be.variable]:"colors.gray.800"}}},ke={fontSize:ve.reference,lineHeight:"1"};function Ee(e){const t="100%"!==e?fe[e]:void 0;return me({container:{[xe.variable]:t??e,[ve.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[xe.variable]:t??e,[ve.variable]:`calc(${t??e} / 2.5)`}})}const Ce=ge({baseStyle:me(e=>({badge:he(Se,e),excessLabel:he(we,e),container:he(_e,e),label:ke})),sizes:{"2xs":Ee(4),xs:Ee(6),sm:Ee(8),md:Ee(12),lg:Ee(16),xl:Ee(24),"2xl":Ee(32),full:Ee("100%")},defaultProps:{size:"md"}}),Pe=function(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[t,o]=n;r[t]=M(`${e}-${t}`,o);continue}r[n]=M(`${e}-${n}`)}return r}("badge",["bg","color","shadow"]),je=e=>{const{colorScheme:t,theme:r}=e,n=ne(`${t}.500`,.6)(r);return{[Pe.bg.variable]:`colors.${t}.500`,[Pe.color.variable]:"colors.white",_dark:{[Pe.bg.variable]:n,[Pe.color.variable]:"colors.whiteAlpha.800"}}},Te=e=>{const{colorScheme:t,theme:r}=e,n=ne(`${t}.200`,.16)(r);return{[Pe.bg.variable]:`colors.${t}.100`,[Pe.color.variable]:`colors.${t}.800`,_dark:{[Pe.bg.variable]:n,[Pe.color.variable]:`colors.${t}.200`}}},Ae=e=>{const{colorScheme:t,theme:r}=e,n=ne(`${t}.200`,.8)(r);return{[Pe.color.variable]:`colors.${t}.500`,_dark:{[Pe.color.variable]:n},[Pe.shadow.variable]:`inset 0 0 0px 1px ${Pe.color.reference}`}},Re={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Pe.bg.reference,color:Pe.color.reference,boxShadow:Pe.shadow.reference},variants:{solid:je,subtle:Te,outline:Ae},defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Oe,definePartsStyle:ze}=R(c.keys),Fe=M("breadcrumb-link-decor"),Be=Oe({baseStyle:ze({link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Fe.reference,[Fe.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Fe.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}})});function Ie(e,t){return r=>"dark"===r.colorMode?t:e}function De(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?"vertical"===t?r:n:{}}const Me=e=>{const{colorScheme:t,theme:r}=e;if("gray"===t)return{color:Ie("gray.800","whiteAlpha.900")(e),_hover:{bg:Ie("gray.100","whiteAlpha.200")(e)},_active:{bg:Ie("gray.200","whiteAlpha.300")(e)}};const n=ne(`${t}.200`,.12)(r),o=ne(`${t}.200`,.24)(r);return{color:Ie(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:Ie(`${t}.50`,n)(e)},_active:{bg:Ie(`${t}.100`,o)(e)}}},$e={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Le=e=>{const{colorScheme:t}=e;if("gray"===t){const t=Ie("gray.100","whiteAlpha.200")(e);return{bg:t,color:Ie("gray.800","whiteAlpha.900")(e),_hover:{bg:Ie("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:Ie("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${t}.500`,color:n="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=$e[t]??{},a=Ie(r,`${t}.200`)(e);return{bg:a,color:Ie(n,"gray.800")(e),_hover:{bg:Ie(o,`${t}.300`)(e),_disabled:{bg:a}},_active:{bg:Ie(i,`${t}.400`)(e)}}},Ne={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:Me,outline:e=>{const{colorScheme:t}=e,r=Ie("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...he(Me,e)}},solid:Le,link:e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Ie(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Ie(`${t}.700`,`${t}.500`)(e)}}},unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}},sizes:{lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Ve,defineMultiStyleConfig:We}=R(A.keys),Ue=M("card-bg"),qe=M("card-padding"),He=M("card-shadow"),Ge=M("card-radius"),Ye=M("card-border-width","0"),Xe=M("card-border-color"),Ke=Ve({container:{[Ue.variable]:"colors.chakra-body-bg",backgroundColor:Ue.reference,boxShadow:He.reference,borderRadius:Ge.reference,color:"chakra-body-text",borderWidth:Ye.reference,borderColor:Xe.reference},body:{padding:qe.reference,flex:"1 1 0%"},header:{padding:qe.reference},footer:{padding:qe.reference}}),Je={sm:Ve({container:{[Ge.variable]:"radii.base",[qe.variable]:"space.3"}}),md:Ve({container:{[Ge.variable]:"radii.md",[qe.variable]:"space.5"}}),lg:Ve({container:{[Ge.variable]:"radii.xl",[qe.variable]:"space.7"}})},Ze=We({baseStyle:Ke,variants:{elevated:Ve({container:{[He.variable]:"shadows.base",_dark:{[Ue.variable]:"colors.gray.700"}}}),outline:Ve({container:{[Ye.variable]:"1px",[Xe.variable]:"colors.chakra-border-color"}}),filled:Ve({container:{[Ue.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[qe.variable]:0},header:{[qe.variable]:0},footer:{[qe.variable]:0}}},sizes:Je,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:Qe,defineMultiStyleConfig:et}=R(u.keys),tt=M("checkbox-size"),rt=e=>{const{colorScheme:t}=e;return{w:tt.reference,h:tt.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Ie(`${t}.500`,`${t}.200`)(e),borderColor:Ie(`${t}.500`,`${t}.200`)(e),color:Ie("white","gray.900")(e),_hover:{bg:Ie(`${t}.600`,`${t}.300`)(e),borderColor:Ie(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:Ie("gray.200","transparent")(e),bg:Ie("gray.200","whiteAlpha.300")(e),color:Ie("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:Ie(`${t}.500`,`${t}.200`)(e),borderColor:Ie(`${t}.500`,`${t}.200`)(e),color:Ie("white","gray.900")(e)},_disabled:{bg:Ie("gray.100","whiteAlpha.100")(e),borderColor:Ie("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Ie("red.500","red.300")(e)}}},nt={_disabled:{cursor:"not-allowed"}},ot={userSelect:"none",_disabled:{opacity:.4}},it={transitionProperty:"transform",transitionDuration:"normal"},at=et({baseStyle:Qe(e=>({icon:it,container:nt,control:he(rt,e),label:ot})),sizes:{sm:Qe({control:{[tt.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Qe({control:{[tt.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Qe({control:{[tt.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}});function st(e){const t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function lt(e,t){return`var(${st(e)}${t?`, ${t}`:""})`}function ct(e,t=""){return`--${function(e,t=""){return[t,st(e)].filter(Boolean).join("-")}(e,t)}`}function ut(e,t){const r=ct(e,t?.prefix);return{variable:r,reference:lt(r,dt(t?.fallback))}}function dt(e){return"string"==typeof e?e:e?.reference}const pt=ut("close-button-size"),ft=ut("close-button-bg"),ht={baseStyle:{w:[pt.reference],h:[pt.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[ft.variable]:"colors.blackAlpha.100",_dark:{[ft.variable]:"colors.whiteAlpha.100"}},_active:{[ft.variable]:"colors.blackAlpha.200",_dark:{[ft.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:ft.reference},sizes:{lg:{[pt.variable]:"sizes.10",fontSize:"md"},md:{[pt.variable]:"sizes.8",fontSize:"xs"},sm:{[pt.variable]:"sizes.6",fontSize:"2xs"}},defaultProps:{size:"md"}},{variants:mt,defaultProps:gt}=Re,bt={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Pe.bg.reference,color:Pe.color.reference,boxShadow:Pe.shadow.reference},variants:mt,defaultProps:gt},yt={baseStyle:{w:"100%",mx:"auto",maxW:"prose",px:"4"}},vt={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},{definePartsStyle:xt,defineMultiStyleConfig:St}=R(d.keys),wt=M("drawer-bg"),_t=M("drawer-box-shadow");function kt(e){return xt("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const Et={bg:"blackAlpha.600",zIndex:"modal"},Ct={display:"flex",zIndex:"modal",justifyContent:"center"},Pt=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[wt.variable]:"colors.white",[_t.variable]:"shadows.lg",_dark:{[wt.variable]:"colors.gray.700",[_t.variable]:"shadows.dark-lg"},bg:wt.reference,boxShadow:_t.reference}},jt={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Tt={position:"absolute",top:"2",insetEnd:"3"},At={px:"6",py:"2",flex:"1",overflow:"auto"},Rt={px:"6",py:"4"},Ot=St({baseStyle:xt(e=>({overlay:Et,dialogContainer:Ct,dialog:he(Pt,e),header:jt,closeButton:Tt,body:At,footer:Rt})),sizes:{xs:kt("xs"),sm:kt("md"),md:kt("lg"),lg:kt("2xl"),xl:kt("4xl"),full:kt("full")},defaultProps:{size:"xs"}}),{definePartsStyle:zt,defineMultiStyleConfig:Ft}=R(p.keys),Bt=Ft({baseStyle:zt({preview:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}})}),{definePartsStyle:It,defineMultiStyleConfig:Dt}=R(f.keys),Mt=M("form-control-color"),$t=Dt({baseStyle:It({container:{width:"100%",position:"relative"},requiredIndicator:{marginStart:"1",[Mt.variable]:"colors.red.500",_dark:{[Mt.variable]:"colors.red.300"},color:Mt.reference},helperText:{mt:"2",[Mt.variable]:"colors.gray.600",_dark:{[Mt.variable]:"colors.whiteAlpha.600"},color:Mt.reference,lineHeight:"normal",fontSize:"sm"}})}),{definePartsStyle:Lt,defineMultiStyleConfig:Nt}=R(h.keys),Vt=M("form-error-color"),Wt=Nt({baseStyle:Lt({text:{[Vt.variable]:"colors.red.500",_dark:{[Vt.variable]:"colors.red.300"},color:Vt.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},icon:{marginEnd:"0.5em",[Vt.variable]:"colors.red.500",_dark:{[Vt.variable]:"colors.red.300"},color:Vt.reference}})}),Ut={baseStyle:{fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},qt={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},{definePartsStyle:Ht,defineMultiStyleConfig:Gt}=R(m.keys),Yt=M("input-height"),Xt=M("input-font-size"),Kt=M("input-padding"),Jt=M("input-border-radius"),Zt=Ht({addon:{height:Yt.reference,fontSize:Xt.reference,px:Kt.reference,borderRadius:Jt.reference},field:{width:"100%",height:Yt.reference,fontSize:Xt.reference,px:Kt.reference,borderRadius:Jt.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Qt={lg:{[Xt.variable]:"fontSizes.lg",[Kt.variable]:"space.4",[Jt.variable]:"radii.md",[Yt.variable]:"sizes.12"},md:{[Xt.variable]:"fontSizes.md",[Kt.variable]:"space.4",[Jt.variable]:"radii.md",[Yt.variable]:"sizes.10"},sm:{[Xt.variable]:"fontSizes.sm",[Kt.variable]:"space.3",[Jt.variable]:"radii.sm",[Yt.variable]:"sizes.8"},xs:{[Xt.variable]:"fontSizes.xs",[Kt.variable]:"space.2",[Jt.variable]:"radii.sm",[Yt.variable]:"sizes.6"}},er={lg:Ht({field:Qt.lg,group:Qt.lg}),md:Ht({field:Qt.md,group:Qt.md}),sm:Ht({field:Qt.sm,group:Qt.sm}),xs:Ht({field:Qt.xs,group:Qt.xs})};function tr(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||Ie("blue.500","blue.300")(e),errorBorderColor:r||Ie("red.500","red.300")(e)}}const rr=Ht(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=tr(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Ie("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:te(t,n),boxShadow:`0 0 0 1px ${te(t,n)}`},_focusVisible:{zIndex:1,borderColor:te(t,r),boxShadow:`0 0 0 1px ${te(t,r)}`}},addon:{border:"1px solid",borderColor:Ie("inherit","whiteAlpha.50")(e),bg:Ie("gray.100","whiteAlpha.300")(e)}}}),nr=Ht(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=tr(e);return{field:{border:"2px solid",borderColor:"transparent",bg:Ie("gray.100","whiteAlpha.50")(e),_hover:{bg:Ie("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:te(t,n)},_focusVisible:{bg:"transparent",borderColor:te(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:Ie("gray.100","whiteAlpha.50")(e)}}}),or=Ht(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=tr(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:te(t,n),boxShadow:`0px 1px 0px 0px ${te(t,n)}`},_focusVisible:{borderColor:te(t,r),boxShadow:`0px 1px 0px 0px ${te(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),ir=Gt({baseStyle:Zt,sizes:er,variants:{outline:rr,filled:nr,flushed:or,unstyled:Ht({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),ar=M("kbd-bg"),sr={baseStyle:{[ar.variable]:"colors.gray.100",_dark:{[ar.variable]:"colors.whiteAlpha.100"},bg:ar.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}},lr={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},{defineMultiStyleConfig:cr,definePartsStyle:ur}=R(g.keys),dr=cr({baseStyle:ur({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),{defineMultiStyleConfig:pr,definePartsStyle:fr}=R(b.keys),hr=M("menu-bg"),mr=M("menu-shadow"),gr=pr({baseStyle:fr({button:{transitionProperty:"common",transitionDuration:"normal"},list:{[hr.variable]:"#fff",[mr.variable]:"shadows.sm",_dark:{[hr.variable]:"colors.gray.700",[mr.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:hr.reference,boxShadow:mr.reference},item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[hr.variable]:"colors.gray.100",_dark:{[hr.variable]:"colors.whiteAlpha.100"}},_active:{[hr.variable]:"colors.gray.200",_dark:{[hr.variable]:"colors.whiteAlpha.200"}},_expanded:{[hr.variable]:"colors.gray.100",_dark:{[hr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:hr.reference},groupTitle:{mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},icon:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},command:{opacity:.6},divider:{border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}})}),{defineMultiStyleConfig:br,definePartsStyle:yr}=R(y.keys),vr=M("modal-bg"),xr=M("modal-shadow"),Sr={bg:"blackAlpha.600",zIndex:"modal"},wr=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===r?"hidden":"auto",overscrollBehaviorY:"none"}},_r=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,[vr.variable]:"colors.white",[xr.variable]:"shadows.lg",_dark:{[vr.variable]:"colors.gray.700",[xr.variable]:"shadows.dark-lg"},bg:vr.reference,boxShadow:xr.reference}},kr={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Er={position:"absolute",top:"2",insetEnd:"3"},Cr=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}},Pr={px:"6",py:"4"};function jr(e){return yr("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const Tr=br({baseStyle:yr(e=>({overlay:Sr,dialogContainer:he(wr,e),dialog:he(_r,e),header:kr,closeButton:Er,body:he(Cr,e),footer:Pr})),sizes:{xs:jr("xs"),sm:jr("sm"),md:jr("md"),lg:jr("lg"),xl:jr("xl"),"2xl":jr("2xl"),"3xl":jr("3xl"),"4xl":jr("4xl"),"5xl":jr("5xl"),"6xl":jr("6xl"),full:jr("full")},defaultProps:{size:"md"}});function Ar(e){return Array.isArray(e)}function Rr(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Ar(e)}function Or(e){return Rr(e)&&e.reference?e.reference:String(e)}const zr=(e,...t)=>t.map(Or).join(` ${e} `).replace(/calc/g,""),Fr=(...e)=>`calc(${zr("+",...e)})`,Br=(...e)=>`calc(${zr("-",...e)})`,Ir=(...e)=>`calc(${zr("*",...e)})`,Dr=(...e)=>`calc(${zr("/",...e)})`,Mr=e=>{const t=Or(e);return null==t||Number.isNaN(parseFloat(t))?Ir(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},$r=Object.assign(e=>({add:(...t)=>$r(Fr(e,...t)),subtract:(...t)=>$r(Br(e,...t)),multiply:(...t)=>$r(Ir(e,...t)),divide:(...t)=>$r(Dr(e,...t)),negate:()=>$r(Mr(e)),toString:()=>e.toString()}),{add:Fr,subtract:Br,multiply:Ir,divide:Dr,negate:Mr}),Lr={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:Nr,definePartsStyle:Vr}=R(v.keys),Wr=ut("number-input-stepper-width"),Ur=ut("number-input-input-padding"),qr=$r(Wr).add("0.5rem").toString(),Hr=ut("number-input-bg"),Gr=ut("number-input-color"),Yr=ut("number-input-border-color"),Xr={[Wr.variable]:"sizes.6",[Ur.variable]:qr},Kr=e=>he(ir.baseStyle,e)?.field??{},Jr={width:Wr.reference},Zr={borderStart:"1px solid",borderStartColor:Yr.reference,color:Gr.reference,bg:Hr.reference,[Gr.variable]:"colors.chakra-body-text",[Yr.variable]:"colors.chakra-border-color",_dark:{[Gr.variable]:"colors.whiteAlpha.800",[Yr.variable]:"colors.whiteAlpha.300"},_active:{[Hr.variable]:"colors.gray.200",_dark:{[Hr.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}};function Qr(e){const t=ir.sizes?.[e],r={lg:"md",md:"md",sm:"sm",xs:"sm"},n=t.field?.fontSize??"md",o=Lr.fontSizes[n];return Vr({field:{...t.field,paddingInlineEnd:Ur.reference,verticalAlign:"top"},stepper:{fontSize:$r(o).multiply(.75).toString(),_first:{borderTopEndRadius:r[e]},_last:{borderBottomEndRadius:r[e],mt:"-1px",borderTopWidth:1}}})}const en=Nr({baseStyle:Vr(e=>({root:Xr,field:he(Kr,e)??{},stepperGroup:Jr,stepper:Zr})),sizes:{xs:Qr("xs"),sm:Qr("sm"),md:Qr("md"),lg:Qr("lg")},variants:ir.variants,defaultProps:ir.defaultProps}),tn={baseStyle:{...ir.baseStyle?.field,textAlign:"center"},sizes:{lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},variants:{outline:e=>he(ir.variants?.outline,e)?.field??{},flushed:e=>he(ir.variants?.flushed,e)?.field??{},filled:e=>he(ir.variants?.filled,e)?.field??{},unstyled:ir.variants?.unstyled.field??{}},defaultProps:ir.defaultProps},{defineMultiStyleConfig:rn,definePartsStyle:nn}=R(x.keys),on=ut("popper-bg"),an=ut("popper-arrow-bg"),sn=ut("popper-arrow-shadow-color"),ln=rn({baseStyle:nn({popper:{zIndex:"popover"},content:{[on.variable]:"colors.white",bg:on.reference,[an.variable]:on.reference,[sn.variable]:"colors.gray.200",_dark:{[on.variable]:"colors.gray.700",[sn.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},header:{px:3,py:2,borderBottomWidth:"1px"},body:{px:3,py:2},footer:{px:3,py:2,borderTopWidth:"1px"},closeButton:{position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}})}),{defineMultiStyleConfig:cn,definePartsStyle:un}=R(S.keys),dn=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=Ie(oe(),oe("1rem","rgba(0,0,0,0.1)"))(e),a=Ie(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(\n    to right,\n    transparent 0%,\n    ${te(r,a)} 50%,\n    transparent 100%\n  )`;return{...!n&&o&&i,...n?{bgImage:s}:{bgColor:a}}},pn={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},fn=e=>({bg:Ie("gray.100","whiteAlpha.300")(e)}),hn=e=>({transitionProperty:"common",transitionDuration:"slow",...dn(e)}),mn=un(e=>({label:pn,filledTrack:hn(e),track:fn(e)})),gn=cn({sizes:{xs:un({track:{h:"1"}}),sm:un({track:{h:"2"}}),md:un({track:{h:"3"}}),lg:un({track:{h:"4"}})},baseStyle:mn,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:bn,definePartsStyle:yn}=R(w.keys),vn=e=>{const t=he(at.baseStyle,e)?.control;return{...t,borderRadius:"full",_checked:{...t?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},xn=bn({baseStyle:yn(e=>({label:at.baseStyle?.(e).label,container:at.baseStyle?.(e).container,control:vn(e)})),sizes:{md:yn({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:yn({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:yn({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Sn,definePartsStyle:wn}=R(_.keys),_n=M("select-bg"),kn={paddingInlineEnd:"8"},En=Sn({baseStyle:wn({field:{...ir.baseStyle?.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:_n.reference,[_n.variable]:"colors.white",_dark:{[_n.variable]:"colors.gray.700"},"> option, > optgroup":{bg:_n.reference}},icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),sizes:{lg:{...ir.sizes?.lg,field:{...ir.sizes?.lg.field,...kn}},md:{...ir.sizes?.md,field:{...ir.sizes?.md.field,...kn}},sm:{...ir.sizes?.sm,field:{...ir.sizes?.sm.field,...kn}},xs:{...ir.sizes?.xs,field:{...ir.sizes?.xs.field,...kn},icon:{insetEnd:"1"}}},variants:ir.variants,defaultProps:ir.defaultProps}),Cn=M("skeleton-start-color"),Pn=M("skeleton-end-color"),jn={baseStyle:{[Cn.variable]:"colors.gray.100",[Pn.variable]:"colors.gray.400",_dark:{[Cn.variable]:"colors.gray.800",[Pn.variable]:"colors.gray.600"},background:Cn.reference,borderColor:Pn.reference,opacity:.7,borderRadius:"sm"}},Tn=M("skip-link-bg"),An={baseStyle:{borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Tn.variable]:"colors.white",_dark:{[Tn.variable]:"colors.gray.700"},bg:Tn.reference}}};function Rn(e){return Rr(e)&&e.reference?e.reference:String(e)}const On=(e,...t)=>t.map(Rn).join(` ${e} `).replace(/calc/g,""),zn=(...e)=>`calc(${On("+",...e)})`,Fn=(...e)=>`calc(${On("-",...e)})`,Bn=(...e)=>`calc(${On("*",...e)})`,In=(...e)=>`calc(${On("/",...e)})`,Dn=e=>{const t=Rn(e);return null==t||Number.isNaN(parseFloat(t))?Bn(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Mn=Object.assign(e=>({add:(...t)=>Mn(zn(e,...t)),subtract:(...t)=>Mn(Fn(e,...t)),multiply:(...t)=>Mn(Bn(e,...t)),divide:(...t)=>Mn(In(e,...t)),negate:()=>Mn(Dn(e)),toString:()=>e.toString()}),{add:zn,subtract:Fn,multiply:Bn,divide:In,negate:Dn}),{defineMultiStyleConfig:$n,definePartsStyle:Ln}=R(k.keys),Nn=M("slider-thumb-size"),Vn=M("slider-track-size"),Wn=M("slider-bg"),Un=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...De({orientation:t,vertical:{h:"100%",px:Mn(Nn.reference).divide(2).toString()},horizontal:{w:"100%",py:Mn(Nn.reference).divide(2).toString()}})}},qn=e=>({...De({orientation:e.orientation,horizontal:{h:Vn.reference},vertical:{w:Vn.reference}}),overflow:"hidden",borderRadius:"sm",[Wn.variable]:"colors.gray.200",_dark:{[Wn.variable]:"colors.whiteAlpha.200"},_disabled:{[Wn.variable]:"colors.gray.300",_dark:{[Wn.variable]:"colors.whiteAlpha.300"}},bg:Wn.reference}),Hn=e=>{const{orientation:t}=e;return{...De({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:Nn.reference,h:Nn.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}},Gn=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Wn.variable]:`colors.${t}.500`,_dark:{[Wn.variable]:`colors.${t}.200`},bg:Wn.reference}},Yn=$n({baseStyle:Ln(e=>({container:Un(e),track:qn(e),thumb:Hn(e),filledTrack:Gn(e)})),sizes:{lg:Ln({container:{[Nn.variable]:"sizes.4",[Vn.variable]:"sizes.1"}}),md:Ln({container:{[Nn.variable]:"sizes.3.5",[Vn.variable]:"sizes.1"}}),sm:Ln({container:{[Nn.variable]:"sizes.2.5",[Vn.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),Xn=ut("spinner-size"),Kn={baseStyle:{width:[Xn.reference],height:[Xn.reference]},sizes:{xs:{[Xn.variable]:"sizes.3"},sm:{[Xn.variable]:"sizes.4"},md:{[Xn.variable]:"sizes.6"},lg:{[Xn.variable]:"sizes.8"},xl:{[Xn.variable]:"sizes.12"}},defaultProps:{size:"md"}},{defineMultiStyleConfig:Jn,definePartsStyle:Zn}=R(E.keys),Qn=Jn({baseStyle:Zn({container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:"2"},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}}),sizes:{md:Zn({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),{defineMultiStyleConfig:eo,definePartsStyle:to}=R(["stepper","step","title","description","indicator","separator","icon","number"]),ro=M("stepper-indicator-size"),no=M("stepper-icon-size"),oo=M("stepper-title-font-size"),io=M("stepper-description-font-size"),ao=M("stepper-accent-color"),so=eo({baseStyle:to(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[ao.variable]:`colors.${e}.500`,_dark:{[ao.variable]:`colors.${e}.200`}},title:{fontSize:oo.reference,fontWeight:"medium"},description:{fontSize:io.reference,color:"chakra-subtle-text"},number:{fontSize:oo.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:no.reference,height:no.reference},indicator:{flexShrink:0,borderRadius:"full",width:ro.reference,height:ro.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ao.reference},"&[data-status=complete]":{bg:ao.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ao.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${ro.reference} - 8px)`,top:`calc(${ro.reference} + 4px)`,insetStart:`calc(${ro.reference} / 2 - 1px)`}}})),sizes:{xs:to({stepper:{[ro.variable]:"sizes.4",[no.variable]:"sizes.3",[oo.variable]:"fontSizes.xs",[io.variable]:"fontSizes.xs"}}),sm:to({stepper:{[ro.variable]:"sizes.6",[no.variable]:"sizes.4",[oo.variable]:"fontSizes.sm",[io.variable]:"fontSizes.xs"}}),md:to({stepper:{[ro.variable]:"sizes.8",[no.variable]:"sizes.5",[oo.variable]:"fontSizes.md",[io.variable]:"fontSizes.sm"}}),lg:to({stepper:{[ro.variable]:"sizes.10",[no.variable]:"sizes.6",[oo.variable]:"fontSizes.lg",[io.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:lo,definePartsStyle:co}=R(C.keys),uo=ut("switch-track-width"),po=ut("switch-track-height"),fo=ut("switch-track-diff"),ho=$r.subtract(uo,po),mo=ut("switch-thumb-x"),go=ut("switch-bg"),bo=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[uo.reference],height:[po.reference],transitionProperty:"common",transitionDuration:"fast",[go.variable]:"colors.gray.300",_dark:{[go.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[go.variable]:`colors.${t}.500`,_dark:{[go.variable]:`colors.${t}.200`}},bg:go.reference}},yo={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[po.reference],height:[po.reference],_checked:{transform:`translateX(${mo.reference})`}},vo=lo({baseStyle:co(e=>({container:{[fo.variable]:ho,[mo.variable]:fo.reference,_rtl:{[mo.variable]:$r(fo).negate().toString()}},track:bo(e),thumb:yo})),sizes:{sm:co({container:{[uo.variable]:"1.375rem",[po.variable]:"sizes.3"}}),md:co({container:{[uo.variable]:"1.875rem",[po.variable]:"sizes.4"}}),lg:co({container:{[uo.variable]:"2.875rem",[po.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:xo,definePartsStyle:So}=R(P.keys),wo=So({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),_o={"&[data-is-numeric=true]":{textAlign:"end"}},ko=xo({baseStyle:wo,variants:{simple:So(e=>{const{colorScheme:t}=e;return{th:{color:Ie("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Ie(`${t}.100`,`${t}.700`)(e),..._o},td:{borderBottom:"1px",borderColor:Ie(`${t}.100`,`${t}.700`)(e),..._o},caption:{color:Ie("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:So(e=>{const{colorScheme:t}=e;return{th:{color:Ie("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Ie(`${t}.100`,`${t}.700`)(e),..._o},td:{borderBottom:"1px",borderColor:Ie(`${t}.100`,`${t}.700`)(e),..._o},caption:{color:Ie("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Ie(`${t}.100`,`${t}.700`)(e)},td:{background:Ie(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:{}},sizes:{sm:So({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:So({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:So({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Eo=M("tabs-color"),Co=M("tabs-bg"),Po=M("tabs-border-color"),{defineMultiStyleConfig:jo,definePartsStyle:To}=R(j.keys),Ao=e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}},Ro=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},Oo=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===r?"column":"row"}},zo={p:4},Fo=To(e=>({root:Ao(e),tab:Ro(e),tablist:Oo(e),tabpanel:zo})),Bo={sm:To({tab:{py:1,px:4,fontSize:"sm"}}),md:To({tab:{fontSize:"md",py:2,px:4}}),lg:To({tab:{fontSize:"lg",py:3,px:4}})},Io=To(e=>{const{colorScheme:t,orientation:r}=e,n="vertical"===r,o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[Eo.variable]:`colors.${t}.600`,_dark:{[Eo.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Co.variable]:"colors.gray.200",_dark:{[Co.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Eo.reference,bg:Co.reference}}}),Do=To(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Po.variable]:"transparent",_selected:{[Eo.variable]:`colors.${t}.600`,[Po.variable]:"colors.white",_dark:{[Eo.variable]:`colors.${t}.300`,[Po.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Po.reference},color:Eo.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Mo=To(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Co.variable]:"colors.gray.50",_dark:{[Co.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Co.variable]:"colors.white",[Eo.variable]:`colors.${t}.600`,_dark:{[Co.variable]:"colors.gray.800",[Eo.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Eo.reference,bg:Co.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),$o=To(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:te(r,`${t}.700`),bg:te(r,`${t}.100`)}}}}),Lo=jo({baseStyle:Fo,sizes:Bo,variants:{line:Io,enclosed:Do,"enclosed-colored":Mo,"soft-rounded":$o,"solid-rounded":To(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Eo.variable]:"colors.gray.600",_dark:{[Eo.variable]:"inherit"},_selected:{[Eo.variable]:"colors.white",[Co.variable]:`colors.${t}.600`,_dark:{[Eo.variable]:"colors.gray.800",[Co.variable]:`colors.${t}.300`}},color:Eo.reference,bg:Co.reference}}}),unstyled:To({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:No,definePartsStyle:Vo}=R(T.keys),Wo=M("tag-bg"),Uo=M("tag-color"),qo=M("tag-shadow"),Ho=M("tag-min-height"),Go=M("tag-min-width"),Yo=M("tag-font-size"),Xo=M("tag-padding-inline"),Ko=Vo({container:{fontWeight:"medium",lineHeight:1.2,outline:0,[Uo.variable]:Pe.color.reference,[Wo.variable]:Pe.bg.reference,[qo.variable]:Pe.shadow.reference,color:Uo.reference,bg:Wo.reference,boxShadow:qo.reference,borderRadius:"md",minH:Ho.reference,minW:Go.reference,fontSize:Yo.reference,px:Xo.reference,_focusVisible:{[qo.variable]:"shadows.outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}}),Jo={sm:Vo({container:{[Ho.variable]:"sizes.5",[Go.variable]:"sizes.5",[Yo.variable]:"fontSizes.xs",[Xo.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Vo({container:{[Ho.variable]:"sizes.6",[Go.variable]:"sizes.6",[Yo.variable]:"fontSizes.sm",[Xo.variable]:"space.2"}}),lg:Vo({container:{[Ho.variable]:"sizes.8",[Go.variable]:"sizes.8",[Yo.variable]:"fontSizes.md",[Xo.variable]:"space.3"}})},Zo=No({variants:{subtle:Vo(e=>({container:Re.variants?.subtle(e)})),solid:Vo(e=>({container:Re.variants?.solid(e)})),outline:Vo(e=>({container:Re.variants?.outline(e)}))},baseStyle:Ko,sizes:Jo,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),Qo={...ir.baseStyle?.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},ei={outline:e=>ir.variants?.outline(e).field??{},flushed:e=>ir.variants?.flushed(e).field??{},filled:e=>ir.variants?.filled(e).field??{},unstyled:ir.variants?.unstyled.field??{}},ti={baseStyle:Qo,sizes:{xs:ir.sizes?.xs.field??{},sm:ir.sizes?.sm.field??{},md:ir.sizes?.md.field??{},lg:ir.sizes?.lg.field??{}},variants:ei,defaultProps:{size:"md",variant:"outline"}},ri=ut("tooltip-bg"),ni=ut("tooltip-fg"),oi=ut("popper-arrow-bg"),ii={bg:ri.reference,color:ni.reference,[ri.variable]:"colors.gray.700",[ni.variable]:"colors.whiteAlpha.900",_dark:{[ri.variable]:"colors.gray.300",[ni.variable]:"colors.gray.900"},[oi.variable]:ri.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},ai={Accordion:F,Alert:de,Avatar:Ce,Badge:Re,Breadcrumb:Be,Button:Ne,Checkbox:at,CloseButton:ht,Code:bt,Container:yt,Divider:vt,Drawer:Ot,Editable:Bt,Form:$t,FormError:Wt,FormLabel:Ut,Heading:qt,Input:ir,Kbd:sr,Link:lr,List:dr,Menu:gr,Modal:Tr,NumberInput:en,PinInput:tn,Popover:ln,Progress:gn,Radio:xn,Select:En,Skeleton:jn,SkipLink:An,Slider:Yn,Spinner:Kn,Stat:Qn,Switch:vo,Table:ko,Tabs:Lo,Tag:Zo,Textarea:ti,Tooltip:{baseStyle:ii},Card:Ze,Stepper:so},si={property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}},li={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},...Lr,sizes:fe,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:pe,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:si},ci={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},ui={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},di={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},pi={semanticTokens:ci,direction:"ltr",...li,components:ai,styles:ui,config:di};var fi=r(4848);var hi=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),mi=Math.abs,gi=String.fromCharCode,bi=Object.assign;function yi(e){return e.trim()}function vi(e,t,r){return e.replace(t,r)}function xi(e,t){return e.indexOf(t)}function Si(e,t){return 0|e.charCodeAt(t)}function wi(e,t,r){return e.slice(t,r)}function _i(e){return e.length}function ki(e){return e.length}function Ei(e,t){return t.push(e),e}var Ci=1,Pi=1,ji=0,Ti=0,Ai=0,Ri="";function Oi(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ci,column:Pi,length:a,return:""}}function zi(e,t){return bi(Oi("",null,null,"",null,null,0),e,{length:-e.length},t)}function Fi(){return Ai=Ti>0?Si(Ri,--Ti):0,Pi--,10===Ai&&(Pi=1,Ci--),Ai}function Bi(){return Ai=Ti<ji?Si(Ri,Ti++):0,Pi++,10===Ai&&(Pi=1,Ci++),Ai}function Ii(){return Si(Ri,Ti)}function Di(){return Ti}function Mi(e,t){return wi(Ri,e,t)}function $i(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 Li(e){return Ci=Pi=1,ji=_i(Ri=e),Ti=0,[]}function Ni(e){return Ri="",e}function Vi(e){return yi(Mi(Ti-1,qi(91===e?e+2:40===e?e+1:e)))}function Wi(e){for(;(Ai=Ii())&&Ai<33;)Bi();return $i(e)>2||$i(Ai)>3?"":" "}function Ui(e,t){for(;--t&&Bi()&&!(Ai<48||Ai>102||Ai>57&&Ai<65||Ai>70&&Ai<97););return Mi(e,Di()+(t<6&&32==Ii()&&32==Bi()))}function qi(e){for(;Bi();)switch(Ai){case e:return Ti;case 34:case 39:34!==e&&39!==e&&qi(Ai);break;case 40:41===e&&qi(e);break;case 92:Bi()}return Ti}function Hi(e,t){for(;Bi()&&e+Ai!==57&&(e+Ai!==84||47!==Ii()););return"/*"+Mi(t,Ti-1)+"*"+gi(47===e?e:Bi())}function Gi(e){for(;!$i(Ii());)Bi();return Mi(e,Ti)}var Yi="-ms-",Xi="-moz-",Ki="-webkit-",Ji="comm",Zi="rule",Qi="decl",ea="@keyframes";function ta(e,t){for(var r="",n=ki(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function ra(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Qi:return e.return=e.return||e.value;case Ji:return"";case ea:return e.return=e.value+"{"+ta(e.children,n)+"}";case Zi:e.value=e.props.join(",")}return _i(r=ta(e.children,n))?e.return=e.value+"{"+r+"}":""}function na(e){return Ni(oa("",null,null,null,[""],e=Li(e),0,[0],e))}function oa(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,y=0,v="",x=o,S=i,w=n,_=v;g;)switch(h=y,y=Bi()){case 40:if(108!=h&&58==Si(_,d-1)){-1!=xi(_+=vi(Vi(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:_+=Vi(y);break;case 9:case 10:case 13:case 32:_+=Wi(h);break;case 92:_+=Ui(Di()-1,7);continue;case 47:switch(Ii()){case 42:case 47:Ei(aa(Hi(Bi(),Di()),t,r),l);break;default:_+="/"}break;case 123*m:s[c++]=_i(_)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(_=vi(_,/\f/g,"")),f>0&&_i(_)-d&&Ei(f>32?sa(_+";",n,r,d-1):sa(vi(_," ","")+";",n,r,d-2),l);break;case 59:_+=";";default:if(Ei(w=ia(_,t,r,c,u,o,s,v,x=[],S=[],d),i),123===y)if(0===u)oa(_,t,w,w,x,i,d,s,S);else switch(99===p&&110===Si(_,3)?100:p){case 100:case 108:case 109:case 115:oa(e,w,w,n&&Ei(ia(e,w,w,0,0,o,s,v,o,x=[],d),S),o,S,d,s,n?x:S);break;default:oa(_,w,w,w,[""],S,0,s,S)}}c=u=f=0,m=b=1,v=_="",d=a;break;case 58:d=1+_i(_),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Fi())continue;switch(_+=gi(y),y*m){case 38:b=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(_i(_)-1)*b,b=1;break;case 64:45===Ii()&&(_+=Vi(Bi())),p=Ii(),u=d=_i(v=_+=Gi(Di())),y++;break;case 45:45===h&&2==_i(_)&&(m=0)}}return i}function ia(e,t,r,n,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=ki(p),h=0,m=0,g=0;h<n;++h)for(var b=0,y=wi(e,d+1,d=mi(m=a[h])),v=e;b<f;++b)(v=yi(m>0?p[b]+" "+y:vi(y,/&\f/g,p[b])))&&(l[g++]=v);return Oi(e,t,r,0===o?Zi:s,l,c,u)}function aa(e,t,r){return Oi(e,t,r,Ji,gi(Ai),wi(e,2,-2),0)}function sa(e,t,r,n){return Oi(e,t,r,Qi,wi(e,0,n),wi(e,n+1,-1),n)}var la=function(e,t,r){for(var n=0,o=0;n=o,o=Ii(),38===n&&12===o&&(t[r]=1),!$i(o);)Bi();return Mi(e,Ti)},ca=function(e,t){return Ni(function(e,t){var r=-1,n=44;do{switch($i(n)){case 0:38===n&&12===Ii()&&(t[r]=1),e[r]+=la(Ti-1,t,r);break;case 2:e[r]+=Vi(n);break;case 4:if(44===n){e[++r]=58===Ii()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=gi(n)}}while(n=Bi());return e}(Li(e),t))},ua=new WeakMap,da=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ua.get(r))&&!n){ua.set(e,!0);for(var o=[],i=ca(t,o),a=r.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},pa=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function fa(e,t){switch(function(e,t){return 45^Si(e,0)?(((t<<2^Si(e,0))<<2^Si(e,1))<<2^Si(e,2))<<2^Si(e,3):0}(e,t)){case 5103:return Ki+"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 Ki+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ki+e+Xi+e+Yi+e+e;case 6828:case 4268:return Ki+e+Yi+e+e;case 6165:return Ki+e+Yi+"flex-"+e+e;case 5187:return Ki+e+vi(e,/(\w+).+(:[^]+)/,Ki+"box-$1$2"+Yi+"flex-$1$2")+e;case 5443:return Ki+e+Yi+"flex-item-"+vi(e,/flex-|-self/,"")+e;case 4675:return Ki+e+Yi+"flex-line-pack"+vi(e,/align-content|flex-|-self/,"")+e;case 5548:return Ki+e+Yi+vi(e,"shrink","negative")+e;case 5292:return Ki+e+Yi+vi(e,"basis","preferred-size")+e;case 6060:return Ki+"box-"+vi(e,"-grow","")+Ki+e+Yi+vi(e,"grow","positive")+e;case 4554:return Ki+vi(e,/([^-])(transform)/g,"$1"+Ki+"$2")+e;case 6187:return vi(vi(vi(e,/(zoom-|grab)/,Ki+"$1"),/(image-set)/,Ki+"$1"),e,"")+e;case 5495:case 3959:return vi(e,/(image-set\([^]*)/,Ki+"$1$`$1");case 4968:return vi(vi(e,/(.+:)(flex-)?(.*)/,Ki+"box-pack:$3"+Yi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ki+e+e;case 4095:case 3583:case 4068:case 2532:return vi(e,/(.+)-inline(.+)/,Ki+"$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(_i(e)-1-t>6)switch(Si(e,t+1)){case 109:if(45!==Si(e,t+4))break;case 102:return vi(e,/(.+:)(.+)-([^]+)/,"$1"+Ki+"$2-$3$1"+Xi+(108==Si(e,t+3)?"$3":"$2-$3"))+e;case 115:return~xi(e,"stretch")?fa(vi(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Si(e,t+1))break;case 6444:switch(Si(e,_i(e)-3-(~xi(e,"!important")&&10))){case 107:return vi(e,":",":"+Ki)+e;case 101:return vi(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ki+(45===Si(e,14)?"inline-":"")+"box$3$1"+Ki+"$2$3$1"+Yi+"$2box$3")+e}break;case 5936:switch(Si(e,t+11)){case 114:return Ki+e+Yi+vi(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ki+e+Yi+vi(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ki+e+Yi+vi(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ki+e+Yi+e+e}return e}var ha=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Qi:e.return=fa(e.value,e.length);break;case ea:return ta([zi(e,{value:vi(e.value,"@","@"+Ki)})],n);case Zi:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ta([zi(e,{props:[vi(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return ta([zi(e,{props:[vi(t,/:(plac\w+)/,":"+Ki+"input-$1")]}),zi(e,{props:[vi(t,/:(plac\w+)/,":-moz-$1")]}),zi(e,{props:[vi(t,/:(plac\w+)/,Yi+"input-$1")]})],n)}return""})}}],ma=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n,o,i=e.stylisPlugins||ha,a={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;s.push(e)});var l,c,u,d,p=[ra,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[da,pa].concat(i,p),u=ki(c),function(e,t,r,n){for(var o="",i=0;i<u;i++)o+=c[i](e,t,r,n)||"";return o});o=function(e,t,r,n){l=r,function(e){ta(na(e),f)}(e?e+"{"+t.styles+"}":t.styles),n&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new hi({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h};function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ga.apply(null,arguments)}var ba=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}};function ya(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}var va=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},xa=function(e,t,r){va(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Sa={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function wa(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var _a=/[A-Z]|^ms/g,ka=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ea=function(e){return 45===e.charCodeAt(1)},Ca=function(e){return null!=e&&"boolean"!=typeof e},Pa=wa(function(e){return Ea(e)?e:e.replace(_a,"-$&").toLowerCase()}),ja=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ka,function(e,t,r){return Aa={name:t,styles:r,next:Aa},t})}return 1===Sa[e]||Ea(e)||"number"!=typeof t||0===t?t:t+"px"};function Ta(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return Aa={name:o.name,styles:o.styles,next:Aa},o.name;var i=r;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Aa={name:a.name,styles:a.styles,next:Aa},a=a.next;return i.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Ta(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?n+=i+"{"+t[s]+"}":Ca(s)&&(n+=Pa(i)+":"+ja(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Ta(e,t,a);switch(i){case"animation":case"animationName":n+=Pa(i)+":"+l+";";break;default:n+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)Ca(a[c])&&(n+=Pa(i)+":"+ja(i,a[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=Aa,l=r(e);return Aa=s,Ta(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Aa,Ra=/label:\s*([^\s;{]+)\s*(;|$)/g;function Oa(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";Aa=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,o+=Ta(r,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=Ta(r,t,e[a]),n)o+=i[a]}Ra.lastIndex=0;for(var s,l="";null!==(s=Ra.exec(o));)l+="-"+s[1];var c=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:Aa}}var za=!!t.useInsertionEffect&&t.useInsertionEffect,Fa=za||function(e){return e()},Ba=za||t.useLayoutEffect,Ia=t.createContext("undefined"!=typeof HTMLElement?ma({key:"css"}):null),Da=(Ia.Provider,function(e){return(0,t.forwardRef)(function(r,n){var o=(0,t.useContext)(Ia);return e(r,o,n)})}),Ma=t.createContext({}),$a=ba(function(e){return ba(function(t){return function(e,t){return"function"==typeof t?t(e):ga({},e,t)}(e,t)})}),La=function(e){var r=t.useContext(Ma);return e.theme!==r&&(r=$a(r)(e.theme)),t.createElement(Ma.Provider,{value:r},e.children)};var Na={}.hasOwnProperty,Va="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Wa=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return va(t,r,n),Fa(function(){return xa(t,r,n)}),null},Ua=Da(function(e,r,n){var o=e.css;"string"==typeof o&&void 0!==r.registered[o]&&(o=r.registered[o]);var i=e[Va],a=[o],s="";"string"==typeof e.className?s=ya(r.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=Oa(a,void 0,t.useContext(Ma));s+=r.key+"-"+l.name;var c={};for(var u in e)Na.call(e,u)&&"css"!==u&&u!==Va&&(c[u]=e[u]);return c.className=s,n&&(c.ref=n),t.createElement(t.Fragment,null,t.createElement(Wa,{cache:r,serialized:l,isStringTag:"string"==typeof i}),t.createElement(i,c))}),qa=Ua;const Ha=(0,t.createContext)({});function Ga(){const e=(0,t.useContext)(Ha);if(void 0===e)throw new Error("useColorMode must be used within a ColorModeProvider");return e}Ha.displayName="ColorModeContext";const Ya="chakra-ui-light",Xa="chakra-ui-dark";const Ka="chakra-ui-color-mode";const Ja=(Za=Ka,{ssr:!1,type:"localStorage",get(e){if(!globalThis?.document)return e;let t;try{t=localStorage.getItem(Za)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(Za,e)}catch(e){}}});var Za;function Qa(e,t){const r=e.match(new RegExp(`(^| )${t}=([^;]+)`));return r?.[2]}function es(e,t){return{ssr:!!t,type:"cookie",get:r=>t?Qa(t,e):globalThis?.document&&Qa(document.cookie,e)||r,set(t){document.cookie=`${e}=${t}; max-age=31536000; path=/`}}}es(Ka);const ts=()=>{},rs=Boolean(globalThis?.document)?t.useLayoutEffect:t.useEffect;function ns(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}const os=function(e){const{value:r,children:n,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:s=Ja}=e,l=(0,t.useContext)(Ia),c="dark"===i?"dark":"light",[u,d]=(0,t.useState)(()=>ns(s,c)),[p,f]=(0,t.useState)(()=>ns(s)),{getSystemTheme:h,setClassName:m,setDataset:g,addListener:b}=(0,t.useMemo)(()=>function(e={}){const{preventTransition:t=!0,nonce:r}=e,n={setDataset:e=>{const r=t?n.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,r?.()},setClassName(e){document.body.classList.add(e?Xa:Ya),document.body.classList.remove(e?Ya:Xa)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme:e=>n.query().matches??"dark"===e?"dark":"light",addListener(e){const t=n.query(),r=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(r):t.addEventListener("change",r),()=>{"function"==typeof t.removeListener?t.removeListener(r):t.removeEventListener("change",r)}},preventTransition(){const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),void 0!==r&&(e.nonce=r),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return n}({preventTransition:a,nonce:l?.nonce}),[a,l?.nonce]),y="system"!==i||u?u:p,v=(0,t.useCallback)(e=>{const t="system"===e?h():e;d(t),m("dark"===t),g(t),s.set(t)},[s,h,m,g]);rs(()=>{"system"===i&&f(h())},[]),(0,t.useEffect)(()=>{const e=s.get();v(e||("system"!==i?c:"system"))},[s,c,i,v]);const x=(0,t.useCallback)(()=>{v("dark"===y?"light":"dark")},[y,v]);(0,t.useEffect)(()=>{if(o)return b(v)},[o,b,v]);const S=(0,t.useMemo)(()=>({colorMode:r??y,toggleColorMode:r?ts:x,setColorMode:r?ts:v,forced:void 0!==r}),[y,x,v,r]);return(0,fi.jsx)(Ha.Provider,{value:S,children:n})};os.displayName="ColorModeProvider";r(4146);var is,as,ss=function(e,r){var n=arguments;if(null==r||!Na.call(r,"css"))return t.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=qa,i[1]=function(e,t){var r={};for(var n in t)Na.call(t,n)&&(r[n]=t[n]);return r[Va]=e,r}(e,r);for(var a=2;a<o;a++)i[a]=n[a];return t.createElement.apply(null,i)};is=ss||(ss={}),as||(as=is.JSX||(is.JSX={}));var ls=Da(function(e,r){var n=Oa([e.styles],void 0,t.useContext(Ma)),o=t.useRef();return Ba(function(){var e=r.key+"-global",t=new r.sheet.constructor({key:e,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return r.sheet.tags.length&&(t.before=r.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),o.current=[t,i],function(){t.flush()}},[r]),Ba(function(){var e=o.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&xa(r,n.next,!0),t.tags.length){var i=t.tags[t.tags.length-1].nextElementSibling;t.before=i,t.flush()}r.insert("",n,t,!1)}},[r,n.name]),null});function cs(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Oa(t)}function us(){var e=cs.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const ds=String.raw,ps=ds`
  :root,
  :host {
    --chakra-vh: 100vh;
  }

  @supports (height: -webkit-fill-available) {
    :root,
    :host {
      --chakra-vh: -webkit-fill-available;
    }
  }

  @supports (height: -moz-fill-available) {
    :root,
    :host {
      --chakra-vh: -moz-fill-available;
    }
  }

  @supports (height: 100dvh) {
    :root,
    :host {
      --chakra-vh: 100dvh;
    }
  }
`,fs=()=>(0,fi.jsx)(ls,{styles:ps}),hs=({scope:e=""})=>(0,fi.jsx)(ls,{styles:ds`
      html {
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        font-family: system-ui, sans-serif;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        -moz-osx-font-smoothing: grayscale;
        touch-action: manipulation;
      }

      body {
        position: relative;
        min-height: 100%;
        margin: 0;
        font-feature-settings: "kern";
      }

      ${e} :where(*, *::before, *::after) {
        border-width: 0;
        border-style: solid;
        box-sizing: border-box;
        word-wrap: break-word;
      }

      main {
        display: block;
      }

      ${e} hr {
        border-top-width: 1px;
        box-sizing: content-box;
        height: 0;
        overflow: visible;
      }

      ${e} :where(pre, code, kbd,samp) {
        font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 1em;
      }

      ${e} a {
        background-color: transparent;
        color: inherit;
        text-decoration: inherit;
      }

      ${e} abbr[title] {
        border-bottom: none;
        text-decoration: underline;
        -webkit-text-decoration: underline dotted;
        text-decoration: underline dotted;
      }

      ${e} :where(b, strong) {
        font-weight: bold;
      }

      ${e} small {
        font-size: 80%;
      }

      ${e} :where(sub,sup) {
        font-size: 75%;
        line-height: 0;
        position: relative;
        vertical-align: baseline;
      }

      ${e} sub {
        bottom: -0.25em;
      }

      ${e} sup {
        top: -0.5em;
      }

      ${e} img {
        border-style: none;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        font-family: inherit;
        font-size: 100%;
        line-height: 1.15;
        margin: 0;
      }

      ${e} :where(button, input) {
        overflow: visible;
      }

      ${e} :where(button, select) {
        text-transform: none;
      }

      ${e} :where(
          button::-moz-focus-inner,
          [type="button"]::-moz-focus-inner,
          [type="reset"]::-moz-focus-inner,
          [type="submit"]::-moz-focus-inner
        ) {
        border-style: none;
        padding: 0;
      }

      ${e} fieldset {
        padding: 0.35em 0.75em 0.625em;
      }

      ${e} legend {
        box-sizing: border-box;
        color: inherit;
        display: table;
        max-width: 100%;
        padding: 0;
        white-space: normal;
      }

      ${e} progress {
        vertical-align: baseline;
      }

      ${e} textarea {
        overflow: auto;
      }

      ${e} :where([type="checkbox"], [type="radio"]) {
        box-sizing: border-box;
        padding: 0;
      }

      ${e} input[type="number"]::-webkit-inner-spin-button,
      ${e} input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
      }

      ${e} input[type="number"] {
        -moz-appearance: textfield;
      }

      ${e} input[type="search"] {
        -webkit-appearance: textfield;
        outline-offset: -2px;
      }

      ${e} input[type="search"]::-webkit-search-decoration {
        -webkit-appearance: none !important;
      }

      ${e} ::-webkit-file-upload-button {
        -webkit-appearance: button;
        font: inherit;
      }

      ${e} details {
        display: block;
      }

      ${e} summary {
        display: list-item;
      }

      template {
        display: none;
      }

      [hidden] {
        display: none !important;
      }

      ${e} :where(
          blockquote,
          dl,
          dd,
          h1,
          h2,
          h3,
          h4,
          h5,
          h6,
          hr,
          figure,
          p,
          pre
        ) {
        margin: 0;
      }

      ${e} button {
        background: transparent;
        padding: 0;
      }

      ${e} fieldset {
        margin: 0;
        padding: 0;
      }

      ${e} :where(ol, ul) {
        margin: 0;
        padding: 0;
      }

      ${e} textarea {
        resize: vertical;
      }

      ${e} :where(button, [role="button"]) {
        cursor: pointer;
      }

      ${e} button::-moz-focus-inner {
        border: 0 !important;
      }

      ${e} table {
        border-collapse: collapse;
      }

      ${e} :where(h1, h2, h3, h4, h5, h6) {
        font-size: inherit;
        font-weight: inherit;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        padding: 0;
        line-height: inherit;
        color: inherit;
      }

      ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
        display: block;
      }

      ${e} :where(img, video) {
        max-width: 100%;
        height: auto;
      }

      [data-js-focus-visible]
        :focus:not([data-focus-visible-added]):not(
          [data-focus-visible-disabled]
        ) {
        outline: none;
        box-shadow: none;
      }

      ${e} select::-ms-expand {
        display: none;
      }

      ${ps}
    `});function ms(e){const t=null==e?0:e.length;return t?e[t-1]:void 0}function gs(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return t||"number"==typeof e?`${e}px`:e}const bs=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,ys=e=>Object.fromEntries(Object.entries(e).sort(bs));function vs(e){const t=ys(e);return Object.assign(Object.values(t),t)}function xs(e){if(!e)return e;e=gs(e)??e;return"number"==typeof e?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`)}function Ss(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${gs(e)})`),t&&r.push("and",`(max-width: ${gs(t)})`),r.join(" ")}function ws(e){if(!e)return null;e.base=e.base??"0px";const t=vs(e),r=Object.entries(e).sort(bs).map(([e,t],r,n)=>{let[,o]=n[r+1]??[];return o=parseFloat(o)>0?xs(o):void 0,{_minW:xs(t),breakpoint:e,minW:t,maxW:o,maxWQuery:Ss(null,o),minWQuery:Ss(t),minMaxQuery:Ss(t,o)}}),n=function(e){const t=Object.keys(ys(e));return new Set(t)}(e),o=Array.from(n.values());return{keys:n,normalized:t,isResponsive(e){const t=Object.keys(e);return t.length>0&&t.every(e=>n.has(e))},asObject:ys(e),asArray:vs(e),details:r,get:e=>r.find(t=>t.breakpoint===e),media:[null,...t.map(e=>Ss(e)).slice(1)],toArrayValue(e){if(!Rr(e))throw new Error("toArrayValue: value must be an object");const t=o.map(t=>e[t]??null);for(;null===ms(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce((e,t,r)=>{const n=o[r];return null!=n&&null!=t&&(e[n]=t),e},{})}}}var _s=r(8394);function ks(e,t,r={}){const{stop:n,getKey:o}=r;return function e(r,i=[]){if(Rr(r)||Array.isArray(r)){const a={};for(const[s,l]of Object.entries(r)){const c=o?.(s)??s,u=[...i,c];if(n?.(r,u))return t(r,i);a[c]=e(l,u)}return a}return t(r,i)}(e)}const Es=(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,Cs=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,Ps=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,js=(e,t)=>`${e}:focus-visible ${t}`,Ts=(e,t)=>`${e}:focus-within ${t}`,As=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,Rs=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,Os=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,zs=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,Fs=(e,t)=>`${e}:placeholder-shown ${t}`,Bs=e=>Ds(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Is=e=>Ds(t=>e(t,"~ &"),"[data-peer]",".peer"),Ds=(e,...t)=>t.map(e).join(", "),Ms={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-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, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=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], &[data-state=indeterminate]",_groupOpen:Bs((e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`),_groupClosed:Bs(Es),_groupHover:Bs(Cs),_peerHover:Is(Cs),_groupFocus:Bs(Ps),_peerFocus:Is(Ps),_groupFocusVisible:Bs(js),_peerFocusVisible:Is(js),_groupActive:Bs(As),_peerActive:Is(As),_groupDisabled:Bs(Rs),_peerDisabled:Is(Rs),_groupInvalid:Bs(Os),_peerInvalid:Is(Os),_groupChecked:Bs(zs),_peerChecked:Is(zs),_groupFocusWithin:Bs(Ts),_peerFocusWithin:Is(Ts),_peerPlaceholderShown:Is(Fs),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-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]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},$s=Object.keys(Ms);const Ls=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function Ns(e){return function(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}(e,Ls)}function Vs(e,t){return M(String(e).replace(/\./g,"-"),void 0,t)}function Ws(e){const t=function(e){const t=Ns(e),r=function(e){return e.semanticTokens}(e),n=e=>$s.includes(e)||"default"===e,o={};return ks(t,(e,t)=>{null!=e&&(o[t.join(".")]={isSemantic:!1,value:e})}),ks(r,(e,t)=>{null!=e&&(o[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(n)}),o}(e),r=e.config?.cssVarPrefix;let n={};const o={};function i(e,n){const o=[String(e).split(".")[0],n].join(".");if(!t[o])return n;const{reference:i}=Vs(o,r);return i}for(const[e,a]of Object.entries(t)){const{isSemantic:t,value:s}=a,{variable:l,reference:c}=Vs(e,r);if(!t){if(e.startsWith("space")){const t=e.split("."),[r,...n]=t,i=`${r}.-${n.join(".")}`,a=Mn.negate(s),u=Mn.negate(c);o[i]={value:a,var:l,varRef:u}}n[l]=s,o[e]={value:s,var:l,varRef:c};continue}const u=Rr(s)?s:{default:s};n=_s(n,Object.entries(u).reduce((t,[r,n])=>{if(!n)return t;const o=i(e,`${n}`);if("default"===r)return t[l]=o,t;return t[Ms?.[r]??r]={[l]:o},t},{})),o[e]={value:c,var:l,varRef:c}}return{cssVars:n,cssMap:o}}function Us(e,...t){return"function"==typeof e?e(...t):e}const qs=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e;function Hs(e){const{scale:t,transform:r,compose:n}=e;return(e,o)=>{const i=((e,t)=>r=>{const n=String(t),o=(e=>/!(important)?$/.test(e))(n),i=qs(n),a=e?`${e}.${i}`:i;let s=Rr(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return s=qs(s),o?`${s} !important`:s})(t,e)(o);let a=r?.(i,o)??i;return n&&(a=n(a,o)),a}}const Gs=(...e)=>t=>e.reduce((e,t)=>t(e),t);function Ys(e,t){return r=>{const n={property:r,scale:e};return n.transform=Hs({scale:e,transform:t}),n}}const Xs=({rtl:e,ltr:t})=>r=>"rtl"===r.direction?e:t;const Ks=["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))"];const Js={"--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(" ")},Zs={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,/*!*/ /*!*/)"};const Qs={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},el={"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"},tl=new Set(Object.values(el)),rl=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),nl=e=>e.trim();const ol=e=>"string"==typeof e&&e.includes("(")&&e.includes(")");const il=e=>t=>`${e}(${t})`,al={filter:e=>"auto"!==e?e:Js,backdropFilter:e=>"auto"!==e?e:Zs,ring:e=>function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(al.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...Ks].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...Ks].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;const{unitless:t}=(e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}})(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:100*e+"%",float:(e,t)=>"rtl"===t.direction?{left:"right",right:"left"}[e]:e,degree(e){if(function(e){return/^var\(--.+\)$/.test(e)}(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>function(e,t){if(null==e||rl.has(e))return e;if(!ol(e)&&!rl.has(e))return`url('${e}')`;const r=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),n=r?.[1],o=r?.[2];if(!n||!o)return e;const i=n.includes("-gradient")?n:`${n}-gradient`,[a,...s]=o.split(",").map(nl).filter(Boolean);if(0===s?.length)return e;const l=a in el?el[a]:a;s.unshift(l);const c=s.map(e=>{if(tl.has(e))return e;const r=e.indexOf(" "),[n,o]=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],i=ol(o)?o:o&&o.split(" "),a=`colors.${n}`,s=a in t.__cssMap?t.__cssMap[a].varRef:n;return i?[s,...Array.isArray(i)?i:[i]].join(" "):s});return`${i}(${c.join(", ")})`}(e,t??{}),blur:il("blur"),opacity:il("opacity"),brightness:il("brightness"),contrast:il("contrast"),dropShadow:il("drop-shadow"),grayscale:il("grayscale"),hueRotate:e=>il("hue-rotate")(al.degree(e)),invert:il("invert"),saturate:il("saturate"),sepia:il("sepia"),bgImage(e){if(null==e)return e;return ol(e)||rl.has(e)?e:`url(${e})`},outline(e){const t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:r}=Qs[e]??{},n={flexDirection:e};return t&&(n[t]=1),r&&(n[r]=1),n}},sl={borderWidths:Ys("borderWidths"),borderStyles:Ys("borderStyles"),colors:Ys("colors"),borders:Ys("borders"),gradients:Ys("gradients",al.gradient),radii:Ys("radii",al.px),space:Ys("space",Gs(al.vh,al.px)),spaceT:Ys("space",Gs(al.vh,al.px)),degreeT:e=>({property:e,transform:al.degree}),prop:(e,t,r)=>({property:e,scale:t,...t&&{transform:Hs({scale:t,transform:r})}}),propT:(e,t)=>({property:e,transform:t}),sizes:Ys("sizes",Gs(al.vh,al.px)),sizesT:Ys("sizes",Gs(al.vh,al.fraction)),shadows:Ys("shadows"),logical:function(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:Xs(t),transform:r?Hs({scale:r,compose:n}):n}},blur:Ys("blur",al.blur)},ll={background:sl.colors("background"),backgroundColor:sl.colors("backgroundColor"),backgroundImage:sl.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:al.bgClip},bgSize:sl.prop("backgroundSize"),bgPosition:sl.prop("backgroundPosition"),bg:sl.colors("background"),bgColor:sl.colors("backgroundColor"),bgPos:sl.prop("backgroundPosition"),bgRepeat:sl.prop("backgroundRepeat"),bgAttachment:sl.prop("backgroundAttachment"),bgGradient:sl.gradients("backgroundImage"),bgClip:{transform:al.bgClip}};Object.assign(ll,{bgImage:ll.backgroundImage,bgImg:ll.backgroundImage});const cl={border:sl.borders("border"),borderWidth:sl.borderWidths("borderWidth"),borderStyle:sl.borderStyles("borderStyle"),borderColor:sl.colors("borderColor"),borderRadius:sl.radii("borderRadius"),borderTop:sl.borders("borderTop"),borderBlockStart:sl.borders("borderBlockStart"),borderTopLeftRadius:sl.radii("borderTopLeftRadius"),borderStartStartRadius:sl.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:sl.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:sl.radii("borderTopRightRadius"),borderStartEndRadius:sl.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:sl.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:sl.borders("borderRight"),borderInlineEnd:sl.borders("borderInlineEnd"),borderBottom:sl.borders("borderBottom"),borderBlockEnd:sl.borders("borderBlockEnd"),borderBottomLeftRadius:sl.radii("borderBottomLeftRadius"),borderBottomRightRadius:sl.radii("borderBottomRightRadius"),borderLeft:sl.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:sl.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:sl.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:sl.borders(["borderLeft","borderRight"]),borderInline:sl.borders("borderInline"),borderY:sl.borders(["borderTop","borderBottom"]),borderBlock:sl.borders("borderBlock"),borderTopWidth:sl.borderWidths("borderTopWidth"),borderBlockStartWidth:sl.borderWidths("borderBlockStartWidth"),borderTopColor:sl.colors("borderTopColor"),borderBlockStartColor:sl.colors("borderBlockStartColor"),borderTopStyle:sl.borderStyles("borderTopStyle"),borderBlockStartStyle:sl.borderStyles("borderBlockStartStyle"),borderBottomWidth:sl.borderWidths("borderBottomWidth"),borderBlockEndWidth:sl.borderWidths("borderBlockEndWidth"),borderBottomColor:sl.colors("borderBottomColor"),borderBlockEndColor:sl.colors("borderBlockEndColor"),borderBottomStyle:sl.borderStyles("borderBottomStyle"),borderBlockEndStyle:sl.borderStyles("borderBlockEndStyle"),borderLeftWidth:sl.borderWidths("borderLeftWidth"),borderInlineStartWidth:sl.borderWidths("borderInlineStartWidth"),borderLeftColor:sl.colors("borderLeftColor"),borderInlineStartColor:sl.colors("borderInlineStartColor"),borderLeftStyle:sl.borderStyles("borderLeftStyle"),borderInlineStartStyle:sl.borderStyles("borderInlineStartStyle"),borderRightWidth:sl.borderWidths("borderRightWidth"),borderInlineEndWidth:sl.borderWidths("borderInlineEndWidth"),borderRightColor:sl.colors("borderRightColor"),borderInlineEndColor:sl.colors("borderInlineEndColor"),borderRightStyle:sl.borderStyles("borderRightStyle"),borderInlineEndStyle:sl.borderStyles("borderInlineEndStyle"),borderTopRadius:sl.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:sl.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:sl.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:sl.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(cl,{rounded:cl.borderRadius,roundedTop:cl.borderTopRadius,roundedTopLeft:cl.borderTopLeftRadius,roundedTopRight:cl.borderTopRightRadius,roundedTopStart:cl.borderStartStartRadius,roundedTopEnd:cl.borderStartEndRadius,roundedBottom:cl.borderBottomRadius,roundedBottomLeft:cl.borderBottomLeftRadius,roundedBottomRight:cl.borderBottomRightRadius,roundedBottomStart:cl.borderEndStartRadius,roundedBottomEnd:cl.borderEndEndRadius,roundedLeft:cl.borderLeftRadius,roundedRight:cl.borderRightRadius,roundedStart:cl.borderInlineStartRadius,roundedEnd:cl.borderInlineEndRadius,borderStart:cl.borderInlineStart,borderEnd:cl.borderInlineEnd,borderTopStartRadius:cl.borderStartStartRadius,borderTopEndRadius:cl.borderStartEndRadius,borderBottomStartRadius:cl.borderEndStartRadius,borderBottomEndRadius:cl.borderEndEndRadius,borderStartRadius:cl.borderInlineStartRadius,borderEndRadius:cl.borderInlineEndRadius,borderStartWidth:cl.borderInlineStartWidth,borderEndWidth:cl.borderInlineEndWidth,borderStartColor:cl.borderInlineStartColor,borderEndColor:cl.borderInlineEndColor,borderStartStyle:cl.borderInlineStartStyle,borderEndStyle:cl.borderInlineEndStyle});const ul={color:sl.colors("color"),textColor:sl.colors("color"),fill:sl.colors("fill"),stroke:sl.colors("stroke"),accentColor:sl.colors("accentColor"),textFillColor:sl.colors("textFillColor")},dl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:al.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:sl.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:sl.space("gap"),rowGap:sl.space("rowGap"),columnGap:sl.space("columnGap")};Object.assign(dl,{flexDir:dl.flexDirection});const pl={width:sl.sizesT("width"),inlineSize:sl.sizesT("inlineSize"),height:sl.sizes("height"),blockSize:sl.sizes("blockSize"),boxSize:sl.sizes(["width","height"]),minWidth:sl.sizes("minWidth"),minInlineSize:sl.sizes("minInlineSize"),minHeight:sl.sizes("minHeight"),minBlockSize:sl.sizes("minBlockSize"),maxWidth:sl.sizes("maxWidth"),maxInlineSize:sl.sizes("maxInlineSize"),maxHeight:sl.sizes("maxHeight"),maxBlockSize:sl.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{const r=`@media screen and (min-width: ${t.__breakpoints?.get(e)?.minW??e})`;return{[r]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{const r=`@media screen and (max-width: ${t.__breakpoints?.get(e)?._minW??e})`;return{[r]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:sl.propT("float",al.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(pl,{w:pl.width,h:pl.height,minW:pl.minWidth,maxW:pl.maxWidth,minH:pl.minHeight,maxH:pl.maxHeight,overscroll:pl.overscrollBehavior,overscrollX:pl.overscrollBehaviorX,overscrollY:pl.overscrollBehaviorY});const fl={filter:{transform:al.filter},blur:sl.blur("--chakra-blur"),brightness:sl.propT("--chakra-brightness",al.brightness),contrast:sl.propT("--chakra-contrast",al.contrast),hueRotate:sl.propT("--chakra-hue-rotate",al.hueRotate),invert:sl.propT("--chakra-invert",al.invert),saturate:sl.propT("--chakra-saturate",al.saturate),dropShadow:sl.propT("--chakra-drop-shadow",al.dropShadow),backdropFilter:{transform:al.backdropFilter},backdropBlur:sl.blur("--chakra-backdrop-blur"),backdropBrightness:sl.propT("--chakra-backdrop-brightness",al.brightness),backdropContrast:sl.propT("--chakra-backdrop-contrast",al.contrast),backdropHueRotate:sl.propT("--chakra-backdrop-hue-rotate",al.hueRotate),backdropInvert:sl.propT("--chakra-backdrop-invert",al.invert),backdropSaturate:sl.propT("--chakra-backdrop-saturate",al.saturate)},hl={ring:{transform:al.ring},ringColor:sl.colors("--chakra-ring-color"),ringOffset:sl.prop("--chakra-ring-offset-width"),ringOffsetColor:sl.colors("--chakra-ring-offset-color"),ringInset:sl.prop("--chakra-ring-inset")},ml={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:al.outline},outlineOffset:!0,outlineColor:sl.colors("outlineColor")},gl={gridGap:sl.space("gridGap"),gridColumnGap:sl.space("gridColumnGap"),gridRowGap:sl.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};const bl=(e=>{const t=new WeakMap;return(r,n,o,i)=>{if(void 0===r)return e(r,n,o);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(n))return a.get(n);const s=e(r,n,o,i);return a.set(n,s),s}})(function(e,t,r,n){const o="string"==typeof t?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return void 0===e?r:e}),yl={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},vl={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},xl=(e,t,r)=>{const n={},o=bl(e,t,{});for(const e in o){e in r&&null!=r[e]||(n[e]=o[e])}return n},Sl={srOnly:{transform:e=>!0===e?yl:"focusable"===e?vl:{}},layerStyle:{processResult:!0,transform:(e,t,r)=>xl(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>xl(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>xl(t,e,r)}},wl={position:!0,pos:sl.prop("position"),zIndex:sl.prop("zIndex","zIndices"),inset:sl.spaceT("inset"),insetX:sl.spaceT(["left","right"]),insetInline:sl.spaceT("insetInline"),insetY:sl.spaceT(["top","bottom"]),insetBlock:sl.spaceT("insetBlock"),top:sl.spaceT("top"),insetBlockStart:sl.spaceT("insetBlockStart"),bottom:sl.spaceT("bottom"),insetBlockEnd:sl.spaceT("insetBlockEnd"),left:sl.spaceT("left"),insetInlineStart:sl.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:sl.spaceT("right"),insetInlineEnd:sl.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(wl,{insetStart:wl.insetInlineStart,insetEnd:wl.insetInlineEnd});const _l={boxShadow:sl.shadows("boxShadow"),mixBlendMode:!0,blendMode:sl.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:sl.prop("backgroundBlendMode"),opacity:!0};Object.assign(_l,{shadow:_l.boxShadow});const kl={margin:sl.spaceT("margin"),marginTop:sl.spaceT("marginTop"),marginBlockStart:sl.spaceT("marginBlockStart"),marginRight:sl.spaceT("marginRight"),marginInlineEnd:sl.spaceT("marginInlineEnd"),marginBottom:sl.spaceT("marginBottom"),marginBlockEnd:sl.spaceT("marginBlockEnd"),marginLeft:sl.spaceT("marginLeft"),marginInlineStart:sl.spaceT("marginInlineStart"),marginX:sl.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:sl.spaceT("marginInline"),marginY:sl.spaceT(["marginTop","marginBottom"]),marginBlock:sl.spaceT("marginBlock"),padding:sl.space("padding"),paddingTop:sl.space("paddingTop"),paddingBlockStart:sl.space("paddingBlockStart"),paddingRight:sl.space("paddingRight"),paddingBottom:sl.space("paddingBottom"),paddingBlockEnd:sl.space("paddingBlockEnd"),paddingLeft:sl.space("paddingLeft"),paddingInlineStart:sl.space("paddingInlineStart"),paddingInlineEnd:sl.space("paddingInlineEnd"),paddingX:sl.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:sl.space("paddingInline"),paddingY:sl.space(["paddingTop","paddingBottom"]),paddingBlock:sl.space("paddingBlock")};Object.assign(kl,{m:kl.margin,mt:kl.marginTop,mr:kl.marginRight,me:kl.marginInlineEnd,marginEnd:kl.marginInlineEnd,mb:kl.marginBottom,ml:kl.marginLeft,ms:kl.marginInlineStart,marginStart:kl.marginInlineStart,mx:kl.marginX,my:kl.marginY,p:kl.padding,pt:kl.paddingTop,py:kl.paddingY,px:kl.paddingX,pb:kl.paddingBottom,pl:kl.paddingLeft,ps:kl.paddingInlineStart,paddingStart:kl.paddingInlineStart,pr:kl.paddingRight,pe:kl.paddingInlineEnd,paddingEnd:kl.paddingInlineEnd});const El={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:sl.spaceT("scrollMargin"),scrollMarginTop:sl.spaceT("scrollMarginTop"),scrollMarginBottom:sl.spaceT("scrollMarginBottom"),scrollMarginLeft:sl.spaceT("scrollMarginLeft"),scrollMarginRight:sl.spaceT("scrollMarginRight"),scrollMarginX:sl.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:sl.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:sl.spaceT("scrollPadding"),scrollPaddingTop:sl.spaceT("scrollPaddingTop"),scrollPaddingBottom:sl.spaceT("scrollPaddingBottom"),scrollPaddingLeft:sl.spaceT("scrollPaddingLeft"),scrollPaddingRight:sl.spaceT("scrollPaddingRight"),scrollPaddingX:sl.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:sl.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},Cl={fontFamily:sl.prop("fontFamily","fonts"),fontSize:sl.prop("fontSize","fontSizes",al.px),fontWeight:sl.prop("fontWeight","fontWeights"),lineHeight:sl.prop("lineHeight","lineHeights"),letterSpacing:sl.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},Pl={textDecorationColor:sl.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:sl.shadows("textShadow")},jl={clipPath:!0,transform:sl.propT("transform",al.transform),transformOrigin:!0,translateX:sl.spaceT("--chakra-translate-x"),translateY:sl.spaceT("--chakra-translate-y"),skewX:sl.degreeT("--chakra-skew-x"),skewY:sl.degreeT("--chakra-skew-y"),scaleX:sl.prop("--chakra-scale-x"),scaleY:sl.prop("--chakra-scale-y"),scale:sl.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:sl.degreeT("--chakra-rotate")},Tl={listStyleType:!0,listStylePosition:!0,listStylePos:sl.prop("listStylePosition"),listStyleImage:!0,listStyleImg:sl.prop("listStyleImage")},Al={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:sl.prop("transitionDuration","transition.duration"),transitionProperty:sl.prop("transitionProperty","transition.property"),transitionTimingFunction:sl.prop("transitionTimingFunction","transition.easing")},Rl=_s({},ll,cl,ul,dl,pl,fl,hl,ml,gl,Sl,wl,_l,kl,El,Cl,Pl,jl,Tl,Al),Ol=Object.assign({},kl,pl,dl,gl,wl),zl=Object.keys(Ol),Fl=[...Object.keys(Rl),...$s],Bl={...Rl,...Ms},Il=e=>e in Bl;const Dl=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),Ml=(e,t)=>{if(null==t)return t;const r=t=>e.__cssMap?.[t]?.varRef,n=e=>r(e)??e,[o,i]=function(e){const t=[];let r="",n=!1;for(let o=0;o<e.length;o++){const i=e[o];"("===i?(n=!0,r+=i):")"===i?(n=!1,r+=i):","!==i||n?r+=i:(t.push(r),r="")}return r=r.trim(),r&&t.push(r),t}(t);return t=r(o)??n(i)??n(t)};function $l(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(e,i=!1)=>{const a=Us(e,n),s=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const a in e){let s=Us(e[a],t);if(null==s)continue;if(s=Rr(s)&&r(s)?n(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let e=0;e<l;e+=1){const t=o?.[e];t?(i[t]=i[t]||{},null!=s[e]&&(i[t][a]=s[e])):i[a]=s[e]}}return i})(a)(n);let l={};for(let e in s){let c=Us(s[e],n);e in r&&(e=r[e]),Dl(e,c)&&(c=Ml(n,c));let u=t[e];if(!0===u&&(u={property:e}),Rr(c)){l[e]=l[e]??{},l[e]=_s({},l[e],o(c,!0));continue}let d=u?.transform?.(c,n,a)??c;d=u?.processResult?o(d,!0):d;const p=Us(u?.property,n);if(!i&&u?.static){const e=Us(u.static,n);l=_s({},l,e)}if(p&&Array.isArray(p))for(const e of p)l[e]=d;else p?"&"===p&&Rr(d)?l=_s({},l,d):l[p]=d:Rr(d)?l=_s({},l,d):l[e]=d}return l};return o}const Ll=e=>t=>$l({theme:t,pseudos:Ms,configs:Rl})(e);function Nl(e={}){const{name:r,strict:n=!0,hookName:o="useContext",providerName:i="Provider",errorMessage:a,defaultValue:s}=e,l=(0,t.createContext)(s);return l.displayName=r,[l.Provider,function e(){const r=(0,t.useContext)(l);if(!r&&n){const t=new Error(a??`${o} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw t.name="ContextError",Error.captureStackTrace?.(t,e),t}return r},l]}const Vl=(e=>{const t=new WeakMap;return(r,n,o,i)=>{if(void 0===r)return e(r,n,o);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(n))return a.get(n);const s=e(r,n,o,i);return a.set(n,s),s}})(function(e,t,r,n){const o="string"==typeof t?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return void 0===e?r:e});function Wl(e){const{cssVarsRoot:r,theme:n,children:o}=e,i=(0,t.useMemo)(()=>function(e){const t=function(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}(e),{cssMap:r,cssVars:n}=Ws(t);return Object.assign(t,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...n},__cssMap:r,__breakpoints:ws(t.breakpoints)}),t}(n),[n]);return(0,fi.jsxs)(La,{theme:i,children:[(0,fi.jsx)(Ul,{root:r}),o]})}function Ul({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return(0,fi.jsx)(ls,{styles:e=>({[t]:e.__cssVars})})}const[ql,Hl]=Nl({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function Gl(){const{colorMode:e}=Ga();return(0,fi.jsx)(ls,{styles:t=>{const r=Us(Vl(t,"styles.global"),{theme:t,colorMode:e});if(!r)return;return Ll(r)(t)}})}const[Yl,Xl]=Nl({strict:!1,name:"PortalManagerContext"});function Kl(e){const{children:t,zIndex:r}=e;return(0,fi.jsx)(Yl,{value:{zIndex:r},children:t})}Kl.displayName="PortalManager";const Jl=(0,t.createContext)({getDocument:()=>document,getWindow:()=>window});function Zl(e){const{children:r,environment:n,disabled:o}=e,i=(0,t.useRef)(null),a=(0,t.useMemo)(()=>n||{getDocument:()=>i.current?.ownerDocument??document,getWindow:()=>i.current?.ownerDocument.defaultView??window},[n]),s=!o||!n;return(0,fi.jsxs)(Jl.Provider,{value:a,children:[r,s&&(0,fi.jsx)("span",{id:"__chakra_env",hidden:!0,ref:i})]})}Jl.displayName="EnvironmentContext",Zl.displayName="EnvironmentProvider";const Ql=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:c,disableGlobalStyle:u}=e,d=(0,fi.jsx)(Zl,{environment:s,disabled:c,children:t});return(0,fi.jsx)(Wl,{theme:a,cssVarsRoot:l,children:(0,fi.jsxs)(os,{colorModeManager:r,options:a.config,children:[i?(0,fi.jsx)(hs,{scope:o}):(0,fi.jsx)(fs,{}),!u&&(0,fi.jsx)(Gl,{}),n?(0,fi.jsx)(Kl,{zIndex:n,children:d}):d]})})},ec="undefined"!=typeof document,tc=ec?t.useLayoutEffect:t.useEffect;function rc(){const e=(0,t.useRef)(!1);return tc(()=>(e.current=!0,()=>{e.current=!1}),[]),e}const nc=e=>e;class oc{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const ic=["prepare","read","update","preRender","render","postRender"];const{schedule:ac,cancel:sc,state:lc,steps:cc}=function(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=ic.reduce((e,t)=>(e[t]=function(e){let t=new oc,r=new oc,n=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:r;return i&&a.add(e),c.add(e)&&l&&o&&(n=t.order.length),e},cancel:e=>{r.remove(e),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let r=0;r<n;r++){const n=t.order[r];n(l),a.has(n)&&(s.schedule(n),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}(()=>r=!0),e),{}),a=e=>i[e].process(o),s=()=>{const i=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,ic.forEach(a),o.isProcessing=!1,r&&t&&(n=!1,e(s))},l=ic.reduce((t,a)=>{const l=i[a];return t[a]=(t,i=!1,a=!1)=>(r||(r=!0,n=!0,o.isProcessing||e(s)),l.schedule(t,i,a)),t},{});return{schedule:l,cancel:e=>ic.forEach(t=>i[t].cancel(e)),state:o,steps:i}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:nc,!0);const uc=(0,t.createContext)(null);function dc(e){const r=(0,t.useRef)(null);return null===r.current&&(r.current=e()),r.current}class pc extends t.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function fc({children:e,isPresent:r}){const n=(0,t.useId)(),o=(0,t.useRef)(null),i=(0,t.useRef)({width:0,height:0,top:0,left:0});return(0,t.useInsertionEffect)(()=>{const{width:e,height:t,top:a,left:s}=i.current;if(r||!o.current||!e||!t)return;o.current.dataset.motionPopId=n;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n          [data-motion-pop-id="${n}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${t}px !important;\n            top: ${a}px !important;\n            left: ${s}px !important;\n          }\n        `),()=>{document.head.removeChild(l)}},[r]),t.createElement(pc,{isPresent:r,childRef:o,sizeRef:i},t.cloneElement(e,{ref:o}))}const hc=({children:e,initial:r,isPresent:n,onExitComplete:o,custom:i,presenceAffectsLayout:a,mode:s})=>{const l=dc(mc),c=(0,t.useId)(),u=(0,t.useMemo)(()=>({id:c,initial:r,isPresent:n,custom:i,onExitComplete:e=>{l.set(e,!0);for(const e of l.values())if(!e)return;o&&o()},register:e=>(l.set(e,!1),()=>l.delete(e))}),a?void 0:[n]);return(0,t.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[n]),t.useEffect(()=>{!n&&!l.size&&o&&o()},[n]),"popLayout"===s&&(e=t.createElement(fc,{isPresent:n},e)),t.createElement(uc.Provider,{value:u},e)};function mc(){return new Map}const gc=(0,t.createContext)({});let bc=nc,yc=nc;const vc=e=>e.key||"";const xc=({children:e,custom:r,initial:n=!0,onExitComplete:o,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:s="sync"})=>{yc(!i,"Replace exitBeforeEnter with mode='wait'");const l=(0,t.useContext)(gc).forceRender||function(){const e=rc(),[r,n]=(0,t.useState)(0),o=(0,t.useCallback)(()=>{e.current&&n(r+1)},[r]);return[(0,t.useCallback)(()=>ac.postRender(o),[o]),r]}()[0],c=rc(),u=function(e){const r=[];return t.Children.forEach(e,e=>{(0,t.isValidElement)(e)&&r.push(e)}),r}(e);let d=u;const p=(0,t.useRef)(new Map).current,f=(0,t.useRef)(d),h=(0,t.useRef)(new Map).current,m=(0,t.useRef)(!0);var g;if(tc(()=>{m.current=!1,function(e,t){e.forEach(e=>{const r=vc(e);t.set(r,e)})}(u,h),f.current=d}),g=()=>{m.current=!0,h.clear(),p.clear()},(0,t.useEffect)(()=>()=>g(),[]),m.current)return t.createElement(t.Fragment,null,d.map(e=>t.createElement(hc,{key:vc(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:a,mode:s},e)));d=[...d];const b=f.current.map(vc),y=u.map(vc),v=b.length;for(let e=0;e<v;e++){const t=b[e];-1!==y.indexOf(t)||p.has(t)||p.set(t,void 0)}return"wait"===s&&p.size&&(d=[]),p.forEach((e,n)=>{if(-1!==y.indexOf(n))return;const i=h.get(n);if(!i)return;const m=b.indexOf(n);let g=e;if(!g){const e=()=>{h.delete(n),p.delete(n);const e=f.current.findIndex(e=>e.key===n);if(f.current.splice(e,1),!p.size){if(f.current=u,!1===c.current)return;l(),o&&o()}};g=t.createElement(hc,{key:vc(i),isPresent:!1,onExitComplete:e,custom:r,presenceAffectsLayout:a,mode:s},i),p.set(n,g)}d.splice(m,0,g)}),d=d.map(e=>{const r=e.key;return p.has(r)?e:t.createElement(hc,{key:vc(e),isPresent:!0,presenceAffectsLayout:a,mode:s},e)}),t.createElement(t.Fragment,null,p.size?d:d.map(e=>(0,t.cloneElement)(e)))},Sc=(e,r)=>{const n=(0,t.useRef)(!1),o=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(n.current&&o.current)return e();o.current=!0},r),(0,t.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])};function wc(e,r=[]){const n=(0,t.useRef)(e);return(0,t.useEffect)(()=>{n.current=e}),(0,t.useCallback)((...e)=>n.current?.(...e),r)}function _c(){return null===(e=(0,t.useContext)(uc))||e.isPresent;var e}const kc=(0,t.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ec=(0,t.createContext)({}),Cc=(0,t.createContext)({strict:!1});function Pc(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function jc(e){return"string"==typeof e||Array.isArray(e)}function Tc(e){return"object"==typeof e&&"function"==typeof e.start}const Ac=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Rc=["initial",...Ac];function Oc(e){return Tc(e.animate)||Rc.some(t=>jc(e[t]))}function zc(e){return Boolean(Oc(e)||e.variants)}function Fc(e){const{initial:r,animate:n}=function(e,t){if(Oc(e)){const{initial:t,animate:r}=e;return{initial:!1===t||jc(t)?t:void 0,animate:jc(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,t.useContext)(Ec));return(0,t.useMemo)(()=>({initial:r,animate:n}),[Bc(r),Bc(n)])}function Bc(e){return Array.isArray(e)?e.join(" "):e}const Ic={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"]},Dc={};for(const e in Ic)Dc[e]={isEnabled:t=>Ic[e].some(e=>!!t[e])};const Mc=(0,t.createContext)({}),$c=Symbol.for("motionComponentSymbol");function Lc({preloadedFeatures:e,createVisualElement:r,useRender:n,useVisualState:o,Component:i}){e&&function(e){for(const t in e)Dc[t]={...Dc[t],...e[t]}}(e);const a=(0,t.forwardRef)(function(a,s){let l;const c={...(0,t.useContext)(kc),...a,layoutId:Nc(a)},{isStatic:u}=c,d=Fc(a),p=o(a,u);if(!u&&ec){d.visualElement=function(e,r,n,o){const{visualElement:i}=(0,t.useContext)(Ec),a=(0,t.useContext)(Cc),s=(0,t.useContext)(uc),l=(0,t.useContext)(kc).reducedMotion,c=(0,t.useRef)();o=o||a.renderer,!c.current&&o&&(c.current=o(e,{visualState:r,parent:i,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const u=c.current;(0,t.useInsertionEffect)(()=>{u&&u.update(n,s)});const d=(0,t.useRef)(Boolean(window.HandoffAppearAnimations));return tc(()=>{u&&(u.render(),d.current&&u.animationState&&u.animationState.animateChanges())}),(0,t.useEffect)(()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,d.current=!1)}),u}(i,p,c,r);const n=(0,t.useContext)(Mc),o=(0,t.useContext)(Cc).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,o,e,n))}return t.createElement(Ec.Provider,{value:d},l&&d.visualElement?t.createElement(l,{visualElement:d.visualElement,...c}):null,n(i,a,function(e,r,n){return(0,t.useCallback)(t=>{t&&e.mount&&e.mount(t),r&&(t?r.mount(t):r.unmount()),n&&("function"==typeof n?n(t):Pc(n)&&(n.current=t))},[r])}(p,d.visualElement,s),p,u,d.visualElement))});return a[$c]=i,a}function Nc({layoutId:e}){const r=(0,t.useContext)(gc).id;return r&&void 0!==e?r+"-"+e:e}function Vc(e){function t(t,r={}){return Lc(e(t,r))}if("undefined"==typeof Proxy)return t;const r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}const Wc=["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 Uc(e){return"string"==typeof e&&!e.includes("-")&&!!(Wc.indexOf(e)>-1||/[A-Z]/.test(e))}const qc={};const Hc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gc=new Set(Hc);function Yc(e,{layout:t,layoutId:r}){return Gc.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!qc[e]||"opacity"===e)}const Xc=e=>Boolean(e&&e.getVelocity),Kc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Jc=Hc.length;const Zc=e=>t=>"string"==typeof t&&t.startsWith(e),Qc=Zc("--"),eu=Zc("var(--"),tu=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ru=(e,t,r)=>Math.min(Math.max(r,e),t),nu={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ou={...nu,transform:e=>ru(0,1,e)},iu={...nu,default:1},au=e=>Math.round(1e5*e)/1e5,su=/(-)?([\d]*\.?[\d])+/g,lu=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,cu=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function uu(e){return"string"==typeof e}const du=e=>({test:t=>uu(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),pu=du("deg"),fu=du("%"),hu=du("px"),mu=du("vh"),gu=du("vw"),bu={...fu,parse:e=>fu.parse(e)/100,transform:e=>fu.transform(100*e)},yu={...nu,transform:Math.round},vu={borderWidth:hu,borderTopWidth:hu,borderRightWidth:hu,borderBottomWidth:hu,borderLeftWidth:hu,borderRadius:hu,radius:hu,borderTopLeftRadius:hu,borderTopRightRadius:hu,borderBottomRightRadius:hu,borderBottomLeftRadius:hu,width:hu,maxWidth:hu,height:hu,maxHeight:hu,size:hu,top:hu,right:hu,bottom:hu,left:hu,padding:hu,paddingTop:hu,paddingRight:hu,paddingBottom:hu,paddingLeft:hu,margin:hu,marginTop:hu,marginRight:hu,marginBottom:hu,marginLeft:hu,rotate:pu,rotateX:pu,rotateY:pu,rotateZ:pu,scale:iu,scaleX:iu,scaleY:iu,scaleZ:iu,skew:pu,skewX:pu,skewY:pu,distance:hu,translateX:hu,translateY:hu,translateZ:hu,x:hu,y:hu,z:hu,perspective:hu,transformPerspective:hu,opacity:ou,originX:bu,originY:bu,originZ:hu,zIndex:yu,fillOpacity:ou,strokeOpacity:ou,numOctaves:yu};function xu(e,t,r,n){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const r=t[e];if(Qc(e)){i[e]=r;continue}const n=vu[e],d=tu(r,n);if(Gc.has(e)){if(l=!0,a[e]=d,!u)continue;r!==(n.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):o[e]=d}if(t.transform||(l||n?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let t=0;t<Jc;t++){const r=Hc[t];void 0!==e[r]&&(i+=`${Kc[r]||r}(${e[r]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,n?"":i):r&&n&&(i="none"),i}(e.transform,r,u,n):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:r=0}=s;o.transformOrigin=`${e} ${t} ${r}`}}const Su=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wu(e,t,r){for(const n in t)Xc(t[n])||Yc(n,r)||(e[n]=t[n])}function _u(e,r,n){const o={};return wu(o,e.style||{},e),Object.assign(o,function({transformTemplate:e},r,n){return(0,t.useMemo)(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return xu(t,r,{enableHardwareAcceleration:!n},e),Object.assign({},t.vars,t.style)},[r])}(e,r,n)),e.transformValues?e.transformValues(o):o}function ku(e,t,r){const n={},o=_u(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const Eu=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 Cu(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Eu.has(e)}let Pu=e=>!Cu(e);try{(ju=require("@emotion/is-prop-valid").default)&&(Pu=e=>e.startsWith("on")?!Cu(e):ju(e))}catch(e){}var ju;function Tu(e,t,r){return"string"==typeof e?e:hu.transform(t+r*e)}const Au={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ru={offset:"strokeDashoffset",array:"strokeDasharray"};function Ou(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,p){if(xu(e,c,u,p),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:m}=e;f.transform&&(m&&(h.transform=f.transform),delete f.transform),m&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,r){return`${Tu(t,e.x,e.width)} ${Tu(r,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==r&&(f.y=r),void 0!==n&&(f.scale=n),void 0!==a&&function(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?Au:Ru;e[i.offset]=hu.transform(-n);const a=hu.transform(t),s=hu.transform(r);e[i.array]=`${a} ${s}`}(f,a,s,l,!1)}const zu=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Fu=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Bu(e,r,n,o){const i=(0,t.useMemo)(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Ou(t,r,{enableHardwareAcceleration:!1},Fu(o),e.transformTemplate),{...t.attrs,style:{...t.style}}},[r]);if(e.style){const t={};wu(t,e.style,e),i.style={...t,...i.style}}return i}function Iu(e=!1){return(r,n,o,{latestValues:i},a)=>{const s=(Uc(r)?Bu:ku)(n,i,a,r),l=function(e,t,r){const n={};for(const o in e)"values"===o&&"object"==typeof e.values||(Pu(o)||!0===r&&Cu(o)||!t&&!Cu(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}(n,"string"==typeof r,e),c={...l,...s,ref:o},{children:u}=n,d=(0,t.useMemo)(()=>Xc(u)?u.get():u,[u]);return(0,t.createElement)(r,{...c,children:d})}}const Du=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Mu(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const t in r)e.style.setProperty(t,r[t])}const $u=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 Lu(e,t,r,n){Mu(e,t,void 0,n);for(const r in t.attrs)e.setAttribute($u.has(r)?r:Du(r),t.attrs[r])}function Nu(e,t){const{style:r}=e,n={};for(const o in r)(Xc(r[o])||t.style&&Xc(t.style[o])||Yc(o,e))&&(n[o]=r[o]);return n}function Vu(e,t){const r=Nu(e,t);for(const n in e)if(Xc(e[n])||Xc(t[n])){r[-1!==Hc.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return r}function Wu(e,t,r,n={},o={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,o)),t}const Uu=e=>Array.isArray(e),qu=e=>Uu(e)?e[e.length-1]||0:e;function Hu(e){const t=Xc(e)?e.get():e;return r=t,Boolean(r&&"object"==typeof r&&r.mix&&r.toValue)?t.toValue():t;var r}const Gu=e=>(r,n)=>{const o=(0,t.useContext)(Ec),i=(0,t.useContext)(uc),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const a={latestValues:Yu(n,o,i,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a}(e,r,o,i);return n?a():dc(a)};function Yu(e,t,r,n){const o={},i=n(e,{});for(const e in i)o[e]=Hu(i[e]);let{initial:a,animate:s}=e;const l=Oc(e),c=zc(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!r&&!1===r.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!Tc(d)){(Array.isArray(d)?d:[d]).forEach(t=>{const r=Wu(e,t);if(!r)return;const{transitionEnd:n,transition:i,...a}=r;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in n)o[e]=n[e]})}return o}const Xu={useVisualState:Gu({scrapeMotionValuesFromProps:Vu,createRenderState:zu,onMount:(e,t,{renderState:r,latestValues:n})=>{ac.read(()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),ac.render(()=>{Ou(r,n,{enableHardwareAcceleration:!1},Fu(t.tagName),e.transformTemplate),Lu(t,r)})}})},Ku={useVisualState:Gu({scrapeMotionValuesFromProps:Nu,createRenderState:Su})};function Ju(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const Zu=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Qu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function ed(e,t,r,n){return Ju(e,t,(e=>t=>Zu(t)&&e(t,Qu(t)))(r),n)}const td=(e,t)=>r=>t(e(r)),rd=(...e)=>e.reduce(td);function nd(e){let t=null;return()=>{const r=()=>{t=null};return null===t&&(t=e,r)}}const od=nd("dragHorizontal"),id=nd("dragVertical");function ad(e){let t=!1;if("y"===e)t=id();else if("x"===e)t=od();else{const e=od(),r=id();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function sd(){const e=ad(!0);return!e||(e(),!1)}class ld{constructor(e){this.isMounted=!1,this.node=e}update(){}}function cd(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End");return ed(e.current,r,(r,o)=>{if("touch"===r.type||sd())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[n]&&ac.update(()=>i[n](r,o))},{passive:!e.getProps()[n]})}const ud=(e,t)=>!!t&&(e===t||ud(e,t.parentElement));function dd(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Qu(r))}const pd=new WeakMap,fd=new WeakMap,hd=e=>{const t=pd.get(e.target);t&&t(e)},md=e=>{e.forEach(hd)};function gd(e,t,r){const n=function({root:e,...t}){const r=e||document;fd.has(r)||fd.set(r,{});const n=fd.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(md,{root:e,...t})),n[o]}(t);return pd.set(e,r),n.observe(e),()=>{pd.delete(e),n.unobserve(e)}}const bd={some:0,all:1};const yd={inView:{Feature:class extends ld{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:bd[n]};return gd(this.node.current,i,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ld{constructor(){super(...arguments),this.removeStartListeners=nc,this.removeEndListeners=nc,this.removeAccessibleListeners=nc,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),n=ed(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:r,onTapCancel:n}=this.node.getProps();ac.update(()=>{ud(this.node.current,e.target)?r&&r(e,t):n&&n(e,t)})},{passive:!(r.onTap||r.onPointerUp)}),o=ed(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=rd(n,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Ju(this.node.current,"keydown",e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Ju(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&dd("up",(e,t)=>{const{onTap:r}=this.node.getProps();r&&ac.update(()=>r(e,t))})}),dd("down",(e,t)=>{this.startPress(e,t)})}),t=Ju(this.node.current,"blur",()=>{this.isPressing&&dd("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=rd(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&ac.update(()=>r(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!sd()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&ac.update(()=>r(e,t))}mount(){const e=this.node.getProps(),t=ed(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=Ju(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=rd(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends ld{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rd(Ju(this.node.current,"focus",()=>this.onFocus()),Ju(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ld{mount(){this.unmount=rd(cd(this.node,!0),cd(this.node,!1))}unmount(){}}}};function vd(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function xd(e,t,r){const n=e.getProps();return Wu(n,t,void 0!==r?r:n.custom,function(e){const t={};return e.values.forEach((e,r)=>t[r]=e.get()),t}(e),function(e){const t={};return e.values.forEach((e,r)=>t[r]=e.getVelocity()),t}(e))}const Sd="data-"+Du("framerAppearId"),wd=e=>1e3*e,_d=e=>e/1e3,kd=!1,Ed=e=>Array.isArray(e)&&"number"==typeof e[0];function Cd(e){return Boolean(!e||"string"==typeof e&&jd[e]||Ed(e)||Array.isArray(e)&&e.every(Cd))}const Pd=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,jd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pd([0,.65,.55,1]),circOut:Pd([.55,0,1,.45]),backIn:Pd([.31,.01,.66,-.59]),backOut:Pd([.33,1.53,.69,.99])};function Td(e){if(e)return Ed(e)?Pd(e):Array.isArray(e)?e.map(Td):jd[e]}const Ad=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function Rd(e,t,r,n){if(e===t&&r===n)return nc;const o=t=>function(e,t,r,n,o){let i,a,s=0;do{a=t+(r-t)/2,i=Ad(a,n,o)-e,i>0?r=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(t,0,1,e,r);return e=>0===e||1===e?e:Ad(o(e),t,n)}const Od=Rd(.42,0,1,1),zd=Rd(0,0,.58,1),Fd=Rd(.42,0,.58,1),Bd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Id=e=>t=>1-e(1-t),Dd=e=>1-Math.sin(Math.acos(e)),Md=Id(Dd),$d=Bd(Md),Ld=Rd(.33,1.53,.69,.99),Nd=Id(Ld),Vd=Bd(Nd),Wd={linear:nc,easeIn:Od,easeInOut:Fd,easeOut:zd,circIn:Dd,circInOut:$d,circOut:Md,backIn:Nd,backInOut:Vd,backOut:Ld,anticipate:e=>(e*=2)<1?.5*Nd(e):.5*(2-Math.pow(2,-10*(e-1)))},Ud=e=>{if(Array.isArray(e)){yc(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,o]=e;return Rd(t,r,n,o)}return"string"==typeof e?(yc(void 0!==Wd[e],`Invalid easing type '${e}'`),Wd[e]):e},qd=(e,t)=>r=>Boolean(uu(r)&&cu.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Hd=(e,t,r)=>n=>{if(!uu(n))return n;const[o,i,a,s]=n.match(su);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Gd={...nu,transform:e=>Math.round((e=>ru(0,255,e))(e))},Yd={test:qd("rgb","red"),parse:Hd("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Gd.transform(e)+", "+Gd.transform(t)+", "+Gd.transform(r)+", "+au(ou.transform(n))+")"};const Xd={test:qd("#"),parse:function(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},transform:Yd.transform},Kd={test:qd("hsl","hue"),parse:Hd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+fu.transform(au(t))+", "+fu.transform(au(r))+", "+au(ou.transform(n))+")"},Jd={test:e=>Yd.test(e)||Xd.test(e)||Kd.test(e),parse:e=>Yd.test(e)?Yd.parse(e):Kd.test(e)?Kd.parse(e):Xd.parse(e),transform:e=>uu(e)?e:e.hasOwnProperty("red")?Yd.transform(e):Kd.transform(e)},Zd=(e,t,r)=>-r*e+r*t+e;function Qd(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}const ep=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},tp=[Xd,Yd,Kd];function rp(e){const t=(r=e,tp.find(e=>e.test(r)));var r;yc(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Kd&&(n=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let o=0,i=0,a=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;o=Qd(s,n,e+1/3),i=Qd(s,n,e),a=Qd(s,n,e-1/3)}else o=i=a=r;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:n}}(n)),n}const np=(e,t)=>{const r=rp(e),n=rp(t),o={...r};return e=>(o.red=ep(r.red,n.red,e),o.green=ep(r.green,n.green,e),o.blue=ep(r.blue,n.blue,e),o.alpha=Zd(r.alpha,n.alpha,e),Yd.transform(o))};const op={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:nc},ip={regex:lu,countKey:"Colors",token:"${c}",parse:Jd.parse},ap={regex:su,countKey:"Numbers",token:"${n}",parse:nu.parse};function sp(e,{regex:t,countKey:r,token:n,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...i.map(o)))}function lp(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&sp(r,op),sp(r,ip),sp(r,ap),r}function cp(e){return lp(e).values}function up(e){const{values:t,numColors:r,numVars:n,tokenised:o}=lp(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<n?t.replace(op.token,e[o]):o<n+r?t.replace(ip.token,Jd.transform(e[o])):t.replace(ap.token,au(e[o]));return t}}const dp=e=>"number"==typeof e?0:e;const pp={test:function(e){var t,r;return isNaN(e)&&uu(e)&&((null===(t=e.match(su))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(lu))||void 0===r?void 0:r.length)||0)>0},parse:cp,createTransformer:up,getAnimatableNone:function(e){const t=cp(e);return up(e)(t.map(dp))}},fp=(e,t)=>r=>`${r>0?t:e}`;function hp(e,t){return"number"==typeof e?r=>Zd(e,t,r):Jd.test(e)?np(e,t):e.startsWith("var(")?fp(e,t):bp(e,t)}const mp=(e,t)=>{const r=[...e],n=r.length,o=e.map((e,r)=>hp(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=o[t](e);return r}},gp=(e,t)=>{const r={...e,...t},n={};for(const o in r)void 0!==e[o]&&void 0!==t[o]&&(n[o]=hp(e[o],t[o]));return e=>{for(const t in n)r[t]=n[t](e);return r}},bp=(e,t)=>{const r=pp.createTransformer(t),n=lp(e),o=lp(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?rd(mp(n.values,o.values),r):(bc(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),fp(e,t))},yp=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n},vp=(e,t)=>r=>Zd(e,t,r);function xp(e,t,r){const n=[],o=r||("number"==typeof(i=e[0])?vp:"string"==typeof i?Jd.test(i)?np:bp:Array.isArray(i)?mp:"object"==typeof i?gp:vp);var i;const a=e.length-1;for(let r=0;r<a;r++){let i=o(e[r],e[r+1]);if(t){const e=Array.isArray(t)?t[r]||nc:t;i=rd(e,i)}n.push(i)}return n}function Sp(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;if(yc(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=xp(t,n,o),s=a.length,l=t=>{let r=0;if(s>1)for(;r<e.length-2&&!(t<e[r+1]);r++);const n=yp(e[r],e[r+1],t);return a[r](n)};return r?t=>l(ru(e[0],e[i-1],t)):l}function wp(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=yp(0,t,n);e.push(Zd(r,1,o))}}(t,e.length-1),t}function _p({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(n)?n.map(Ud):Ud(n),i={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(r&&r.length===t.length?r:wp(t),e),s=Sp(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||Fd).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function kp(e,t){return t?e*(1e3/t):0}function Ep(e,t,r){const n=Math.max(t-5,0);return kp(r-e(n),t-n)}const Cp=.001;function Pp({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;bc(e<=wd(10),"Spring duration must be 10 seconds or less");let a=1-t;a=ru(.05,1,a),e=ru(.01,10,_d(e)),a<1?(o=t=>{const n=t*a,o=n*e,i=n-r,s=Tp(t,a),l=Math.exp(-o);return Cp-i/s*l},i=t=>{const n=t*a*e,i=n*r+r,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-n),c=Tp(Math.pow(t,2),a);return(-o(t)+Cp>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-r)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let r=1;r<jp;r++)n-=e(n)/t(n);return n}(o,i,5/e);if(e=wd(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}const jp=12;function Tp(e,t){return e*Math.sqrt(1-t*t)}const Ap=["duration","bounce"],Rp=["stiffness","damping","mass"];function Op(e,t){return t.some(t=>void 0!==e[t])}function zp({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Op(e,Rp)&&Op(e,Ap)){const r=Pp(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(n),f=u?-_d(u):0,h=l/(2*Math.sqrt(s*c)),m=i-o,g=_d(Math.sqrt(s/c)),b=Math.abs(m)<5;let y;if(r||(r=b?.01:2),t||(t=b?.005:.5),h<1){const e=Tp(g,h);y=t=>{const r=Math.exp(-h*g*t);return i-r*((f+h*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)y=e=>i-Math.exp(-g*e)*(m+(f+g*m)*e);else{const e=g*Math.sqrt(h*h-1);y=t=>{const r=Math.exp(-h*g*t),n=Math.min(e*t,300);return i-r*((f+h*g*m)*Math.sinh(n)+e*m*Math.cosh(n))/e}}return{calculatedDuration:p&&d||null,next:e=>{const n=y(e);if(p)a.done=e>=d;else{let o=f;0!==e&&(o=h<1?Ep(y,e,n):0);const s=Math.abs(o)<=r,l=Math.abs(i-n)<=t;a.done=s&&l}return a.value=a.done?i:n,a}}}function Fp({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},f=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=r*t;const m=d+h,g=void 0===a?m:a(m);g!==m&&(h=g-d);const b=e=>-h*Math.exp(-e/n),y=e=>g+b(e),v=e=>{const t=b(e),r=y(e);p.done=Math.abs(t)<=c,p.value=p.done?g:r};let x,S;const w=e=>{var t;(t=p.value,void 0!==s&&t<s||void 0!==l&&t>l)&&(x=e,S=zp({keyframes:[p.value,f(p.value)],velocity:Ep(y,e,p.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return S||void 0!==x||(t=!0,v(e),w(e)),void 0!==x&&e>x?S.next(e-x):(!t&&v(e),p)}}}const Bp=e=>{const t=({timestamp:t})=>e(t);return{start:()=>ac.update(t,!0),stop:()=>sc(t),now:()=>lc.isProcessing?lc.timestamp:performance.now()}};function Ip(e){let t=0;let r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}const Dp={decay:Fp,inertia:Fp,tween:_p,keyframes:_p,spring:zp};function Mp({autoplay:e=!0,delay:t=0,driver:r=Bp,keyframes:n,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...p}){let f,h,m=1,g=!1;const b=()=>{h=new Promise(e=>{f=e})};let y;b();const v=Dp[o]||_p;let x;v!==_p&&"number"!=typeof n[0]&&(x=Sp([0,100],n,{clamp:!1}),n=[0,100]);const S=v({...p,keyframes:n});let w;"mirror"===s&&(w=v({...p,keyframes:[...n].reverse(),velocity:-(p.velocity||0)}));let _="idle",k=null,E=null,C=null;null===S.calculatedDuration&&i&&(S.calculatedDuration=Ip(S));const{calculatedDuration:P}=S;let j=1/0,T=1/0;null!==P&&(j=P+a,T=j*(i+1)-a);let A=0;const R=e=>{if(null===E)return;m>0&&(E=Math.min(E,e)),m<0&&(E=Math.min(e-T/m,E)),A=null!==k?k:Math.round(e-E)*m;const r=A-t*(m>=0?1:-1),o=m>=0?r<0:r>T;A=Math.max(r,0),"finished"===_&&null===k&&(A=T);let l=A,c=S;if(i){const e=A/j;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,i+1);const n=Boolean(t%2);n&&("reverse"===s?(r=1-r,a&&(r-=a/j)):"mirror"===s&&(c=w));let o=ru(0,1,r);A>T&&(o="reverse"===s&&n?1:0),l=o*j}const u=o?{done:!1,value:n[0]}:c.next(l);x&&(u.value=x(u.value));let{done:p}=u;o||null===P||(p=m>=0?A>=T:A<=0);const f=null===k&&("finished"===_||"running"===_&&p);return d&&d(u.value),f&&F(),u},O=()=>{y&&y.stop(),y=void 0},z=()=>{_="idle",O(),f(),b(),E=C=null},F=()=>{_="finished",u&&u(),O(),f()},B=()=>{if(g)return;y||(y=r(R));const e=y.now();l&&l(),null!==k?E=e-k:E&&"finished"!==_||(E=e),"finished"===_&&b(),C=E,k=null,_="running",y.start()};e&&B();const I={then:(e,t)=>h.then(e,t),get time(){return _d(A)},set time(e){e=wd(e),A=e,null===k&&y&&0!==m?E=y.now()-e/m:k=e},get duration(){const e=null===S.calculatedDuration?Ip(S):S.calculatedDuration;return _d(e)},get speed(){return m},set speed(e){e!==m&&y&&(m=e,I.time=_d(A))},get state(){return _},play:B,pause:()=>{_="paused",k=A},stop:()=>{g=!0,"idle"!==_&&(_="idle",c&&c(),z())},cancel:()=>{null!==C&&R(C),z()},complete:()=>{_="finished"},sample:e=>(E=0,R(e))};return I}const $p=function(e){let t;return()=>(void 0===t&&(t=e()),t)}(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Lp=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Np(e,t,{onUpdate:r,onComplete:n,...o}){if(!($p()&&Lp.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1;const l=()=>{a=new Promise(e=>{i=e})};l();let{keyframes:c,duration:u=300,ease:d,times:p}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Cd(t.ease))(t,o)){const e=Mp({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const r=[];let n=0;for(;!t.done&&n<2e4;)t=e.sample(n),r.push(t.value),n+=10;p=void 0,c=r,u=n-10,d="linear"}const f=function(e,t,r,{delay:n=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:r};l&&(c.offset=l);const u=Td(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:n,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:p});o.syncStart&&(f.startTime=lc.isProcessing?lc.timestamp:document.timeline?document.timeline.currentTime:performance.now());const h=()=>f.cancel(),m=()=>{ac.update(h),i(),l()};f.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:r="loop"}){return e[t&&"loop"!==r&&t%2==1?0:e.length-1]}(c,o)),n&&n(),m()};return{then:(e,t)=>a.then(e,t),attachTimeline:e=>(f.timeline=e,f.onfinish=null,nc),get time(){return _d(f.currentTime||0)},set time(e){f.currentTime=wd(e)},get speed(){return f.playbackRate},set speed(e){f.playbackRate=e},get duration(){return _d(u)},play:()=>{s||(f.play(),sc(h))},pause:()=>f.pause(),stop:()=>{if(s=!0,"idle"===f.playState)return;const{currentTime:t}=f;if(t){const r=Mp({...o,autoplay:!1});e.setWithVelocity(r.sample(t-10).value,r.sample(t).value,10)}m()},complete:()=>f.finish(),cancel:m}}const Vp={type:"spring",stiffness:500,damping:25,restSpeed:10},Wp={type:"keyframes",duration:.8},Up={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qp=(e,{keyframes:t})=>t.length>2?Wp:Gc.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Vp:Up,Hp=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!pp.test(t)&&"0"!==t||t.startsWith("url("))),Gp=new Set(["brightness","contrast","saturate","opacity"]);function Yp(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(su)||[];if(!n)return e;const o=r.replace(n,"");let i=Gp.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const Xp=/([a-z-]*)\(.*?\)/g,Kp={...pp,getAnimatableNone:e=>{const t=e.match(Xp);return t?t.map(Yp).join(" "):e}},Jp={...vu,color:Jd,backgroundColor:Jd,outlineColor:Jd,fill:Jd,stroke:Jd,borderColor:Jd,borderTopColor:Jd,borderRightColor:Jd,borderBottomColor:Jd,borderLeftColor:Jd,filter:Kp,WebkitFilter:Kp},Zp=e=>Jp[e];function Qp(e,t){let r=Zp(e);return r!==Kp&&(r=pp),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const ef=e=>/^0[^.\s]+$/.test(e);function tf(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||ef(e):void 0}function rf(e,t){return e[t]||e.default||e}const nf=(e,t,r,n={})=>o=>{const i=rf(n,e)||{},a=i.delay||n.delay||0;let{elapsed:s=0}=n;s-=wd(a);const l=function(e,t,r,n){const o=Hp(t,r);let i;i=Array.isArray(r)?[...r]:[null,r];const a=void 0!==n.from?n.from:e.get();let s;const l=[];for(let e=0;e<i.length;e++)null===i[e]&&(i[e]=0===e?a:i[e-1]),tf(i[e])&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(s=i[e]);if(o&&l.length&&s)for(let e=0;e<l.length;e++)i[l[e]]=Qp(t,s);return i}(t,e,r,i),c=l[0],u=l[l.length-1],d=Hp(e,c),p=Hp(e,u);bc(d===p,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let f={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(f={...f,...qp(e,f)}),f.duration&&(f.duration=wd(f.duration)),f.repeatDelay&&(f.repeatDelay=wd(f.repeatDelay)),!d||!p||kd||!1===i.type)return function({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:nc,pause:nc,stop:nc,then:e=>(e(),Promise.resolve()),cancel:nc,complete:nc});return t?Mp({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(kd?{...f,delay:0}:f);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const r=Np(t,e,f);if(r)return r}return Mp(f)};function of(e){return Boolean(Xc(e)&&e.add)}const af=e=>/^\-?\d*\.?\d+$/.test(e);function sf(e,t){-1===e.indexOf(t)&&e.push(t)}function lf(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class cf{constructor(){this.subscriptions=[]}add(e){return sf(this.subscriptions,e),()=>lf(this.subscriptions,e)}notify(e,t,r){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let o=0;o<n;o++){const n=this.subscriptions[o];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const uf={current:void 0};class df{constructor(e,t={}){var r;this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:r,timestamp:n}=lc;this.lastUpdated!==n&&(this.timeDelta=r,this.lastUpdated=n,ac.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()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ac.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(r=this.current,!isNaN(parseFloat(r))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new cf);const r=this.events[e].add(t);return"change"===e?()=>{r(),ac.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return uf.current&&uf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?kp(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pf(e,t){return new df(e,t)}const ff=e=>t=>t.test(e),hf=[nu,hu,fu,pu,gu,mu,{test:e=>"auto"===e,parse:e=>e}],mf=e=>hf.find(ff(e)),gf=[...hf,Jd,pp],bf=e=>gf.find(ff(e));function yf(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,pf(r))}function vf(e,t){const r=xd(e,t);let{transitionEnd:n={},transition:o={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const t in i){yf(e,t,qu(i[t]))}}function xf(e,t){if(!t)return;return(t[e]||t.default||t).from}function Sf({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function wf(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");n&&(i=n);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const n=e.getValue(t),o=s[t];if(!n||void 0===o||u&&Sf(u,t))continue;const a={delay:r,elapsed:0,...i};if(window.HandoffAppearAnimations&&!n.hasAnimated){const r=e.getProps()[Sd];r&&(a.elapsed=window.HandoffAppearAnimations(r,t,n,ac),a.syncStart=!0)}n.start(nf(t,n,o,e.shouldReduceMotion&&Gc.has(t)?{type:!1}:a));const d=n.animation;of(l)&&(l.add(t),d.then(()=>l.remove(t))),c.push(d)}return a&&Promise.all(c).then(()=>{a&&vf(e,a)}),c}function _f(e,t,r={}){const n=xd(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(wf(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,r=0,n=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*n,l=1===o?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(kf).forEach((e,n)=>{e.notify("AnimationStart",t),a.push(_f(e,t,{...i,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+n,a,s,r)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then(()=>t())}return Promise.all([i(),a(r.delay)])}function kf(e,t){return e.sortNodePosition(t)}const Ef=[...Ac].reverse(),Cf=Ac.length;function Pf(e){return t=>Promise.all(t.map(({animation:t,options:r})=>function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>_f(e,t,r));n=Promise.all(o)}else if("string"==typeof t)n=_f(e,t,r);else{const o="function"==typeof t?xd(e,t,r.custom):t;n=Promise.all(wf(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}(e,t,r)))}function jf(e){let t=Pf(e);const r={animate:Af(!0),whileInView:Af(),whileHover:Af(),whileTap:Af(),whileDrag:Af(),whileFocus:Af(),exit:Af()};let n=!0;const o=(t,r)=>{const n=xd(e,r);if(n){const{transition:e,transitionEnd:r,...o}=n;t={...t,...o,...r}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},p=1/0;for(let t=0;t<Cf;t++){const f=Ef[t],h=r[f],m=void 0!==s[f]?s[f]:l[f],g=jc(m),b=f===a?h.isActive:null;!1===b&&(p=t);let y=m===l[f]&&m!==s[f]&&g;if(y&&n&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys={...d},!h.isActive&&null===b||!m&&!h.prevProp||Tc(m)||"boolean"==typeof m)continue;const v=Tf(h.prevProp,m);let x=v||f===a&&h.isActive&&!y&&g||t>p&&g;const S=Array.isArray(m)?m:[m];let w=S.reduce(o,{});!1===b&&(w={});const{prevResolvedValues:_={}}=h,k={..._,...w},E=e=>{x=!0,u.delete(e),h.needsAnimating[e]=!0};for(const e in k){const t=w[e],r=_[e];d.hasOwnProperty(e)||(t!==r?Uu(t)&&Uu(r)?!vd(t,r)||v?E(e):h.protectedKeys[e]=!0:void 0!==t?E(e):u.add(e):void 0!==t&&u.has(e)?E(e):h.protectedKeys[e]=!0)}h.prevProp=m,h.prevResolvedValues=w,h.isActive&&(d={...d,...w}),n&&e.blockInitialAnimation&&(x=!1),x&&!y&&c.push(...S.map(e=>({animation:e,options:{type:f,...i}})))}if(u.size){const t={};u.forEach(r=>{const n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)}),c.push({animation:t})}let f=Boolean(c.length);return n&&!1===s.initial&&!e.manuallyAnimateOnMount&&(f=!1),n=!1,f?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,n,o){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;const s=i(o,t);for(const e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}function Tf(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!vd(t,e)}function Af(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Rf=0;const Of={animation:{Feature:class extends ld{constructor(e){super(e),e.animationState||(e.animationState=jf(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Tc(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends ld{constructor(){super(...arguments),this.id=Rf++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=r?r:this.node.getProps().custom});t&&!e&&o.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},zf=(e,t)=>Math.abs(e-t);class Ff{constructor(e,t,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Df(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=zf(e.x,t.x),n=zf(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;const{point:n}=e,{timestamp:o}=lc;this.history.push({...n,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Bf(t,this.transformPagePoint),ac.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:r,onSessionEnd:n}=this.handlers,o=Df("pointercancel"===e.type?this.lastMoveEventInfo:Bf(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!Zu(e))return;this.handlers=t,this.transformPagePoint=r;const n=Bf(Qu(e),this.transformPagePoint),{point:o}=n,{timestamp:i}=lc;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,Df(n,this.history)),this.removeListeners=rd(ed(window,"pointermove",this.handlePointerMove),ed(window,"pointerup",this.handlePointerUp),ed(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),sc(this.updatePoint)}}function Bf(e,t){return t?{point:t(e.point)}:e}function If(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Df({point:e},t){return{point:e,delta:If(e,$f(t)),offset:If(e,Mf(t)),velocity:Lf(t,.1)}}function Mf(e){return e[0]}function $f(e){return e[e.length-1]}function Lf(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=$f(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>wd(t)));)r--;if(!n)return{x:0,y:0};const i=_d(o.timestamp-n.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Nf(e){return e.max-e.min}function Vf(e,t=0,r=.01){return Math.abs(e-t)<=r}function Wf(e,t,r,n=.5){e.origin=n,e.originPoint=Zd(t.min,t.max,e.origin),e.scale=Nf(r)/Nf(t),(Vf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Zd(r.min,r.max,e.origin)-e.originPoint,(Vf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Uf(e,t,r,n){Wf(e.x,t.x,r.x,n?n.originX:void 0),Wf(e.y,t.y,r.y,n?n.originY:void 0)}function qf(e,t,r){e.min=r.min+t.min,e.max=e.min+Nf(t)}function Hf(e,t,r){e.min=t.min-r.min,e.max=e.min+Nf(t)}function Gf(e,t,r){Hf(e.x,t.x,r.x),Hf(e.y,t.y,r.y)}function Yf(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function Xf(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}const Kf=.35;function Jf(e,t,r){return{min:Zf(e,t),max:Zf(e,r)}}function Zf(e,t){return"number"==typeof e?e:e[t]||0}const Qf=()=>({x:{min:0,max:0},y:{min:0,max:0}});function eh(e){return[e("x"),e("y")]}function th({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function rh(e){return void 0===e||1===e}function nh({scale:e,scaleX:t,scaleY:r}){return!rh(e)||!rh(t)||!rh(r)}function oh(e){return nh(e)||ih(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ih(e){return ah(e.x)||ah(e.y)}function ah(e){return e&&"0%"!==e}function sh(e,t,r){return r+t*(e-r)}function lh(e,t,r,n,o){return void 0!==o&&(e=sh(e,o,n)),sh(e,r,n)+t}function ch(e,t=0,r=1,n,o){e.min=lh(e.min,t,r,n,o),e.max=lh(e.max,t,r,n,o)}function uh(e,{x:t,y:r}){ch(e.x,t.translate,t.scale,t.originPoint),ch(e.y,r.translate,r.scale,r.originPoint)}function dh(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function ph(e,t){e.min=e.min+t,e.max=e.max+t}function fh(e,t,[r,n,o]){const i=void 0!==t[o]?t[o]:.5,a=Zd(e.min,e.max,i);ch(e,t[r],t[n],a,t.scale)}const hh=["x","scaleX","originX"],mh=["y","scaleY","originY"];function gh(e,t){fh(e.x,t,hh),fh(e.y,t,mh)}function bh(e,t){return th(function(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}const yh=new WeakMap;class vh{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;this.panSession=new Ff(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Qu(e,"page").point)},onStart:(e,t)=>{const{drag:r,dragPropagation:n,onDragStart:o}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ad(r),!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),eh(e=>{let t=this.getAxisMotionValue(e).get()||0;if(fu.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];if(n){t=Nf(n)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&ac.update(()=>o(e,t),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:r,dragDirectionLock:n,onDirectionLock:o,onDrag:i}=this.getProps();if(!r&&!this.openGlobalLock)return;const{offset:a}=t;if(n&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x");return r}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:n}=t;this.startAnimation(n);const{onDragEnd:o}=this.getProps();o&&ac.update(()=>o(e,t))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:n}=this.getProps();if(!r||!xh(e,n,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?Zd(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?Zd(r,e,n.max):Math.min(e,r)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:r}=this.visualElement.projection||{},n=this.constraints;e&&Pc(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!r)&&function(e,{top:t,left:r,bottom:n,right:o}){return{x:Yf(e.x,r,o),y:Yf(e.y,t,n)}}(r.layoutBox,e),this.elastic=function(e=Kf){return!1===e?e=0:!0===e&&(e=Kf),{x:Jf(e,"left","right"),y:Jf(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&eh(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Pc(e))return!1;const r=e.current;yc(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const o=function(e,t,r){const n=bh(e,r),{scroll:o}=t;return o&&(ph(n.x,o.offset.x),ph(n.y,o.offset.y)),n}(r,n.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Xf(e.x,t.x),y:Xf(e.y,t.y)}}(n.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=th(e))}return i}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=eh(a=>{if(!xh(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=n?200:1e6,u=n?40:1e7,d={type:"inertia",velocity:r?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return r.start(nf(e,r,0,t))}stopAnimation(){eh(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),n=r[t];return n||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){eh(t=>{const{drag:r}=this.getProps();if(!xh(t,r,this.currentDirection))return;const{projection:n}=this.visualElement,o=this.getAxisMotionValue(t);if(n&&n.layout){const{min:r,max:i}=n.layout.layoutBox[t];o.set(e[t]-Zd(r,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!Pc(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};eh(e=>{const t=this.getAxisMotionValue(e);if(t){const r=t.get();n[e]=function(e,t){let r=.5;const n=Nf(e),o=Nf(t);return o>n?r=yp(t.min,t.max-n,e.min):n>o&&(r=yp(e.min,e.max-o,t.min)),ru(0,1,r)}({min:r,max:r},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),eh(t=>{if(!xh(t,e,null))return;const r=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];r.set(Zd(o,i,n[t]))})}addListeners(){if(!this.visualElement.current)return;yh.set(this.visualElement,this);const e=ed(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();Pc(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),t();const o=Ju(window,"resize",()=>this.scalePositionWithinConstraints()),i=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(eh(t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),n(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:i=Kf,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function xh(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}const Sh=e=>(t,r)=>{e&&ac.update(()=>e(t,r))};const wh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function _h(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const kh={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!hu.test(e))return e;e=parseFloat(e)}return`${_h(e,t.target.x)}% ${_h(e,t.target.y)}%`}},Eh={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=pp.parse(e);if(o.length>5)return n;const i=pp.createTransformer(e),a="number"!=typeof o[0]?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=Zd(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};class Ch extends t.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:o}=e;var i;i=jh,Object.assign(qc,i),o&&(t.group&&t.group.add(o),r&&r.register&&n&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),wh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:o}=this.props,i=r.projection;return i?(i.isPresent=o,n||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||ac.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ph(e){const[r,n]=function(){const e=(0,t.useContext)(uc);if(null===e)return[!0,null];const{isPresent:r,onExitComplete:n,register:o}=e,i=(0,t.useId)();return(0,t.useEffect)(()=>o(i),[]),!r&&n?[!1,()=>n&&n(i)]:[!0]}(),o=(0,t.useContext)(gc);return t.createElement(Ch,{...e,layoutGroup:o,switchLayoutGroup:(0,t.useContext)(Mc),isPresent:r,safeToRemove:n})}const jh={borderRadius:{...kh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:kh,borderTopRightRadius:kh,borderBottomLeftRadius:kh,borderBottomRightRadius:kh,boxShadow:Eh},Th=["TopLeft","TopRight","BottomLeft","BottomRight"],Ah=Th.length,Rh=e=>"string"==typeof e?parseFloat(e):e,Oh=e=>"number"==typeof e||hu.test(e);function zh(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Fh=Ih(0,.5,Md),Bh=Ih(.5,.95,nc);function Ih(e,t,r){return n=>n<e?0:n>t?1:r(yp(e,t,n))}function Dh(e,t){e.min=t.min,e.max=t.max}function Mh(e,t){Dh(e.x,t.x),Dh(e.y,t.y)}function $h(e,t,r,n,o){return e=sh(e-=t,1/r,n),void 0!==o&&(e=sh(e,1/o,n)),e}function Lh(e,t,[r,n,o],i,a){!function(e,t=0,r=1,n=.5,o,i=e,a=e){fu.test(t)&&(t=parseFloat(t),t=Zd(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=Zd(i.min,i.max,n);e===i&&(s-=t),e.min=$h(e.min,t,r,s,o),e.max=$h(e.max,t,r,s,o)}(e,t[r],t[n],t[o],t.scale,i,a)}const Nh=["x","scaleX","originX"],Vh=["y","scaleY","originY"];function Wh(e,t,r,n){Lh(e.x,t,Nh,r?r.x:void 0,n?n.x:void 0),Lh(e.y,t,Vh,r?r.y:void 0,n?n.y:void 0)}function Uh(e){return 0===e.translate&&1===e.scale}function qh(e){return Uh(e.x)&&Uh(e.y)}function Hh(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 Gh(e){return Nf(e.x)/Nf(e.y)}class Yh{constructor(){this.members=[]}add(e){sf(this.members,e),e.scheduleRender()}remove(e){if(lf(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let r;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){r=t;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Xh(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:e,rotateX:t,rotateY:o}=r;e&&(n+=`rotate(${e}deg) `),t&&(n+=`rotateX(${t}deg) `),o&&(n+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(n+=`scale(${a}, ${s})`),n||"none"}const Kh=(e,t)=>e.depth-t.depth;class Jh{constructor(){this.children=[],this.isDirty=!1}add(e){sf(this.children,e),this.isDirty=!0}remove(e){lf(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Kh),this.isDirty=!1,this.children.forEach(e)}}const Zh=["","X","Y","Z"];let Qh=0;const em={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function tm({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(e={},r=(null==t?void 0:t())){this.id=Qh++,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=()=>{var e;em.totalNodes=em.resolvedTargetDeltas=em.recalculatedProjection=0,this.nodes.forEach(om),this.nodes.forEach(dm),this.nodes.forEach(pm),this.nodes.forEach(im),e=em,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Jh)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new cf),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;var n;this.isSVG=(n=t)instanceof SVGElement&&"svg"!==n.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||o)&&(this.isLayoutDirty=!0),e){let r;const n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){const r=performance.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(sc(n),e(i-t))};return ac.read(n,!0),()=>sc(n)}(n,250),wh.hasAnimatedSinceResize&&(wh.hasAnimatedSinceResize=!1,this.nodes.forEach(um))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||ym,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Hh(this.targetLayout,n)||r,c=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...rf(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||um(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,sc(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(fm),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;const n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(sm);this.isUpdating||this.nodes.forEach(lm),this.isUpdating=!1,this.nodes.forEach(cm),this.nodes.forEach(rm),this.nodes.forEach(nm),this.clearAllSnapshots();const e=performance.now();lc.delta=ru(0,1e3/60,e-lc.timestamp),lc.timestamp=e,lc.isProcessing=!0,cc.update.process(lc),cc.preRender.process(lc),cc.render.process(lc),lc.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(am),this.sharedNodes.forEach(hm)}scheduleUpdateProjection(){ac.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){ac.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!qh(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,i=n!==this.prevTransformTemplateValue;e&&(t||oh(this.latestValues)||i)&&(o(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let r=this.removeElementScroll(t);var n;return e&&(r=this.removeTransform(r)),Sm((n=r).x),Sm(n.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox(),{scroll:r}=this.root;return r&&(ph(t.x,r.offset.x),ph(t.y,r.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Mh(t,e);for(let r=0;r<this.path.length;r++){const n=this.path[r],{scroll:o,options:i}=n;if(n!==this.root&&o&&i.layoutScroll){if(o.isRoot){Mh(t,e);const{scroll:r}=this.root;r&&(ph(t.x,-r.offset.x),ph(t.y,-r.offset.y))}ph(t.x,o.offset.x),ph(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const r={x:{min:0,max:0},y:{min:0,max:0}};Mh(r,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&gh(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),oh(n.latestValues)&&gh(r,n.latestValues)}return oh(this.latestValues)&&gh(r,this.latestValues),r}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Mh(t,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];if(!r.instance)continue;if(!oh(r.latestValues))continue;nh(r.latestValues)&&r.updateSnapshot();const n=Qf();Mh(n,r.measurePageBox()),Wh(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return oh(this.latestValues)&&Wh(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==lc.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==r;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=lc.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Gf(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Mh(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,qf(a.x,s.x,l.x),qf(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Mh(this.target,this.layout.layoutBox),uh(this.target,this.targetDelta)):Mh(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Gf(this.relativeTargetOrigin,this.target,e.target),Mh(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}em.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!nh(this.parent.latestValues)&&!ih(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),r=Boolean(this.resumingFrom)||this!==t;let n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===lc.timestamp&&(n=!1),n)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Mh(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,n=!1){const o=r.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=r[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&gh(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,uh(e,a)),n&&oh(i.latestValues)&&gh(e,i.latestValues))}t.x=dh(t.x),t.y=dh(t.y)}(this.layoutCorrected,this.treeScale,this.path,r),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const c=this.projectionTransform;Uf(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Xh(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),em.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const r=this.snapshot,n=r?r.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(bm));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const r=t/1e3;var l,p;mm(i.x,e.x,r),mm(i.y,e.y,r),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gf(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,r,n){gm(e.x,t.x,r.x,n),gm(e.y,t.y,r.y,n)}(this.relativeTarget,this.relativeTargetOrigin,a,r),d&&(l=this.relativeTarget,p=d,l.x.min===p.x.min&&l.x.max===p.x.max&&l.y.min===p.y.min&&l.y.max===p.y.max)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Mh(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,r,n,o,i){o?(e.opacity=Zd(0,void 0!==r.opacity?r.opacity:1,Fh(n)),e.opacityExit=Zd(void 0!==t.opacity?t.opacity:1,0,Bh(n))):i&&(e.opacity=Zd(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let o=0;o<Ah;o++){const i=`border${Th[o]}Radius`;let a=zh(t,i),s=zh(r,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Oh(a)===Oh(s)?(e[i]=Math.max(Zd(Rh(a),Rh(s),n),0),(fu.test(s)||fu.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||r.rotate)&&(e.rotate=Zd(t.rotate||0,r.rotate||0,n))}(o,n,this.latestValues,r,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(sc(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ac.update(()=>{wh.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){const n=Xc(e)?e:pf(e);return n.start(nf("",n,t,r)),n.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:n,latestValues:o}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&wm(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Nf(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=Nf(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}Mh(t,r),gh(t,o),Uf(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Yh);this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(t=!0),!t)return;const n={};for(let t=0;t<Zh.length;t++){const o="rotate"+Zh[t];r[o]&&(n[o]=r[o],e.setStaticValue(o,0))}e.render();for(const t in n)e.setStaticValue(t,n[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,r;const n={};if(!this.instance||this.isSVG)return n;if(!this.isVisible)return{visibility:"hidden"};n.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=Hu(e.pointerEvents)||"",n.transform=o?o(this.latestValues,""):"none",n;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Hu(e.pointerEvents)||""),this.hasProjected&&!oh(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),n.transform=Xh(this.projectionDeltaWithTransform,this.treeScale,a),o&&(n.transform=o(a,n.transform));const{x:s,y:l}=this.projectionDelta;n.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?n.opacity=i===this?null!==(r=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:n.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in qc){if(void 0===a[e])continue;const{correct:t,applyTo:r}=qc[e],o="none"===n.transform?a[e]:t(a[e],i);if(r){const e=r.length;for(let t=0;t<e;t++)n[r[t]]=o}else n[e]=o}return this.options.layoutId&&(n.pointerEvents=i===this?Hu(e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(sm),this.root.sharedNodes.clear()}}}function rm(e){e.updateLayout()}function nm(e){var t;const r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:o}=e.options,i=r.source!==e.layout.source;"size"===o?eh(e=>{const n=i?r.measuredBox[e]:r.layoutBox[e],o=Nf(n);n.min=t[e].min,n.max=n.min+o}):wm(o,r.layoutBox,t)&&eh(n=>{const o=i?r.measuredBox[n]:r.layoutBox[n],a=Nf(t[n]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Uf(a,t,r.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?Uf(s,e.applyTransform(n,!0),r.measuredBox):Uf(s,t,r.layoutBox);const l=!qh(a);let c=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:o,layout:i}=n;if(o&&i){const a={x:{min:0,max:0},y:{min:0,max:0}};Gf(a,r.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};Gf(s,t,i.layoutBox),Hh(a,s)||(c=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function om(e){em.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function im(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function am(e){e.clearSnapshot()}function sm(e){e.clearMeasurements()}function lm(e){e.isLayoutDirty=!1}function cm(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function um(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function dm(e){e.resolveTargetDelta()}function pm(e){e.calcProjection()}function fm(e){e.resetRotation()}function hm(e){e.removeLeadSnapshot()}function mm(e,t,r){e.translate=Zd(t.translate,0,r),e.scale=Zd(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function gm(e,t,r,n){e.min=Zd(t.min,r.min,n),e.max=Zd(t.max,r.max,n)}function bm(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const ym={duration:.45,ease:[.4,0,.1,1]},vm=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),xm=vm("applewebkit/")&&!vm("chrome/")?Math.round:nc;function Sm(e){e.min=xm(e.min),e.max=xm(e.max)}function wm(e,t,r){return"position"===e||"preserve-aspect"===e&&!Vf(Gh(t),Gh(r),.2)}const _m=tm({attachResizeListener:(e,t)=>Ju(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),km={current:void 0},Em=tm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!km.current){const e=new _m({});e.mount(window),e.setOptions({layoutScroll:!0}),km.current=e}return km.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Cm={pan:{Feature:class extends ld{constructor(){super(...arguments),this.removePointerDownListener=nc}onPointerDown(e){this.session=new Ff(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:Sh(e),onStart:Sh(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&ac.update(()=>n(e,t))}}}mount(){this.removePointerDownListener=ed(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ld{constructor(e){super(e),this.removeGroupControls=nc,this.removeListeners=nc,this.controls=new vh(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||nc}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Em,MeasureLayout:Ph}},Pm=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function jm(e,t,r=1){yc(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,o]=function(e){const t=Pm.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const e=i.trim();return af(e)?parseFloat(e):e}return eu(o)?jm(o,t,r+1):o}const Tm=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Am=e=>Tm.has(e),Rm=e=>e===nu||e===hu,Om=(e,t)=>parseFloat(e.split(", ")[t]),zm=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return Om(o[1],t);{const t=n.match(/^matrix\((.+)\)$/);return t?Om(t[1],e):0}},Fm=new Set(["x","y","z"]),Bm=Hc.filter(e=>!Fm.has(e));const Im={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:zm(4,13),y:zm(5,14)};Im.translateX=Im.x,Im.translateY=Im.y;const Dm=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(Am);let i=[],a=!1;const s=[];if(o.forEach(o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=r[o],u=mf(c);const d=t[o];let p;if(Uu(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=mf(c);for(let r=t;r<e&&null!==d[r];r++)p?yc(mf(d[r])===p,"All keyframes must be of the same type"):(p=mf(d[r]),yc(p===u||Rm(u)&&Rm(p),"Keyframes must be of the same dimension as the current value"))}else p=mf(d);if(u!==p)if(Rm(u)&&Rm(p)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&p===hu&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==p?void 0:p.transform)&&(0===c||0===d)?0===c?l.set(p.transform(c)):t[o]=u.transform(d):(a||(i=function(e){const t=[];return Bm.forEach(r=>{const n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(o),n[o]=void 0!==n[o]?n[o]:t[o],l.jump(d))}),s.length){const r=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,r)=>{const n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach(e=>{s[e]=Im[e](n,i)}),t.render();const l=t.measureViewportBox();return r.forEach(r=>{const n=t.getValue(r);n&&n.jump(s[r]),e[r]=Im[r](l,i)}),e})(t,e,s);return i.length&&i.forEach(([t,r])=>{e.getValue(t).set(r)}),e.render(),ec&&null!==r&&window.scrollTo({top:r}),{target:o,transitionEnd:n}}return{target:t,transitionEnd:n}};function Mm(e,t,r,n){return(e=>Object.keys(e).some(Am))(t)?Dm(e,t,r,n):{target:t,transitionEnd:n}}const $m=(e,t,r,n)=>{const o=function(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(e=>{const t=e.get();if(!eu(t))return;const r=jm(t,n);r&&e.set(r)});for(const e in t){const o=t[e];if(!eu(o))continue;const i=jm(o,n);i&&(t[e]=i,r||(r={}),void 0===r[e]&&(r[e]=o))}return{target:t,transitionEnd:r}}(e,t,n);return Mm(e,t=o.target,r,n=o.transitionEnd)},Lm={current:null},Nm={current:!1};const Vm=new WeakMap,Wm=Object.keys(Dc),Um=Wm.length,qm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Hm=Rc.length;class Gm{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,visualState:o},i={}){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=()=>ac.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=Oc(t),this.isVariantNode=zc(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==a[e]&&Xc(t)&&(t.set(a[e],!1),of(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Vm.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),Nm.current||function(){if(Nm.current=!0,ec)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Lm.current=e.matches;e.addListener(t),t()}else Lm.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Lm.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Vm.delete(this.current),this.projection&&this.projection.unmount(),sc(this.notifyUpdate),sc(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const r=Gc.has(e),n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&ac.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),o()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,o){let i,a;for(let e=0;e<Um;e++){const r=Wm[e],{isEnabled:n,Feature:o,ProjectionNode:s,MeasureLayout:l}=Dc[r];s&&(i=s),n(t)&&(!this.features[r]&&o&&(this.features[r]=new o(this)),l&&(a=l))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:r,drag:n,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:r,alwaysMeasureLayout:Boolean(n)||a&&Pc(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<qm.length;t++){const r=qm[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){const{willChange:n}=t;for(const o in t){const i=t[o],a=r[o];if(Xc(i))e.addValue(o,i),of(n)&&n.add(o);else if(Xc(a))e.addValue(o,pf(i,{owner:e})),of(n)&&n.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,pf(void 0!==t?t:i,{owner:e}))}}for(const n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<Hm;e++){const r=Rc[e],n=this.props[r];(jc(n)||!1===n)&&(t[r]=n)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=pf(t,{owner:this}),this.addValue(e,r)),r}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:r}=this.props,n="string"==typeof r||"object"==typeof r?null===(t=Wu(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Xc(o)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new cf),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Ym extends Gm{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},{transformValues:n},o){let i=function(e,t,r){const n={};for(const o in e){const e=xf(o,t);if(void 0!==e)n[o]=e;else{const e=r.getValue(o);e&&(n[o]=e.get())}}return n}(r,e||{},this);if(n&&(t&&(t=n(t)),r&&(r=n(r)),i&&(i=n(i))),o){!function(e,t,r){var n,o;const i=Object.keys(t).filter(t=>!e.hasValue(t)),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],l=t[a];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(n=r[a])&&void 0!==n?n:e.readValue(a))&&void 0!==o?o:t[a]),null!=c&&("string"==typeof c&&(af(c)||ef(c))?c=parseFloat(c):!bf(c)&&pp.test(l)&&(c=Qp(a,l)),e.addValue(a,pf(c,{owner:e})),void 0===r[a]&&(r[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,r,i);const e=$m(this,r,i,t);t=e.transitionEnd,r=e.target}return{transition:e,transitionEnd:t,...r}}}class Xm extends Ym{readValueFromInstance(e,t){if(Gc.has(t)){const e=Zp(t);return e&&e.default||0}{const n=(r=e,window.getComputedStyle(r)),o=(Qc(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof o?o.trim():o}var r}measureInstanceViewportBox(e,{transformPagePoint:t}){return bh(e,t)}build(e,t,r,n){xu(e,t,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Nu(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Xc(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,r,n){Mu(e,t,r,n)}}class Km extends Ym{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Gc.has(t)){const e=Zp(t);return e&&e.default||0}return t=$u.has(t)?t:Du(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return Vu(e,t)}build(e,t,r,n){Ou(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){Lu(e,t,0,n)}mount(e){this.isSVGTag=Fu(e.tagName),super.mount(e)}}const Jm=(e,t)=>Uc(e)?new Km(t,{enableHardwareAcceleration:!1}):new Xm(t,{enableHardwareAcceleration:!0}),Zm={...Of,...yd,...Cm,...{layout:{ProjectionNode:Em,MeasureLayout:Ph}}},Qm=Vc((e,t)=>function(e,{forwardMotionProps:t=!1},r,n){return{...Uc(e)?Xu:Ku,preloadedFeatures:r,useRender:Iu(t),createVisualElement:n,Component:e}}(e,t,Zm,Jm));const eg=(e,t)=>e.find(e=>e.id===t);function tg(e,t){const r=rg(e,t);return{position:r,index:r?e[r].findIndex(e=>e.id===t):-1}}function rg(e,t){for(const[r,n]of Object.entries(e))if(eg(n,t))return r}function ng(e){return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}function og(e){const t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}var ig=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ag=wa(function(e){return ig.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),sg=function(e){return"theme"!==e},lg=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ag:sg},cg=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},ug=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return va(t,r,n),Fa(function(){return xa(t,r,n)}),null},dg=function e(r,n){var o,i,a=r.__emotion_real===r,s=a&&r.__emotion_base||r;void 0!==n&&(o=n.label,i=n.target);var l=cg(r,n,a),c=l||lg(s),u=!c("as");return function(){var d=arguments,p=a&&void 0!==r.__emotion_styles?r.__emotion_styles.slice(0):[];if(void 0!==o&&p.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{var f=d[0];p.push(f[0]);for(var h=d.length,m=1;m<h;m++)p.push(d[m],f[m])}var g=Da(function(e,r,n){var o=u&&e.as||s,a="",d=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=t.useContext(Ma)}"string"==typeof e.className?a=ya(r.registered,d,e.className):null!=e.className&&(a=e.className+" ");var m=Oa(p.concat(d),r.registered,f);a+=r.key+"-"+m.name,void 0!==i&&(a+=" "+i);var g=u&&void 0===l?lg(o):c,b={};for(var y in e)u&&"as"===y||g(y)&&(b[y]=e[y]);return b.className=a,n&&(b.ref=n),t.createElement(t.Fragment,null,t.createElement(ug,{cache:r,serialized:m,isStringTag:"string"==typeof o}),t.createElement(o,b))});return g.displayName=void 0!==o?o:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",g.defaultProps=r.defaultProps,g.__emotion_real=g,g.__emotion_base=s,g.__emotion_styles=p,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+i}}),g.withComponent=function(t,r){return e(t,ga({},n,r,{shouldForwardProp:cg(g,r,!0)})).apply(void 0,p)},g}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){dg[e]=dg(e)});const pg=new Set([...Fl,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),fg=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function hg(e){return(fg.has(e)||!pg.has(e))&&"_"!==e[0]}const mg=(gg=dg).default||gg;var gg;const bg=({baseStyle:e})=>t=>{const{theme:r,css:n,__css:o,sx:i,...a}=t,[s]=function(e,...t){const r=Object.getOwnPropertyDescriptors(e),n=Object.keys(r),o=e=>{const t={};for(let n=0;n<e.length;n++){const o=e[n];r[o]&&(Object.defineProperty(t,o,r[o]),delete r[o])}return t};return t.map(e=>o(Array.isArray(e)?e:n.filter(e))).concat(o(n))}(a,Il),l=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const e of t)if(null!=e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in r&&delete r[t],r[t]=e[t]);return r}({},o,Us(e,t),og(s),i),c=Ll(l)(t.theme);return n?[c,n]:c};function yg(e,r){const{baseStyle:n,...o}=r??{};o.shouldForwardProp||(o.shouldForwardProp=hg);const i=bg({baseStyle:n}),a=mg(e,o)(i);return(0,t.forwardRef)(function(e,r){const{children:n,...o}=e,{colorMode:i,forced:s}=Ga(),l=s?i:void 0;return(0,t.createElement)(a,{ref:r,"data-theme":l,...o},n)})}const vg=function(){const e=new Map;return new Proxy(yg,{apply:(e,t,r)=>yg(...r),get:(t,r)=>(e.has(r)||e.set(r,yg(r)),e.get(r))})}(),xg={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(n=1),{opacity:0,[r]:24*n}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Sg=(0,t.memo)(e=>{const{id:r,message:n,onCloseComplete:o,onRequestRemove:i,requestClose:a=!1,position:s="bottom",duration:l=5e3,containerStyle:c,motionVariants:u=xg,toastSpacing:d="0.5rem"}=e,[p,f]=(0,t.useState)(l),h=_c();Sc(()=>{h||o?.()},[h]),Sc(()=>{f(l)},[l]);const m=()=>{h&&i()};(0,t.useEffect)(()=>{h&&a&&i()},[h,a,i]),function(e,r){const n=wc(e);(0,t.useEffect)(()=>{if(null==r)return;let e=null;return e=window.setTimeout(()=>{n()},r),()=>{e&&window.clearTimeout(e)}},[r,n])}(m,p);const g=(0,t.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...c}),[c,d]),b=(0,t.useMemo)(()=>function(e){let t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(s),[s]);return(0,fi.jsx)(Qm.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>f(null),onHoverEnd:()=>f(l),custom:{position:s},style:b,children:(0,fi.jsx)(vg.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:Us(n,{id:r,onClose:m})})})});function wg(e,t=[]){const r=Object.assign({},e);for(const e of t)e in r&&delete r[e];return r}function _g(e){return wg(e,["styleConfig","size","variant","colorScheme"])}Sg.displayName="ToastComponent";const kg=(...e)=>e.filter(Boolean).join(" ");function Eg(e){return(0,t.forwardRef)(e)}function Cg(e,t){for(let r=t+1;r<e.length;r++)if(null!=e[r])return r;return-1}function Pg(e){const t=e.__breakpoints;return function(e,r,n,o){if(!t)return;const i={},a=function(e,t){return Array.isArray(e)?e:Rr(e)?t(e):null!=e?[e]:void 0}(n,t.toArrayValue);if(!a)return i;const s=a.length,l=1===s,c=!!e.parts;for(let n=0;n<s;n++){const s=t.details[n],u=t.details[Cg(a,n)],d=Ss(s.minW,u?._minW),p=Us(e[r]?.[a[n]],o);p&&(c?e.parts?.forEach(e=>{_s(i,{[e]:l?p[e]:{[d]:p[e]}})}):c?i[d]=p:l?_s(i,p):i[d]=p)}return i}}var jg=r(115);function Tg(){const e=(0,t.useContext)(Ma);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function Ag(){return{...Ga(),theme:Tg()}}function Rg(e,t,r){const n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return r=>{const i=o.filter(Boolean),a=n.map((t,n)=>{if("breakpoints"===e)return function(e,t,r){if(null==t)return t;const n=t=>e.__breakpoints?.asArray?.[t];return n(t)??n(r)??r}(r,t,i[n]??t);return function(e,t,r){if(null==t)return t;const n=t=>e.__cssMap?.[t]?.value;return n(t)??n(r)??r}(r,`${e}.${t}`,i[n]??t)});return Array.isArray(t)?a:a[0]}}function Og(e,r={}){const{styleConfig:n,...o}=r,{theme:i,colorMode:a}=Ag(),s=e?Vl(i,`components.${e}`):void 0,l=n||s,c=_s({theme:i,colorMode:a},l?.defaultProps??{},function(e){return Object.fromEntries(Object.entries(e).filter(([e,r])=>void 0!==r&&"children"!==e&&!(0,t.isValidElement)(r)))}(o),(e,t)=>e?void 0:t),u=(0,t.useRef)({});if(l){const e=function(e){return t=>{const{variant:r,size:n,theme:o}=t,i=Pg(o);return _s({},Us(e.baseStyle??{},t),i(e,"sizes",n,t),i(e,"variants",r,t))}}(l),t=e(c);jg(u.current,t)||(u.current=t)}return u.current}function zg(e,t={}){return Og(e,t)}function Fg(e,t={}){return Og(e,t)}const Bg={path:(0,fi.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,fi.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,fi.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,fi.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Ig=Eg((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...c}=e,u={ref:t,focusable:i,className:kg("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...zg("Icon",e)}},d=n??Bg.viewBox;if(r&&"string"!=typeof r)return(0,fi.jsx)(vg.svg,{as:r,...u,...c});const p=a??Bg.path;return(0,fi.jsx)(vg.svg,{verticalAlign:"middle",viewBox:d,...u,...c,children:p})});function Dg(e){return(0,fi.jsx)(Ig,{viewBox:"0 0 24 24",...e,children:(0,fi.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"})})}Ig.displayName="Icon";const Mg=us({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),$g=Eg((e,t)=>{const r=zg("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=_g(e),c=kg("chakra-spinner",s),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${Mg} ${i} linear infinite`,...r};return(0,fi.jsx)(vg.div,{ref:t,__css:u,className:c,...l,children:n&&(0,fi.jsx)(vg.span,{srOnly:!0,children:n})})});$g.displayName="Spinner";const[Lg,Ng]=Nl({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Vg,Wg]=Nl({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Ug={info:{icon:function(e){return(0,fi.jsx)(Ig,{viewBox:"0 0 24 24",...e,children:(0,fi.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:Dg,colorScheme:"orange"},success:{icon:function(e){return(0,fi.jsx)(Ig,{viewBox:"0 0 24 24",...e,children:(0,fi.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:Dg,colorScheme:"red"},loading:{icon:$g,colorScheme:"blue"}};const qg=Eg(function(e,t){const{status:r="info",addRole:n=!0,...o}=_g(e),i=e.colorScheme??function(e){return Ug[e].colorScheme}(r),a=Fg("Alert",{...e,colorScheme:i}),s={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return(0,fi.jsx)(Lg,{value:{status:r},children:(0,fi.jsx)(Vg,{value:a,children:(0,fi.jsx)(vg.div,{"data-status":r,role:n?"alert":void 0,ref:t,...o,className:kg("chakra-alert",e.className),__css:s})})})});function Hg(e){const{status:t}=Ng(),r=function(e){return Ug[e].icon}(t),n=Wg(),o="loading"===t?n.spinner:n.icon;return(0,fi.jsx)(vg.span,{display:"inherit","data-status":t,...e,className:kg("chakra-alert__icon",e.className),__css:o,children:e.children||(0,fi.jsx)(r,{h:"100%",w:"100%"})})}qg.displayName="Alert",Hg.displayName="AlertIcon";const Gg=Eg(function(e,t){const r=Wg(),{status:n}=Ng();return(0,fi.jsx)(vg.div,{ref:t,"data-status":n,...e,className:kg("chakra-alert__title",e.className),__css:r.title})});Gg.displayName="AlertTitle";const Yg=Eg(function(e,t){const{status:r}=Ng(),n={display:"inline",...Wg().description};return(0,fi.jsx)(vg.div,{ref:t,"data-status":r,...e,className:kg("chakra-alert__desc",e.className),__css:n})});function Xg(e){return(0,fi.jsx)(Ig,{focusable:"false","aria-hidden":!0,...e,children:(0,fi.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}Yg.displayName="AlertDescription";const Kg=Eg(function(e,t){const r=zg("CloseButton",e),{children:n,isDisabled:o,__css:i,...a}=_g(e);return(0,fi.jsx)(vg.button,{type:"button","aria-label":"Close",ref:t,disabled:o,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r,...i},...a,children:n||(0,fi.jsx)(Xg,{width:"1em",height:"1em"})})});Kg.displayName="CloseButton";const Jg=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:c}=e,u=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return(0,fi.jsxs)(qg,{addRole:!1,status:t,variant:r,id:u?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[(0,fi.jsx)(Hg,{children:c}),(0,fi.jsxs)(vg.div,{flex:"1",maxWidth:"100%",children:[o&&(0,fi.jsx)(Gg,{id:u?.title,children:o}),s&&(0,fi.jsx)(Yg,{id:u?.description,display:"block",children:s})]}),i&&(0,fi.jsx)(Kg,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function Zg(e={}){const{render:t,toastComponent:r=Jg}=e;return n=>"function"==typeof t?t({...n,...e}):(0,fi.jsx)(r,{...n,...e})}const Qg=function(e){let t=e;const r=new Set,n=e=>{t=e(t),r.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(r.add(t),()=>{n(()=>e),r.delete(t)}),removeToast:(e,t)=>{n(r=>({...r,[t]:r[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{const r=function(e,t={}){eb+=1;const r=t.id??eb,n=t.position??"bottom";return{id:r,message:e,position:n,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Qg.removeToast(String(r),n),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:o,id:i}=r;return n(e=>{const t=o.includes("top")?[r,...e[o]??[]]:[...e[o]??[],r];return{...e,[o]:t}}),i},update:(e,t)=>{e&&n(r=>{const n={...r},{position:o,index:i}=tg(n,e);return o&&-1!==i&&(n[o][i]={...n[o][i],...t,message:Zg(t)}),n})},closeAll:({positions:e}={})=>{n(t=>(e??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,r)=>(e[r]=t[r].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{n(t=>{const r=rg(t,e);return r?{...t,[r]:t[r].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>Boolean(tg(Qg.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]});let eb=0;const tb=Boolean(globalThis?.document)?t.useLayoutEffect:t.useEffect;var rb=r(5206);const[nb,ob]=Nl({strict:!1,name:"PortalContext"}),ib="chakra-portal",ab=e=>(0,fi.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),sb=e=>{const{appendToParentPortal:r,children:n}=e,[o,i]=(0,t.useState)(null),a=(0,t.useRef)(null),[,s]=(0,t.useState)({});(0,t.useEffect)(()=>s({}),[]);const l=ob(),c=Xl();tb(()=>{if(!o)return;const e=o.ownerDocument,t=r?l??e.body:e.body;if(!t)return;a.current=e.createElement("div"),a.current.className=ib,t.appendChild(a.current),s({});const n=a.current;return()=>{t.contains(n)&&t.removeChild(n)}},[o]);const u=c?.zIndex?(0,fi.jsx)(ab,{zIndex:c?.zIndex,children:n}):n;return a.current?(0,rb.createPortal)((0,fi.jsx)(nb,{value:a.current,children:u}),a.current):(0,fi.jsx)("span",{ref:e=>{e&&i(e)}})},lb=e=>{const{children:r,containerRef:n,appendToParentPortal:o}=e,i=n.current,a=i??("undefined"!=typeof window?document.body:void 0),s=(0,t.useMemo)(()=>{const e=i?.ownerDocument.createElement("div");return e&&(e.className=ib),e},[i]),[,l]=(0,t.useState)({});return tb(()=>l({}),[]),tb(()=>{if(s&&a)return a.appendChild(s),()=>{a.removeChild(s)}},[s,a]),a&&s?(0,rb.createPortal)((0,fi.jsx)(nb,{value:o?s:null,children:r}),s):null};function cb(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?(0,fi.jsx)(lb,{containerRef:r,...n}):(0,fi.jsx)(sb,{...n})}cb.className=ib,cb.selector=".chakra-portal",cb.displayName="Portal";const[ub,db]=Nl({name:"ToastOptionsContext",strict:!1}),pb=e=>{const r=(0,t.useSyncExternalStore)(Qg.subscribe,Qg.getState,Qg.getState),{motionVariants:n,component:o=Sg,portalProps:i,animatePresenceProps:a}=e,s=Object.keys(r).map(e=>{const t=r[e];return(0,fi.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:ng(e),children:(0,fi.jsx)(xc,{...a,initial:!1,children:t.map(e=>(0,fi.jsx)(o,{motionVariants:n,...e},e.id))})},e)});return(0,fi.jsx)(cb,{...i,children:s})},fb=(hb=pi,function({children:e,theme:t=hb,toastOptions:r,...n}){return(0,fi.jsxs)(Ql,{theme:t,...n,children:[(0,fi.jsx)(ub,{value:r?.defaultOptions,children:e}),(0,fi.jsx)(pb,{...r})]})});var hb;function mb(e,t){return function(){return e.apply(t,arguments)}}const{toString:gb}=Object.prototype,{getPrototypeOf:bb}=Object,{iterator:yb,toStringTag:vb}=Symbol,xb=(Sb=Object.create(null),e=>{const t=gb.call(e);return Sb[t]||(Sb[t]=t.slice(8,-1).toLowerCase())});var Sb;const wb=e=>(e=e.toLowerCase(),t=>xb(t)===e),_b=e=>t=>typeof t===e,{isArray:kb}=Array,Eb=_b("undefined");function Cb(e){return null!==e&&!Eb(e)&&null!==e.constructor&&!Eb(e.constructor)&&Tb(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pb=wb("ArrayBuffer");const jb=_b("string"),Tb=_b("function"),Ab=_b("number"),Rb=e=>null!==e&&"object"==typeof e,Ob=e=>{if("object"!==xb(e))return!1;const t=bb(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||vb in e||yb in e)},zb=wb("Date"),Fb=wb("File"),Bb=wb("Blob"),Ib=wb("FileList"),Db=wb("URLSearchParams"),[Mb,$b,Lb,Nb]=["ReadableStream","Request","Response","Headers"].map(wb);function Vb(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),kb(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Cb(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function Wb(e,t){if(Cb(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const Ub="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,qb=e=>!Eb(e)&&e!==Ub;const Hb=(Gb="undefined"!=typeof Uint8Array&&bb(Uint8Array),e=>Gb&&e instanceof Gb);var Gb;const Yb=wb("HTMLFormElement"),Xb=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Kb=wb("RegExp"),Jb=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Vb(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)};const Zb=wb("AsyncFunction"),Qb=(ey="function"==typeof setImmediate,ty=Tb(Ub.postMessage),ey?setImmediate:ty?((e,t)=>(Ub.addEventListener("message",({source:r,data:n})=>{r===Ub&&n===e&&t.length&&t.shift()()},!1),r=>{t.push(r),Ub.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var ey,ty;const ry="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ub):"undefined"!=typeof process&&process.nextTick||Qb,ny={isArray:kb,isArrayBuffer:Pb,isBuffer:Cb,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Tb(e.append)&&("formdata"===(t=xb(e))||"object"===t&&Tb(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Pb(e.buffer),t},isString:jb,isNumber:Ab,isBoolean:e=>!0===e||!1===e,isObject:Rb,isPlainObject:Ob,isEmptyObject:e=>{if(!Rb(e)||Cb(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Mb,isRequest:$b,isResponse:Lb,isHeaders:Nb,isUndefined:Eb,isDate:zb,isFile:Fb,isBlob:Bb,isRegExp:Kb,isFunction:Tb,isStream:e=>Rb(e)&&Tb(e.pipe),isURLSearchParams:Db,isTypedArray:Hb,isFileList:Ib,forEach:Vb,merge:function e(){const{caseless:t,skipUndefined:r}=qb(this)&&this||{},n={},o=(o,i)=>{const a=t&&Wb(n,i)||i;Ob(n[a])&&Ob(o)?n[a]=e(n[a],o):Ob(o)?n[a]=e({},o):kb(o)?n[a]=o.slice():r&&Eb(o)||(n[a]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Vb(arguments[e],o);return n},extend:(e,t,r,{allOwnKeys:n}={})=>(Vb(t,(t,n)=>{r&&Tb(t)?e[n]=mb(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&bb(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:xb,kindOfTest:wb,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(kb(e))return e;let t=e.length;if(!Ab(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[yb]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:Yb,hasOwnProperty:Xb,hasOwnProp:Xb,reduceDescriptors:Jb,freezeMethods:e=>{Jb(e,(t,r)=>{if(Tb(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];Tb(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return kb(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Wb,global:Ub,isContextDefined:qb,isSpecCompliantForm:function(e){return!!(e&&Tb(e.append)&&"FormData"===e[vb]&&e[yb])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(Rb(e)){if(t.indexOf(e)>=0)return;if(Cb(e))return e;if(!("toJSON"in e)){t[n]=e;const o=kb(e)?[]:{};return Vb(e,(e,t)=>{const i=r(e,n+1);!Eb(i)&&(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:Zb,isThenable:e=>e&&(Rb(e)||Tb(e))&&Tb(e.then)&&Tb(e.catch),setImmediate:Qb,asap:ry,isIterable:e=>null!=e&&Tb(e[yb])};function oy(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}ny.inherits(oy,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ny.toJSONObject(this.config),code:this.code,status:this.status}}});const iy=oy.prototype,ay={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ay[e]={value:e}}),Object.defineProperties(oy,ay),Object.defineProperty(iy,"isAxiosError",{value:!0}),oy.from=(e,t,r,n,o,i)=>{const a=Object.create(iy);ny.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return oy.call(a,s,l,r,n,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};const sy=oy;function ly(e){return ny.isPlainObject(e)||ny.isArray(e)}function cy(e){return ny.endsWith(e,"[]")?e.slice(0,-2):e}function uy(e,t,r){return e?e.concat(t).map(function(e,t){return e=cy(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const dy=ny.toFlatObject(ny,{},null,function(e){return/^is[A-Z]/.test(e)});const py=function(e,t,r){if(!ny.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=ny.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ny.isUndefined(t[e])})).metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&ny.isSpecCompliantForm(t);if(!ny.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ny.isDate(e))return e.toISOString();if(ny.isBoolean(e))return e.toString();if(!s&&ny.isBlob(e))throw new sy("Blob is not supported. Use a Buffer instead.");return ny.isArrayBuffer(e)||ny.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,o){let s=e;if(e&&!o&&"object"==typeof e)if(ny.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(ny.isArray(e)&&function(e){return ny.isArray(e)&&!e.some(ly)}(e)||(ny.isFileList(e)||ny.endsWith(r,"[]"))&&(s=ny.toArray(e)))return r=cy(r),s.forEach(function(e,n){!ny.isUndefined(e)&&null!==e&&t.append(!0===a?uy([r],n,i):null===a?r:r+"[]",l(e))}),!1;return!!ly(e)||(t.append(uy(o,r,i),l(e)),!1)}const u=[],d=Object.assign(dy,{defaultVisitor:c,convertValue:l,isVisitable:ly});if(!ny.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!ny.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),ny.forEach(r,function(r,i){!0===(!(ny.isUndefined(r)||null===r)&&o.call(t,r,ny.isString(i)?i.trim():i,n,d))&&e(r,n?n.concat(i):[i])}),u.pop()}}(e),t};function fy(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function hy(e,t){this._pairs=[],e&&py(e,this,t)}const my=hy.prototype;my.append=function(e,t){this._pairs.push([e,t])},my.toString=function(e){const t=e?function(t){return e.call(this,t,fy)}:fy;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const gy=hy;function by(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function yy(e,t,r){if(!t)return e;const n=r&&r.encode||by;ny.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(t,r):ny.isURLSearchParams(t)?t.toString():new gy(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const vy=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ny.forEach(this.handlers,function(t){null!==t&&e(t)})}},xy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Sy={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:gy,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},wy="undefined"!=typeof window&&"undefined"!=typeof document,_y="object"==typeof navigator&&navigator||void 0,ky=wy&&(!_y||["ReactNative","NativeScript","NS"].indexOf(_y.product)<0),Ey="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Cy=wy&&window.location.href||"http://localhost",Py={...e,...Sy};const jy=function(e){function t(e,r,n,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&ny.isArray(n)?n.length:i,s)return ny.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&ny.isObject(n[i])||(n[i]=[]);return t(e,r,n[i],o)&&ny.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}(n[i])),!a}if(ny.isFormData(e)&&ny.isFunction(e.entries)){const r={};return ny.forEachEntry(e,(e,n)=>{t(function(e){return ny.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null};const Ty={transitional:xy,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=ny.isObject(e);o&&ny.isHTMLForm(e)&&(e=new FormData(e));if(ny.isFormData(e))return n?JSON.stringify(jy(e)):e;if(ny.isArrayBuffer(e)||ny.isBuffer(e)||ny.isStream(e)||ny.isFile(e)||ny.isBlob(e)||ny.isReadableStream(e))return e;if(ny.isArrayBufferView(e))return e.buffer;if(ny.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return py(e,new Py.classes.URLSearchParams,{visitor:function(e,t,r,n){return Py.isNode&&ny.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=ny.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return py(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(ny.isString(e))try{return(t||JSON.parse)(e),ny.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ty.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(ny.isResponse(e)||ny.isReadableStream(e))return e;if(e&&ny.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw sy.from(e,sy.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Py.classes.FormData,Blob:Py.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ny.forEach(["delete","get","head","post","put","patch"],e=>{Ty.headers[e]={}});const Ay=Ty,Ry=ny.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oy=Symbol("internals");function zy(e){return e&&String(e).trim().toLowerCase()}function Fy(e){return!1===e||null==e?e:ny.isArray(e)?e.map(Fy):String(e)}function By(e,t,r,n,o){return ny.isFunction(n)?n.call(this,t,r):(o&&(t=r),ny.isString(t)?ny.isString(n)?-1!==t.indexOf(n):ny.isRegExp(n)?n.test(t):void 0:void 0)}class Iy{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=zy(t);if(!o)throw new Error("header name must be a non-empty string");const i=ny.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=Fy(e))}const i=(e,t)=>ny.forEach(e,(e,r)=>o(e,r,t));if(ny.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ny.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&Ry[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(ny.isObject(e)&&ny.isIterable(e)){let r,n,o={};for(const t of e){if(!ny.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[n=t[0]]=(r=o[n])?ny.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=zy(e)){const r=ny.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(ny.isFunction(t))return t.call(this,e,r);if(ny.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=zy(e)){const r=ny.findKey(this,e);return!(!r||void 0===this[r]||t&&!By(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=zy(e)){const o=ny.findKey(r,e);!o||t&&!By(0,r[o],o,t)||(delete r[o],n=!0)}}return ny.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!By(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return ny.forEach(this,(n,o)=>{const i=ny.findKey(r,o);if(i)return t[i]=Fy(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();a!==o&&delete t[o],t[a]=Fy(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ny.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&ny.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[Oy]=this[Oy]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=zy(e);t[n]||(!function(e,t){const r=ny.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return ny.isArray(e)?e.forEach(n):n(e),this}}Iy.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ny.reduceDescriptors(Iy.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),ny.freezeMethods(Iy);const Dy=Iy;function My(e,t){const r=this||Ay,n=t||r,o=Dy.from(n.headers);let i=n.data;return ny.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function $y(e){return!(!e||!e.__CANCEL__)}function Ly(e,t,r){sy.call(this,null==e?"canceled":e,sy.ERR_CANCELED,t,r),this.name="CanceledError"}ny.inherits(Ly,sy,{__CANCEL__:!0});const Ny=Ly;function Vy(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new sy("Request failed with status code "+r.status,[sy.ERR_BAD_REQUEST,sy.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const Wy=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=n[a];o||(o=l),r[i]=s,n[i]=l;let u=a,d=0;for(;u!==i;)d+=r[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}};const Uy=function(e,t){let r,n,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},i-s)))},()=>r&&a(r)]},qy=(e,t,r=3)=>{let n=0;const o=Wy(50,250);return Uy(r=>{const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=i-n,l=o(s);n=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},Hy=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Gy=e=>(...t)=>ny.asap(()=>e(...t)),Yy=Py.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Py.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Py.origin),Py.navigator&&/(msie|trident)/i.test(Py.navigator.userAgent)):()=>!0,Xy=Py.hasStandardBrowserEnv?{write(e,t,r,n,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];ny.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),ny.isString(n)&&s.push(`path=${n}`),ny.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),ny.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Ky(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Jy=e=>e instanceof Dy?{...e}:e;function Zy(e,t){t=t||{};const r={};function n(e,t,r,n){return ny.isPlainObject(e)&&ny.isPlainObject(t)?ny.merge.call({caseless:n},e,t):ny.isPlainObject(t)?ny.merge({},t):ny.isArray(t)?t.slice():t}function o(e,t,r,o){return ny.isUndefined(t)?ny.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!ny.isUndefined(t))return n(void 0,t)}function a(e,t){return ny.isUndefined(t)?ny.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>o(Jy(e),Jy(t),0,!0)};return ny.forEach(Object.keys({...e,...t}),function(n){const i=l[n]||o,a=i(e[n],t[n],n);ny.isUndefined(a)&&i!==s||(r[n]=a)}),r}const Qy=e=>{const t=Zy({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=Dy.from(a),t.url=yy(Ky(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),ny.isFormData(r))if(Py.hasStandardBrowserEnv||Py.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(ny.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&a.set(e,r)})}if(Py.hasStandardBrowserEnv&&(n&&ny.isFunction(n)&&(n=n(t)),n||!1!==n&&Yy(t.url))){const e=o&&i&&Xy.read(i);e&&a.set(o,e)}return t},ev="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=Qy(e);let o=n.data;const i=Dy.from(n.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=n;function h(){c&&c(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const n=Dy.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Vy(function(e){t(e),h()},function(e){r(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(r(new sy("Request aborted",sy.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const n=t&&t.message?t.message:"Network Error",o=new sy(n,sy.ERR_NETWORK,e,m);o.event=t||null,r(o),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||xy;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new sy(t,o.clarifyTimeoutError?sy.ETIMEDOUT:sy.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&ny.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),ny.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),d&&"json"!==d&&(m.responseType=n.responseType),f&&([l,u]=qy(f,!0),m.addEventListener("progress",l)),p&&m.upload&&([s,c]=qy(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(n.cancelToken||n.signal)&&(a=t=>{m&&(r(!t||t.type?new Ny(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);b&&-1===Py.protocols.indexOf(b)?r(new sy("Unsupported protocol "+b+":",sy.ERR_BAD_REQUEST,e)):m.send(o||null)})},tv=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,a();const t=e instanceof Error?e:this.reason;n.abort(t instanceof sy?t:new Ny(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new sy(`timeout ${t} of ms exceeded`,sy.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=n;return s.unsubscribe=()=>ny.asap(a),s}},rv=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},nv=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},ov=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of nv(e))yield*rv(r,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:iv}=ny,av=(({Request:e,Response:t})=>({Request:e,Response:t}))(ny.global),{ReadableStream:sv,TextEncoder:lv}=ny.global,cv=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},uv=e=>{e=ny.merge.call({skipUndefined:!0},av,e);const{fetch:t,Request:r,Response:n}=e,o=t?iv(t):"function"==typeof fetch,i=iv(r),a=iv(n);if(!o)return!1;const s=o&&iv(sv),l=o&&("function"==typeof lv?(c=new lv,e=>c.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var c;const u=i&&s&&cv(()=>{let e=!1;const t=new r(Py.origin,{body:new sv,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=a&&s&&cv(()=>ny.isReadableStream(new n("").body)),p={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new sy(`Response type '${e}' is not supported`,sy.ERR_NOT_SUPPORT,r)})});const f=async(e,t)=>{const n=ny.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(ny.isBlob(e))return e.size;if(ny.isSpecCompliantForm(e)){const t=new r(Py.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ny.isArrayBufferView(e)||ny.isArrayBuffer(e)?e.byteLength:(ny.isURLSearchParams(e)&&(e+=""),ny.isString(e)?(await l(e)).byteLength:void 0)})(t):n};return async e=>{let{url:o,method:a,data:s,signal:l,cancelToken:c,timeout:h,onDownloadProgress:m,onUploadProgress:g,responseType:b,headers:y,withCredentials:v="same-origin",fetchOptions:x}=Qy(e),S=t||fetch;b=b?(b+"").toLowerCase():"text";let w=tv([l,c&&c.toAbortSignal()],h),_=null;const k=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let E;try{if(g&&u&&"get"!==a&&"head"!==a&&0!==(E=await f(y,s))){let e,t=new r(o,{method:"POST",body:s,duplex:"half"});if(ny.isFormData(s)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){const[e,r]=Hy(E,qy(Gy(g)));s=ov(t.body,65536,e,r)}}ny.isString(v)||(v=v?"include":"omit");const t=i&&"credentials"in r.prototype,l={...x,signal:w,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:t?v:void 0};_=i&&new r(o,l);let c=await(i?S(_,x):S(o,l));const h=d&&("stream"===b||"response"===b);if(d&&(m||h&&k)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=c[t]});const t=ny.toFiniteNumber(c.headers.get("content-length")),[r,o]=m&&Hy(t,qy(Gy(m),!0))||[];c=new n(ov(c.body,65536,r,()=>{o&&o(),k&&k()}),e)}b=b||"text";let C=await p[ny.findKey(p,b)||"text"](c,e);return!h&&k&&k(),await new Promise((t,r)=>{Vy(t,r,{data:C,headers:Dy.from(c.headers),status:c.status,statusText:c.statusText,config:e,request:_})})}catch(t){if(k&&k(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new sy("Network Error",sy.ERR_NETWORK,e,_),{cause:t.cause||t});throw sy.from(t,t&&t.code,e,_)}}},dv=new Map,pv=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a,s,l=i.length,c=dv;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:uv(t)),c=s;return s},fv=(pv(),{http:null,xhr:ev,fetch:{get:pv}});ny.forEach(fv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const hv=e=>`- ${e}`,mv=e=>ny.isFunction(e)||null===e||!1===e;const gv={getAdapter:function(e,t){e=ny.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a<r;a++){let r;if(n=e[a],o=n,!mv(n)&&(o=fv[(r=String(n)).toLowerCase()],void 0===o))throw new sy(`Unknown adapter '${r}'`);if(o&&(ny.isFunction(o)||(o=o.get(t))))break;i[r||"#"+a]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(hv).join("\n"):" "+hv(e[0]):"as no adapter specified";throw new sy("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:fv};function bv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ny(null,e)}function yv(e){bv(e),e.headers=Dy.from(e.headers),e.data=My.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return gv.getAdapter(e.adapter||Ay.adapter,e)(e).then(function(t){return bv(e),t.data=My.call(e,e.transformResponse,t),t.headers=Dy.from(t.headers),t},function(t){return $y(t)||(bv(e),t&&t.response&&(t.response.data=My.call(e,e.transformResponse,t.response),t.response.headers=Dy.from(t.response.headers))),Promise.reject(t)})}const vv="1.13.2",xv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{xv[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Sv={};xv.transitional=function(e,t,r){function n(e,t){return"[Axios v"+vv+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new sy(n(o," has been removed"+(t?" in "+t:"")),sy.ERR_DEPRECATED);return t&&!Sv[o]&&(Sv[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},xv.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const wv={assertOptions:function(e,t,r){if("object"!=typeof e)throw new sy("options must be an object",sy.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new sy("option "+i+" must be "+r,sy.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new sy("Unknown option "+i,sy.ERR_BAD_OPTION)}},validators:xv},_v=wv.validators;class kv{constructor(e){this.defaults=e||{},this.interceptors={request:new vy,response:new vy}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Zy(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&wv.assertOptions(r,{silentJSONParsing:_v.transitional(_v.boolean),forcedJSONParsing:_v.transitional(_v.boolean),clarifyTimeoutError:_v.transitional(_v.boolean)},!1),null!=n&&(ny.isFunction(n)?t.paramsSerializer={serialize:n}:wv.assertOptions(n,{encode:_v.function,serialize:_v.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),wv.assertOptions(t,{baseUrl:_v.spelling("baseURL"),withXsrfToken:_v.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ny.merge(o.common,o[t.method]);o&&ny.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Dy.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[yv.bind(this),void 0];for(e.unshift(...a),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=yv.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return yy(Ky((e=Zy(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}ny.forEach(["delete","get","head","options"],function(e){kv.prototype[e]=function(t,r){return this.request(Zy(r||{},{method:e,url:t,data:(r||{}).data}))}}),ny.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,o){return this.request(Zy(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}kv.prototype[e]=t(),kv.prototype[e+"Form"]=t(!0)});const Ev=kv;class Cv{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new Ny(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Cv(function(t){e=t}),cancel:e}}}const Pv=Cv;const jv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(jv).forEach(([e,t])=>{jv[t]=e});const Tv=jv;const Av=function e(t){const r=new Ev(t),n=mb(Ev.prototype.request,r);return ny.extend(n,Ev.prototype,r,{allOwnKeys:!0}),ny.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Zy(t,r))},n}(Ay);Av.Axios=Ev,Av.CanceledError=Ny,Av.CancelToken=Pv,Av.isCancel=$y,Av.VERSION=vv,Av.toFormData=py,Av.AxiosError=sy,Av.Cancel=Av.CanceledError,Av.all=function(e){return Promise.all(e)},Av.spread=function(e){return function(t){return e.apply(null,t)}},Av.isAxiosError=function(e){return ny.isObject(e)&&!0===e.isAxiosError},Av.mergeConfig=Zy,Av.AxiosHeaders=Dy,Av.formToJSON=e=>jy(ny.isHTMLForm(e)?new FormData(e):e),Av.getAdapter=gv.getAdapter,Av.HttpStatusCode=Tv,Av.default=Av;const Rv=Av,Ov=vg("div");Ov.displayName="Box";const zv=e=>(0,fi.jsx)(vg.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});zv.displayName="StackItem";Object.freeze(["base","sm","md","lg","xl","2xl"]);function Fv(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):Rr(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):null!=e?t(e):null}const Bv=Eg((e,r)=>{const{isInline:n,direction:o,align:i,justify:a,spacing:s="0.5rem",wrap:l,children:c,divider:u,className:d,shouldWrapChildren:p,...f}=e,h=n?"row":o??"column",m=(0,t.useMemo)(()=>function(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Fv(r,e=>n[e])}}({spacing:s,direction:h}),[s,h]),g=!!u,b=!p&&!g,y=(0,t.useMemo)(()=>{const e=function(e){return t.Children.toArray(e).filter(e=>(0,t.isValidElement)(e))}(c);return b?e:e.map((r,n)=>{const o=void 0!==r.key?r.key:n,i=n+1===e.length,a=p?(0,fi.jsx)(zv,{children:r},o):r;if(!g)return a;const s=(0,t.cloneElement)(u,{__css:m}),l=i?null:s;return(0,fi.jsxs)(t.Fragment,{children:[a,l]},o)})},[u,m,g,b,p,c]),v=kg("chakra-stack",d);return(0,fi.jsx)(vg.div,{ref:r,display:"flex",alignItems:i,justifyContent:a,flexDirection:h,flexWrap:l,gap:g?void 0:s,className:v,...f,children:y})});Bv.displayName="Stack";const Iv=Eg((e,t)=>(0,fi.jsx)(Bv,{align:"center",...e,direction:"column",ref:t}));Iv.displayName="VStack";const Dv=vg("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),Mv=M("skeleton-start-color"),$v=M("skeleton-end-color"),Lv=us({from:{opacity:0},to:{opacity:1}}),Nv=us({from:{borderColor:Mv.reference,background:Mv.reference},to:{borderColor:$v.reference,background:$v.reference}}),Vv=Eg((e,r)=>{const n={...e,fadeDuration:"number"==typeof e.fadeDuration?e.fadeDuration:.4,speed:"number"==typeof e.speed?e.speed:.8},o=zg("Skeleton",n),i=function(){const e=(0,t.useRef)(!0);return(0,t.useEffect)(()=>{e.current=!1},[]),e.current}(),{startColor:a="",endColor:s="",isLoaded:l,fadeDuration:c,speed:u,className:d,fitContent:p,animation:f,...h}=_g(n),[m,g]=function(e,t,r){const n=Tg();return Rg(e,t,r)(n)}("colors",[a,s]),b=function(e){const r=(0,t.useRef)(void 0);return(0,t.useEffect)(()=>{r.current=e},[e]),r.current}(l),y=kg("chakra-skeleton",d),v={...m&&{[Mv.variable]:m},...g&&{[$v.variable]:g}};if(l){const e=i||b?"none":`${Lv} ${c}s`;return(0,fi.jsx)(vg.div,{ref:r,className:y,__css:{animation:e},...h})}return(0,fi.jsx)(Dv,{ref:r,className:y,...h,__css:{width:p?"fit-content":void 0,...o,...v,_dark:{...o._dark,...v},animation:f||`${u}s linear infinite alternate ${Nv}`}})});Vv.displayName="Skeleton";const Wv=Eg(function(e,t){const{direction:r,align:n,justify:o,wrap:i,basis:a,grow:s,shrink:l,...c}=e,u={display:"flex",flexDirection:r,alignItems:n,justifyContent:o,flexWrap:i,flexBasis:a,flexGrow:s,flexShrink:l};return(0,fi.jsx)(vg.div,{ref:t,__css:u,...c})});function Uv(e,t){const r=e??"bottom",n={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return n?.[t]??r}function qv(e){const{theme:r}=Ag(),n=db();return(0,t.useMemo)(()=>function(e,t){const r=r=>({...t,...r,position:Uv(r?.position??t?.position,e)}),n=e=>{const t=r(e),n=Zg(t);return Qg.notify(n,t)};return n.update=(e,t)=>{Qg.update(e,r(t))},n.promise=(e,t)=>{const r=n({...t.loading,status:"loading",duration:null});e.then(e=>n.update(r,{status:"success",duration:5e3,...Us(t.success,e)})).catch(e=>n.update(r,{status:"error",duration:5e3,...Us(t.error,e)}))},n.closeAll=Qg.closeAll,n.close=Qg.close,n.isActive=Qg.isActive,n}(r.direction,{...n,...e}),[e,r.direction,n])}Wv.displayName="Flex";const Hv=Eg(function(e,t){const r=zg("Text",e),{className:n,align:o,decoration:i,casing:a,...s}=_g(e),l=og({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,fi.jsx)(vg.p,{ref:t,className:kg("chakra-text",e.className),...l,...s,__css:r})});Hv.displayName="Text";const Gv=Eg((e,t)=>(0,fi.jsx)(Bv,{align:"center",...e,direction:"row",ref:t}));Gv.displayName="HStack";const Yv=Eg(function(e,t){const r=zg("Badge",e),{className:n,...o}=_g(e);return(0,fi.jsx)(vg.span,{ref:t,className:kg("chakra-badge",e.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});function Xv(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(r){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)})}}function Kv(...e){return(0,t.useMemo)(()=>Xv(...e),e)}Yv.displayName="Badge";const Jv=e=>e?"":void 0,Zv=e=>!!e||void 0,[Qv,ex]=Nl({strict:!1,name:"ButtonGroupContext"});function tx(e){const{children:r,className:n,...o}=e,i=(0,t.isValidElement)(r)?(0,t.cloneElement)(r,{"aria-hidden":!0,focusable:!1}):r,a=kg("chakra-button__icon",n);return(0,fi.jsx)(vg.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...o,className:a,children:i})}function rx(e){const{label:r,placement:n,spacing:o="0.5rem",children:i=(0,fi.jsx)($g,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:s,...l}=e,c=kg("chakra-button__spinner",a),u="start"===n?"marginEnd":"marginStart",d=(0,t.useMemo)(()=>({display:"flex",alignItems:"center",position:r?"relative":"absolute",[u]:r?o:0,fontSize:"1em",lineHeight:"normal",...s}),[s,r,u,o]);return(0,fi.jsx)(vg.div,{className:c,...l,__css:d,children:i})}tx.displayName="ButtonIcon",rx.displayName="ButtonSpinner";const nx=Eg((e,r)=>{const n=ex(),o=zg("Button",{...n,...e}),{isDisabled:i=n?.isDisabled,isLoading:a,isActive:s,children:l,leftIcon:c,rightIcon:u,loadingText:d,iconSpacing:p="0.5rem",type:f,spinner:h,spinnerPlacement:m="start",className:g,as:b,shouldWrapChildren:y,...v}=_g(e),x=(0,t.useMemo)(()=>{const e={...o?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...o,...!!n&&{_focus:e}}},[o,n]),{ref:S,type:w}=function(e){const[r,n]=(0,t.useState)(!e),o=(0,t.useCallback)(e=>{e&&n("BUTTON"===e.tagName)},[]);return{ref:o,type:r?"button":void 0}}(b),_={rightIcon:u,leftIcon:c,iconSpacing:p,children:l,shouldWrapChildren:y};return(0,fi.jsxs)(vg.button,{disabled:i||a,ref:Kv(r,S),as:b,type:f??w,"data-active":Jv(s),"data-loading":Jv(a),__css:x,className:kg("chakra-button",g),...v,children:[a&&"start"===m&&(0,fi.jsx)(rx,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:p,children:h}),a?d||(0,fi.jsx)(vg.span,{opacity:0,children:(0,fi.jsx)(ox,{..._})}):(0,fi.jsx)(ox,{..._}),a&&"end"===m&&(0,fi.jsx)(rx,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:p,children:h})]})});function ox(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o,shouldWrapChildren:i}=e;return i?(0,fi.jsxs)("span",{style:{display:"contents"},children:[t&&(0,fi.jsx)(tx,{marginEnd:o,children:t}),n,r&&(0,fi.jsx)(tx,{marginStart:o,children:r})]}):(0,fi.jsxs)(fi.Fragment,{children:[t&&(0,fi.jsx)(tx,{marginEnd:o,children:t}),n,r&&(0,fi.jsx)(tx,{marginStart:o,children:r})]})}nx.displayName="Button";var ix={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ax=n().createContext&&n().createContext(ix),sx=function(){return sx=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sx.apply(this,arguments)},lx=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};function cx(e){return e&&e.map(function(e,t){return n().createElement(e.tag,sx({key:t},e.attr),cx(e.child))})}function ux(e){return function(t){return n().createElement(dx,sx({attr:sx({},e.attr)},t),cx(e.child))}}function dx(e){var t=function(t){var r,o=e.attr,i=e.size,a=e.title,s=lx(e,["attr","size","title"]),l=i||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n().createElement("svg",sx({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,s,{className:r,style:sx(sx({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&n().createElement("title",null,a),e.children)};return void 0!==ax?n().createElement(ax.Consumer,null,function(e){return t(e)}):t(ix)}function px(e){return ux({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"}},{tag:"polyline",attr:{points:"12 5 19 12 12 19"}}]})(e)}function fx(e){return ux({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"}}]})(e)}function hx(e){return ux({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}},{tag:"path",attr:{d:"M7 11V7a5 5 0 0 1 10 0v4"}}]})(e)}function mx(e){return ux({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"}}]})(e)}function gx(e){return ux({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"16.5",y1:"9.4",x2:"7.5",y2:"4.21"}},{tag:"path",attr:{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}},{tag:"polyline",attr:{points:"3.27 6.96 12 12.01 20.73 6.96"}},{tag:"line",attr:{x1:"12",y1:"22.08",x2:"12",y2:"12"}}]})(e)}function bx(e){return ux({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"12",y1:"5",x2:"12",y2:"19"}},{tag:"line",attr:{x1:"5",y1:"12",x2:"19",y2:"12"}}]})(e)}function yx(e){return ux({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"9",cy:"21",r:"1"}},{tag:"circle",attr:{cx:"20",cy:"21",r:"1"}},{tag:"path",attr:{d:"M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"}}]})(e)}function vx(e){return ux({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"}},{tag:"line",attr:{x1:"7",y1:"7",x2:"7.01",y2:"7"}}]})(e)}const xx=Eg(function(e,t){const{templateAreas:r,gap:n,rowGap:o,columnGap:i,column:a,row:s,autoFlow:l,autoRows:c,templateRows:u,autoColumns:d,templateColumns:p,...f}=e,h={display:"grid",gridTemplateAreas:r,gridGap:n,gridRowGap:o,gridColumnGap:i,gridAutoColumns:d,gridColumn:a,gridRow:s,gridAutoFlow:l,gridAutoRows:c,gridTemplateRows:u,gridTemplateColumns:p};return(0,fi.jsx)(vg.div,{ref:t,__css:h,...f})});xx.displayName="Grid";const Sx=Eg(function(e,t){const{columns:r,spacingX:n,spacingY:o,spacing:i,minChildWidth:a,...s}=e,l=Tg(),c=a?function(e,t){return Fv(e,e=>{const r=Rg("sizes",e,"number"==typeof(n=e)?`${n}px`:n)(t);var n;return null===e?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}(a,l):Fv(r,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);return(0,fi.jsx)(xx,{ref:t,gap:i,columnGap:n,rowGap:o,templateColumns:c,...s})});Sx.displayName="SimpleGrid";const wx=Eg(function(e,t){const{htmlWidth:r,htmlHeight:n,alt:o,...i}=e;return(0,fi.jsx)("img",{width:r,height:n,ref:t,alt:o,...i})});wx.displayName="NativeImage";const _x=Eg(function(e,r){const{fallbackSrc:n,fallback:o,src:i,srcSet:a,align:s,fit:l,loading:c,ignoreFallback:u,crossOrigin:d,fallbackStrategy:p="beforeLoadOrError",referrerPolicy:f,...h}=e,m=null!=c||u||!(void 0!==n||void 0!==o),g=function(e){const{loading:r,src:n,srcSet:o,onLoad:i,onError:a,crossOrigin:s,sizes:l,ignoreFallback:c}=e,[u,d]=(0,t.useState)("pending");(0,t.useEffect)(()=>{d(n?"loading":"pending")},[n]);const p=(0,t.useRef)(null),f=(0,t.useCallback)(()=>{if(!n)return;h();const e=new Image;e.src=n,s&&(e.crossOrigin=s),o&&(e.srcset=o),l&&(e.sizes=l),r&&(e.loading=r),e.onload=e=>{h(),d("loaded"),i?.(e)},e.onerror=e=>{h(),d("failed"),a?.(e)},p.current=e},[n,s,o,l,i,a,r]),h=()=>{p.current&&(p.current.onload=null,p.current.onerror=null,p.current=null)};return tb(()=>{if(!c)return"loading"===u&&f(),()=>{h()}},[u,f,c]),c?"loaded":u}({...e,crossOrigin:d,ignoreFallback:m}),b=((e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t)(g,p),y={ref:r,objectFit:l,objectPosition:s,...m?h:wg(h,["onError","onLoad"])};return b?o||(0,fi.jsx)(vg.img,{as:wx,className:"chakra-image__placeholder",src:n,...y}):(0,fi.jsx)(vg.img,{as:wx,src:i,srcSet:a,crossOrigin:d,loading:c,referrerPolicy:f,className:"chakra-image",...y})});_x.displayName="Image";const kx=Eg(function(e,t){const{children:r,placeholder:n,className:o,...i}=e;return(0,fi.jsxs)(vg.select,{...i,ref:t,className:kg("chakra-select",o),children:[n&&(0,fi.jsx)("option",{value:"",children:n}),r]})});function Ex(...e){return function(t){e.some(e=>(e?.(t),t?.defaultPrevented))}}kx.displayName="SelectField";const[Cx,Px]=Nl({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[jx,Tx]=Nl({strict:!1,name:"FormControlContext"});const Ax=Eg(function(e,r){const n=Fg("Form",e),o=_g(e),{getRootProps:i,htmlProps:a,...s}=function(e){const{id:r,isRequired:n,isInvalid:o,isDisabled:i,isReadOnly:a,...s}=e,l=(0,t.useId)(),c=r||`field-${l}`,u=`${c}-label`,d=`${c}-feedback`,p=`${c}-helptext`,[f,h]=(0,t.useState)(!1),[m,g]=(0,t.useState)(!1),[b,y]=(0,t.useState)(!1),v=(0,t.useCallback)((e={},t=null)=>({id:p,...e,ref:Xv(t,e=>{e&&g(!0)})}),[p]),x=(0,t.useCallback)((e={},t=null)=>({...e,ref:t,"data-focus":Jv(b),"data-disabled":Jv(i),"data-invalid":Jv(o),"data-readonly":Jv(a),id:void 0!==e.id?e.id:u,htmlFor:void 0!==e.htmlFor?e.htmlFor:c}),[c,i,b,o,a,u]),S=(0,t.useCallback)((e={},t=null)=>({id:d,...e,ref:Xv(t,e=>{e&&h(!0)}),"aria-live":"polite"}),[d]),w=(0,t.useCallback)((e={},t=null)=>({...e,...s,ref:t,role:"group","data-focus":Jv(b),"data-disabled":Jv(i),"data-invalid":Jv(o),"data-readonly":Jv(a)}),[s,i,b,o,a]),_=(0,t.useCallback)((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!o,isReadOnly:!!a,isDisabled:!!i,isFocused:!!b,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:f,setHasFeedbackText:h,hasHelpText:m,setHasHelpText:g,id:c,labelId:u,feedbackId:d,helpTextId:p,htmlProps:s,getHelpTextProps:v,getErrorMessageProps:S,getRootProps:w,getLabelProps:x,getRequiredIndicatorProps:_}}(o),l=kg("chakra-form-control",e.className);return(0,fi.jsx)(jx,{value:s,children:(0,fi.jsx)(Cx,{value:n,children:(0,fi.jsx)(vg.div,{...i({},r),className:l,__css:n.container})})})});Ax.displayName="FormControl";const Rx=Eg(function(e,t){const r=Tx(),n=Px(),o=kg("chakra-form__helper-text",e.className);return(0,fi.jsx)(vg.div,{...r?.getHelpTextProps(e,t),__css:n.helperText,className:o})});function Ox(e){const t=Tx(),{id:r,disabled:n,readOnly:o,required:i,isRequired:a,isInvalid:s,isReadOnly:l,isDisabled:c,onFocus:u,onBlur:d,...p}=e,f=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&f.push(t.feedbackId),t?.hasHelpText&&f.push(t.helpTextId),{...p,"aria-describedby":f.join(" ")||void 0,id:r??t?.id,isDisabled:n??c??t?.isDisabled,isReadOnly:o??l??t?.isReadOnly,isRequired:i??a??t?.isRequired,isInvalid:s??t?.isInvalid,onFocus:Ex(t?.onFocus,u),onBlur:Ex(t?.onBlur,d)}}Rx.displayName="FormHelperText";const zx=Eg((e,t)=>{const r=Fg("Select",e),{rootProps:n,placeholder:o,icon:i,color:a,height:s,h:l,minH:c,minHeight:u,iconColor:d,iconSize:p,...f}=_g(e),[h,m]=function(e,t){const r={},n={};for(const[o,i]of Object.entries(e))t.includes(o)?r[o]=i:n[o]=i;return[r,n]}(f,zl),g=function(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...i}=Ox(e);return{...i,disabled:t,readOnly:n,required:o,"aria-invalid":Zv(r),"aria-required":Zv(o),"aria-readonly":Zv(n)}}(m),b={width:"100%",height:"fit-content",position:"relative",color:a},y={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...r.field?._focus}};return(0,fi.jsxs)(vg.div,{className:"chakra-select__wrapper",__css:b,...h,...n,children:[(0,fi.jsx)(kx,{ref:t,height:l??s,minH:c??u,placeholder:o,...g,__css:y,children:e.children}),(0,fi.jsx)(Ix,{"data-disabled":Jv(g.disabled),...(d||a)&&{color:d||a},__css:r.icon,...p&&{fontSize:p},children:i})]})});zx.displayName="Select";const Fx=e=>(0,fi.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,fi.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),Bx=vg("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Ix=e=>{const{children:r=(0,fi.jsx)(Fx,{}),...n}=e,o=(0,t.cloneElement)(r,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return(0,fi.jsx)(Bx,{...n,className:"chakra-select__icon-wrapper",children:(0,t.isValidElement)(r)?o:null})};Ix.displayName="SelectIcon";var Dx=function(e){var t=parseFloat(e||0),r=window.bundlePressData||{},n=void 0!==r.priceDecimals?parseInt(r.priceDecimals):2,o=Math.abs(t).toFixed(n).split("."),i=r.decimalSeparator||".",a=r.thousandSeparator||",";o[0]=o[0].replace(/\B(?=(\d{3})+(?!\d))/g,a);var s=(t<0?"-":"")+o.join(i),l=r.priceFormat||"%1$s%2$s",c=r.currencySymbol||"$";return l.replace("%1$s",c).replace("%2$s",s).trim()};function Mx(e){return Mx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mx(e)}function $x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Lx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$x(Object(r),!0).forEach(function(t){Nx(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$x(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Nx(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Mx(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Mx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mx(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Vx=function(e){var t,r=e.bundle,o=e.selectedVariations,i=e.setSelectedVariations,a=e.previewCustomizations,s=(void 0===a?null:a)||(null===(t=window.bundlePressData)||void 0===t||null===(t=t.customizations)||void 0===t?void 0:t.fixed)||{},l=s.layout||"list",c=s.selection_text||"Choose variant for {product_name}",u=s.product_bg||"#F9FAFB",d=s.product_title_color||"#1F2937",p=s.product_text_color||"#4B5563",f=s.variation_bg||"#F3E8FF",h=s.variation_text_color||"#805AD5",m="grid"===l,g=o||{},b=i||function(){};return n().createElement(Sx,{columns:m?{base:1,sm:2}:1,spacing:3},r.items.map(function(e){var t,r,o,i="variable"===e.type,a=i&&!!e.variation_id,l=a?null===(t=e.variations)||void 0===t?void 0:t.find(function(t){return t.id===parseInt(e.variation_id)}):null,m=c.replace("{product_name}",e.name);return n().createElement(Ov,{key:e.id,bg:u,borderRadius:"xl",border:"1px solid",borderColor:"gray.100",overflow:"hidden"},n().createElement(Gv,{spacing:3,p:3},n().createElement(_x,{src:e.image,alt:e.name,boxSize:"46px",objectFit:"cover",borderRadius:"lg",bg:"white",border:"1px solid",borderColor:"gray.100",flexShrink:0}),n().createElement(Iv,{align:"start",spacing:.5,flex:1,minW:0},n().createElement(Hv,{as:e.permalink?"a":"p",href:e.permalink,fontWeight:"700",fontSize:"15px",m:0,noOfLines:1,color:d,_hover:e.permalink?{color:"blue.600",textDecoration:"underline"}:{}},e.name),n().createElement(Gv,{spacing:1,flexWrap:"wrap"},n().createElement(Ov,{variant:"outline",fontSize:"13px",color:p,borderRadius:"full"},s.qty_label||"Qty:"," ",e.quantity||1),a&&l&&n().createElement(Yv,{colorScheme:"purple",fontSize:"9px",variant:"subtle",borderRadius:"full"},n().createElement(Ig,{as:hx,boxSize:"8px",mr:"2px",verticalAlign:"middle"}),l.name))),n().createElement(Hv,{m:0,fontSize:"13px",color:p,fontWeight:"700",flexShrink:0},Dx(e.price||0))),i&&!a&&n().createElement(Ov,{px:3,py:2,bg:f,borderTop:"1px solid",borderColor:"gray.100"},n().createElement(Wv,{align:"center",gap:2,mb:1},n().createElement(Ig,{as:fx,color:h,boxSize:3,opacity:.7}),n().createElement(Hv,{fontSize:"13px",fontWeight:"800",color:h,textTransform:"uppercase",letterSpacing:"wider",m:0},m)),n().createElement(zx,{size:"sm",borderRadius:"lg",bg:"white",border:"1.5px solid",borderColor:"purple.200",color:"gray.700",fontWeight:"600",fontSize:"13px",value:g[e.id]||(null===(r=e.variations)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.id)||"",onChange:function(t){return b(function(r){return Lx(Lx({},r),{},Nx({},e.id,t.target.value))})},_focus:{borderColor:"purple.400",boxShadow:"none"}},null===(o=e.variations)||void 0===o?void 0:o.map(function(e){return n().createElement("option",{key:e.id,value:e.id},e.name,"  —  ",Dx(e.price||0))}))))}))};function Wx(e){return Wx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wx(e)}function Ux(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=eS(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function qx(e){return function(e){if(Array.isArray(e))return tS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eS(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hx(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Gx(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,r){return i=t,s=0,l=e,p.n=r,a}};function f(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];r>3?(o=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=r<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=p.n<0)?l:r.call(n,p))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Gx(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Gx(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Gx(d,"constructor",c),Gx(c,"constructor",l),l.displayName="GeneratorFunction",Gx(c,o,"GeneratorFunction"),Gx(d),Gx(d,o,"Generator"),Gx(d,n,function(){return this}),Gx(d,"toString",function(){return"[object Generator]"}),(Hx=function(){return{w:i,m:p}})()}function Gx(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Gx=function(e,t,r,n){function i(t,r){Gx(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Gx(e,t,r,n)}function Yx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Xx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yx(Object(r),!0).forEach(function(t){Kx(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Kx(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Wx(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Wx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wx(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jx(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Zx(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Jx(i,n,o,a,s,"next",e)}function s(e){Jx(i,n,o,a,s,"throw",e)}a(void 0)})}}function Qx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||eS(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eS(e,t){if(e){if("string"==typeof e)return tS(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tS(e,t):void 0}}function tS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var rS=function(){var e;return(null===(e=window.bundlePressData)||void 0===e?void 0:e.currencySymbol)||"$"},nS=function(){return n().createElement(Ov,{bg:"white",borderRadius:"2xl",border:"1px solid",borderColor:"gray.100",overflow:"hidden",boxShadow:"0 4px 24px rgba(0,0,0,.08)",w:"100%",my:6},n().createElement(Ov,{h:"44px",bg:"gray.800"}),n().createElement(Iv,{p:5,spacing:3,align:"stretch"},n().createElement(Vv,{h:"22px",w:"60%",borderRadius:"lg"}),n().createElement(Vv,{h:"14px",w:"40%",borderRadius:"lg"}),n().createElement(Ov,{h:"1px",bg:"gray.100",my:1}),n().createElement(Vv,{h:"56px",borderRadius:"xl"}),n().createElement(Vv,{h:"56px",borderRadius:"xl"}),n().createElement(Vv,{h:"56px",borderRadius:"xl"}),n().createElement(Ov,{h:"1px",bg:"gray.100",my:1}),n().createElement(Wv,{justify:"space-between",align:"center"},n().createElement(Vv,{h:"32px",w:"100px",borderRadius:"xl"}),n().createElement(Vv,{h:"44px",w:"140px",borderRadius:"xl"}))))};const oS=function(e){var r,o,i,a,s,l=e.productId,c=Qx((0,t.useState)(null),2),u=c[0],d=c[1],p=Qx((0,t.useState)(!0),2),f=p[0],h=p[1],m=Qx((0,t.useState)(!1),2),g=m[0],b=m[1],y=qv(),v=Qx((0,t.useState)({}),2),x=v[0],S=v[1],w=Qx((0,t.useState)(null),2),_=w[0],k=w[1],E=Qx((0,t.useState)({}),2),C=E[0],P=E[1],j=Qx((0,t.useState)({}),2),T=j[0],A=(j[1],Qx((0,t.useState)({}),2)),R=A[0],O=(A[1],Qx((0,t.useState)({}),2)),z=O[0],F=O[1];(0,t.useEffect)(function(){B()},[l]);var B=function(){var e=Zx(Hx().m(function e(){var t,r,n,o,i,a,s,c,u,p;return Hx().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,h(!0),o=(null===(t=window.bundlePressData)||void 0===t?void 0:t.restUrl)||(null===(r=window.bundlePressData)||void 0===r||null===(r=r.apiUrl)||void 0===r?void 0:r.replace(/bundlepress\/v1\/?$/,""))||"/wp-json/",i="".concat(o,"bundlepress/v1/bundles-by-product/").concat(l),e.n=1,Rv.get(i);case 1:(a=e.v).data.success&&(null===(n=a.data.data)||void 0===n?void 0:n.length)>0&&(s=a.data.data,(c=s.find(function(e){return e.product_id===parseInt(l)})||s.find(function(e){return"fixed"===e.type})||s[0])&&("volume"===c.type&&Array.isArray(null===(u=c.settings)||void 0===u?void 0:u.tiers)&&(c.settings.tiers=c.settings.tiers.map(function(e){return Xx(Xx({},e),{},{discount_type:e.discount_type||"percentage"})})),d(c),Rv.post("analytics/track",{bundle_id:c.id,type:"view"}).catch(function(){}))),e.n=3;break;case 2:e.p=2,p=e.v,console.error("Error fetching bundle data:",p);case 3:return e.p=3,h(!1),e.f(3);case 4:return e.a(2)}},e,null,[[0,2,3,4]])}));return function(){return e.apply(this,arguments)}}(),I=Qx((0,t.useState)(0),2),D=(I[0],I[1]);(0,t.useEffect)(function(){var e,t,r=setInterval(function(){var e=document.querySelector("input.variation_id");if(e){var t=parseInt(e.value);D(isNaN(t)?0:t)}},500),n=null===(e=(t=window).jQuery)||void 0===e?void 0:e.call(t,".variations_form");return n&&(n.on("found_variation",function(e,t){D(t.variation_id)}),n.on("reset_data",function(){D(0)})),function(){clearInterval(r),n&&(n.off("found_variation"),n.off("reset_data"))}},[]),(0,t.useEffect)(function(){var e;if(null!=u&&u.items){var t={};if(u.items.forEach(function(e){var r;(null===(r=e.variations)||void 0===r?void 0:r.length)>0&&(t[e.id]=e.variation_id||e.variations[0].id)}),S(t),"volume"===u.type&&(null===(e=u.settings)||void 0===e||null===(e=e.tiers)||void 0===e?void 0:e.length)>0){k(0);var r={};u.settings.tiers.forEach(function(e,t){r[t]={};for(var n=u.items[0],o=0;o<parseInt(e.min_qty);o++){var i;(null==n||null===(i=n.variations)||void 0===i?void 0:i.length)>0&&(r[t][o]="")}}),P(r)}if("fbt"===u.type){var n={};u.items.forEach(function(e){return n[e.id]=!0}),F(n)}}},[u]);var M=n().useMemo(function(){var e;if("mixmatch"!==(null==u?void 0:u.type))return{total:0,subtotal:0,discount:0,totalQty:0};var t=Object.keys(T).reduce(function(e,t){var r=u.items.find(function(e){return e.product_id.toString()===t.toString()});return e+parseFloat((null==r?void 0:r.price)||0)*(T[t]||0)},0),r=Object.values(T).reduce(function(e,t){return e+t},0),n=qx((null===(e=u.settings)||void 0===e?void 0:e.tiers)||[]).sort(function(e,t){return t.min_qty-e.min_qty}).find(function(e){return r>=e.min_qty}),o=n?parseFloat(n.discount):0;return{total:t-t*o/100,subtotal:t,discount:o,totalQty:r}},[u,T]),$=n().useMemo(function(){return"fbt"!==(null==u?void 0:u.type)?{total:0}:{total:u.items.reduce(function(e,t){return z[t.id]?e+parseFloat(t.price||0)*(t.quantity||1):e},0)}},[u,z]),L=n().useMemo(function(){var e,t;if("volume"!==(null==u?void 0:u.type))return{total:0,discountedTotal:0};var r=null===(e=u.settings)||void 0===e||null===(e=e.tiers)||void 0===e?void 0:e[_],n=null===(t=u.items)||void 0===t?void 0:t[0];if(!r||!n)return{total:0,discountedTotal:0};var o=parseInt(r.min_qty),i=parseFloat(n.price)*o,a=parseFloat(r.discount||0);return{total:i,discountedTotal:"fixed"===(r.discount_type||"percentage")?Math.max(0,i-a):i-i*a/100}},[u,_]),N=n().useMemo(function(){if(!u)return!1;if("volume"===u.type){var e,t,r,n=null===(e=u.settings)||void 0===e||null===(e=e.tiers)||void 0===e?void 0:e[_];if(!n)return!0;var o=null===(t=u.items)||void 0===t?void 0:t[0];if((null==o||null===(r=o.variations)||void 0===r?void 0:r.length)>0)for(var i=C[_]||{},a=parseInt(n.min_qty),s=0;s<a;s++)if(!i[s])return!0}var l;if("mixmatch"===u.type&&Object.values(T).reduce(function(e,t){return e+t},0)<((null===(l=u.settings)||void 0===l?void 0:l.min_items)||1))return!0;return!1},[u,_,C,T]),V=function(){var e=Zx(Hx().m(function e(){var t,r,n,o,i,a,s,c,d,p,f,h,m,g,v,S,w,k,E,P,j,A,O,F,B,I,D,M,$,L,N,V,W,U,q,H,G,Y,X,K,J,Z,Q,ee,te,re,ne,oe,ie,ae,se,le;return Hx().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,b(!0),p=(null===(t=window.bundlePressData)||void 0===t?void 0:t.restUrl)||"/wp-json/",f=(null===(r=window.bundlePressData)||void 0===r?void 0:r.nonce)||(null===(n=window.wcSettings)||void 0===n?void 0:n.nonce)||(null===(o=window.bundlePressData)||void 0===o?void 0:o.wpRestNonce)||"",h=f,m="".concat(p,"wc/store/v1/cart/add-item"),g=function(e){return{"Content-Type":"application/json","X-WC-Store-API-Nonce":e,Nonce:e}},v=function(){var e=Zx(Hx().m(function e(t,r){var n,o,i,a,s=arguments;return Hx().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=!(s.length>2&&void 0!==s[2])||s[2],e.p=1,e.n=2,fetch(t,{method:"POST",headers:g(h),body:JSON.stringify(r),credentials:"include"});case 2:if(o=e.v,(i=o.headers.get("Nonce")||o.headers.get("nonce"))&&(h=i),403!==o.status||!n||!i){e.n=3;break}return e.a(2,v(t,r,!1));case 3:return e.a(2,o);case 4:throw e.p=4,a=e.v,console.error("Fetch error:",a),a;case 5:return e.a(2)}},e,null,[[1,4]])}));return function(t,r){return e.apply(this,arguments)}}(),S=parseInt(l),(w=document.querySelector("input.variation_id"))&&w.value&&parseInt(w.value)>0&&(S=parseInt(w.value)),(k=null===(i=u.items)||void 0===i?void 0:i.find(function(e){return parseInt(e.product_id)===parseInt(l)}))&&(x[k.id]||k.variation_id)&&(S=parseInt(x[k.id]||k.variation_id)),S===parseInt(l)&&(E=document.querySelector(".variations_form"))&&E.dataset.product_variations)try{(P=JSON.parse(E.dataset.product_variations))&&P.length>0&&(S=P[0].variation_id)}catch(e){}return"volume"===u.type&&null!==_&&(j=C[_]||{})[0]&&(S=parseInt(j[0])),A="".concat(m,"?bundle_id=").concat(u.id,"&bundle_type=").concat(u.type),(null===(a=u.bxgy_offer_items)||void 0===a?void 0:a.some(function(e){return parseInt(e.product_id)===parseInt(S)||parseInt(e.variation_id)===parseInt(S)}))&&(A+="&is_offer=1","free_gift"!==(null===(O=u.settings)||void 0===O?void 0:O.bxgy_offer_type)&&"free_gift"!==(null===(F=u.settings)||void 0===F?void 0:F.offer_type)||(A+="&is_free=1")),e.n=1,v(A,{id:S,quantity:1});case 1:if((B=e.v).ok){e.n=3;break}return e.n=2,B.json().catch(function(){return{}});case 2:throw I=e.v,console.error("Main Product Add Error:",I),new Error(I.message||"Failed to add bundle parent (Status: ".concat(B.status,")"));case 3:return e.n=4,B.json();case 4:if(D=e.v,M=D.key||D.items&&(null===(s=D.items.find(function(e){return parseInt(e.id)===S}))||void 0===s?void 0:s.key)||D.items&&(null===(c=D.items[0])||void 0===c?void 0:c.key),M||console.warn("Could not find cart key in response, but proceeding with components using bundleId fallback."),$=[],"fbt"===u.type)$=u.items.filter(function(e){return z[e.id]}).map(function(e){return{id:x[e.id]||e.variation_id||e.product_id,quantity:e.quantity||1}});else if("mixmatch"===u.type)$=u.items.filter(function(e){return T[e.product_id]>0}).map(function(e){return{id:R[e.product_id]||e.variation_id||e.product_id,quantity:T[e.product_id]}});else if("volume"===u.type){if(N=null===(L=u.settings)||void 0===L||null===(L=L.tiers)||void 0===L?void 0:L[_])for(V=parseInt(N.min_qty),W=C[_]||{},U=1;U<V;U++)$.push({id:W[U]||W[0]||(null===(q=u.items[0])||void 0===q||null===(q=q.variations)||void 0===q||null===(q=q[0])||void 0===q?void 0:q.id)||(null===(H=u.items[0])||void 0===H?void 0:H.product_id),quantity:1})}else"bxgy"===u.type?(G=(u.items||[]).map(function(e){return{id:x[e.id]||e.variation_id||e.product_id,quantity:e.quantity||1,_is_component:!0}}),Y=(u.bxgy_offer_items||[]).map(function(e){return{id:e.variation_id||e.product_id,quantity:e.quantity||1,_is_offer:!0}}),$=[].concat(qx(G),qx(Y))):$=u.items.map(function(e){return{id:x[e.id]||e.variation_id||e.product_id,quantity:e.quantity||1}});X=Ux($),e.p=5,X.s();case 6:if((K=X.n()).done){e.n=11;break}if(J=K.value,Z=parseInt(J.id),Q=parseInt(J.quantity||1),Z===parseInt(S)&&(Q-=1),!(Q<=0)){e.n=7;break}return e.a(3,10);case 7:return ee="".concat(m,"?bundle_id=").concat(u.id,"&bundle_type=").concat(u.type),M&&(ee+="&bundle_parent=".concat(M)),J._is_offer&&(ee+="&is_offer=1","free_gift"!==(null===(te=u.settings)||void 0===te?void 0:te.bxgy_offer_type)&&"free_gift"!==(null===(re=u.settings)||void 0===re?void 0:re.offer_type)||(ee+="&is_free=1")),e.n=8,v(ee,{id:Z,quantity:Q});case 8:if((ne=e.v).ok){e.n=10;break}return e.n=9,ne.json().catch(function(){return{}});case 9:oe=e.v,console.error("Component Add Error:",oe);case 10:e.n=6;break;case 11:e.n=13;break;case 12:e.p=12,se=e.v,X.e(se);case 13:return e.p=13,X.f(),e.f(13);case 14:ie=(null===(d=window.bundlePressData)||void 0===d||null===(d=d.customizations)||void 0===d||null===(d=d.general)||void 0===d?void 0:d.cart_success_message)||"Bundle added to cart!",y({title:ie,status:"success",duration:3e3}),window.jQuery&&window.jQuery(document.body).trigger("wc_fragment_refresh"),document.body.dispatchEvent(new CustomEvent("wc_fragment_refresh")),e.n=16;break;case 15:e.p=15,le=e.v,console.error("Store API Error Details:",le),ae=le.message||"Error adding bundle to cart",y({title:"Add to Cart Failed",description:ae,status:"error",duration:5e3,isClosable:!0});case 16:return e.p=16,b(!1),e.f(16);case 17:return e.a(2)}},e,null,[[5,12,13,14],[0,15,16,17]])}));return function(){return e.apply(this,arguments)}}();if(f)return n().createElement(nS,null);if(!u)return null;var W,U=(null===(r=window.bundlePressData)||void 0===r?void 0:r.customizations)||{},q=U.fixed||{};if(!u.items||0===u.items.length)return n().createElement(Ov,{p:8,textAlign:"center",bg:"gray.50",borderRadius:"2xl",border:"2px dashed",borderColor:"gray.100"},n().createElement(Ig,{as:gx,boxSize:6,mb:2}),n().createElement(Hv,{m:0,fontSize:"sm"},(null===(W=U.general)||void 0===W?void 0:W.no_items_text)||"This bundle has no items configured yet."));var H=u.items.reduce(function(e,t){return e+parseFloat(t.price||0)*parseInt(t.quantity||1)},0),G=0;"volume"===u.type?G=L.discountedTotal:"fbt"===u.type?G=$.total:"mixmatch"===u.type?G=M.total:"fixed"===u.type&&"set_price"===u.discount_type?G=parseFloat(u.discount_value||0):(G=parseFloat(u.sale_price||u.price||H),u.sale_price||("percentage"===u.discount_type?G-=G*parseFloat(u.discount_value||0)/100:"fixed"===u.discount_type&&(G=Math.max(0,G-parseFloat(u.discount_value||0)))));var Y="".concat(Dx(G)),X="#2563EB",K="white";if("mixmatch"===u.type)X="gray.900";else if("fixed"===u.type)X=q.button_bg||"#2563EB",K=q.button_color||"white";else if("volume"===u.type){var J,Z;X=(null===(J=U.volume)||void 0===J?void 0:J.button_bg)||"#2563EB",K=(null===(Z=U.volume)||void 0===Z?void 0:Z.button_color)||"white"}var Q="mixmatch"===u.type?"Add Items to Cart":"volume"===u.type?"Claim This Deal":"fbt"===u.type?"Add Selected to Cart":"bxgy"===u.type?"Claim This Offer":"free_gift"===u.type?"Get My Free Gift":q.button_text||"Buy This Bundle",ee="volume"===u.type?"Select Your Deal:":"mixmatch"===u.type?"Mix & Match Offer:":"fbt"===u.type?"Frequently Bought Together:":"bxgy"===u.type?"BOGO Offer Details:":"free_gift"===u.type?"Your Special Gift:":q.heading||"What's Included:";return n().createElement(Ov,{className:"bundlepress-bundle-display",w:"100%",my:6},"fixed"!==u.type&&n().createElement(Wv,{px:5,py:3,bg:"blue.900",align:"center",justify:"space-between"},n().createElement(Gv,{spacing:2,flex:1,minW:0},n().createElement(Ig,{as:vx,color:"white",boxSize:3.5}),n().createElement(Hv,{fontSize:"11px",fontWeight:"800",color:"white",letterSpacing:"wider",textTransform:"uppercase",m:0,noOfLines:1},u.name),"fixed"===u.type&&n().createElement(Yv,{bg:"whiteAlpha.300",color:"white",border:"none",fontSize:"10px",fontWeight:"900",px:2,borderRadius:"full"},Y)),n().createElement(Ov,{bg:"whiteAlpha.200",color:"white",fontSize:"10px",fontWeight:"800",px:2.5,py:.5,borderRadius:"full",textTransform:"uppercase",letterSpacing:"wider",flexShrink:0},"fixed"===u.type?"Fixed Bundle":"volume"===u.type?"Volume Deal":"mixmatch"===u.type?"Mix & Match":"fbt"===u.type?"FBT Deal":"bxgy"===u.type?"Buy X Get Y":"free_gift"===u.type?"Free Gift":"Bundle")),n().createElement(Iv,{align:"stretch",spacing:0,p:5},u.short_description&&n().createElement(Ov,{className:"bp-short-desc",mb:6,fontSize:"md",color:"gray.700",lineHeight:"1.7",dangerouslySetInnerHTML:{__html:u.short_description},sx:{p:{marginBottom:"1em",_last:{marginBottom:0}},"strong, b":{fontWeight:"bolder"},"em, i":{fontStyle:"italic"},ul:{paddingLeft:0,marginLeft:"1.5em",listStyleType:"disc",listStylePosition:"outside",marginBottom:"1em"},ol:{paddingLeft:0,marginLeft:"1.5em",listStyleType:"decimal",listStylePosition:"outside",marginBottom:"1em"},li:{marginBottom:"0.25em"},"h1, h2, h3, h4, h5, h6":{fontWeight:"bold",color:"gray.900",marginBottom:"0.5em",marginTop:"1em"},a:{color:"blue.600",textDecoration:"underline",_hover:{textDecoration:"none"}}}}),"fixed"!==u.type&&n().createElement(Ov,{h:"1px",bg:"gray.100",mb:4}),n().createElement(Hv,{fontSize:"md",fontWeight:"800",color:"gray.700",textTransform:"uppercase",letterSpacing:"wider",m:0,mb:3},ee),"fixed"===u.type&&n().createElement(Vx,{bundle:u,selectedVariations:x,setSelectedVariations:S,curr:rS,layout:q.layout||"list",selectionText:q.selection_text||"Choose variant for {product_name}",productBg:q.product_bg,productTitleColor:q.product_title_color,productTextColor:q.product_text_color,variationBg:q.variation_bg,variationTextColor:q.variation_text_color}),n().createElement(Ov,{h:"1px",bg:"gray.100",mt:6,mb:6}),n().createElement(Wv,{justify:"space-between",align:"center"},n().createElement(Iv,{align:"start",spacing:0},n().createElement(Hv,{fontSize:"10px",color:"gray-500",fontWeight:"800",textTransform:"uppercase",m:0},"volume"===u.type?(null===(o=U.general)||void 0===o?void 0:o.selected_price_label)||"Selected Price":"fixed"===u.type?q.price_label||(null===(i=U.general)||void 0===i?void 0:i.bundle_price_label)||"Bundle Price":(null===(a=U.general)||void 0===a?void 0:a.bundle_price_label)||"Bundle Price"),n().createElement(Gv,{spacing:2,align:"baseline"},parseFloat(G)<parseFloat(H)&&("fixed"!==u.type||!1!==q.show_regular_price&&"0"!==q.show_regular_price)&&n().createElement(Hv,{fontSize:"md",color:"gray.400",fontWeight:"700",textDecoration:"line-through",m:0},Dx(H)),n().createElement(Hv,{fontSize:"2xl",fontWeight:"900",color:"gray.900",m:0},"volume"===u.type&&null!==_?function(){var e=u.settings.tiers[_],t=u.items[0];if(!t)return"";var r=parseInt(e.min_qty),n=parseFloat(t.price)*r,o=n-n*parseFloat(e.discount||0)/100;return Dx(o)}():"mixmatch"===u.type?Dx(M.total):"fbt"===u.type?Dx($.total):Y))),n().createElement(nx,{bg:X,color:K,size:"lg",px:10,h:"56px",fontSize:"md",fontWeight:"800",borderRadius:"xl",boxShadow:"0 10px 20px rgba(66, 153, 225, 0.2)",isLoading:g,loadingText:(null===(s=U.general)||void 0===s?void 0:s.adding_text)||"Adding…",onClick:V,isDisabled:N,_hover:{opacity:.9,transform:"translateY(-1px)",boxShadow:"0 12px 22px rgba(66, 153, 225, 0.3)"},_active:{transform:"translateY(0)"},transition:"all .2s"},Q))))};function iS(e){return iS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iS(e)}function aS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aS(Object(r),!0).forEach(function(t){lS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function lS(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=iS(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=iS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==iS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return uS(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?uS(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var dS=function(e){var t=e.item,r=e.isFree,o=e.badgeLabel,i=e.badgeColor,a=(e.currencySymbol,e.selectedVars),s=e.onVarChange,l=e.customizations;return n().createElement(Iv,{spacing:2,align:"center",bg:r?l.free_item_bg||"#F0FFF4":l.item_bg||"#FFFFFF",border:"1px solid",borderColor:r?l.free_item_border||"#9AE6B4":l.item_border||"#E2E8F0",borderRadius:"xl",p:3,w:"100px",minW:"100px",flexShrink:0,position:"relative",shadow:"sm"},o&&n().createElement(Yv,{bg:r?l.free_badge_bg||"#38A169":i,color:r?l.free_badge_color||"#FFFFFF":"white",variant:"solid",fontSize:"2xs",borderRadius:"full",position:"absolute",top:"-8px",right:"-6px",px:2,shadow:"sm"},o),t.image?n().createElement(_x,{src:t.image,boxSize:"56px",borderRadius:"lg",objectFit:"cover",flexShrink:0,border:"1px solid",borderColor:"gray.100"}):n().createElement(Wv,{boxSize:"56px",bg:r?l.free_item_bg||"#F0FFF4":"gray.50",borderRadius:"lg",align:"center",justify:"center",flexShrink:0,border:"1px solid",borderColor:r?l.free_item_border||"#9AE6B4":"gray.100"},n().createElement(Ig,{as:gx,color:r?l.free_item_border||"#9AE6B4":"gray.300",boxSize:6})),n().createElement(Hv,{fontSize:"13px",fontWeight:"semibold",color:l.item_name_color||"#2D3748",m:0,textAlign:"center",noOfLines:2,lineHeight:"1.3"},t.name),n().createElement(Gv,{spacing:1,justify:"center",w:"100%"},r?n().createElement(n().Fragment,null,n().createElement(Hv,{fontSize:"13px",color:"gray.400",m:0,textDecoration:"line-through"},Dx(t.price||0)),n().createElement(Hv,{fontSize:"13px",fontWeight:"bold",color:l.free_badge_bg||"#38A169",m:0},l.free_label||"FREE")):n().createElement(Hv,{fontSize:"sm",fontWeight:"bold",color:l.item_price_color||"#2D3748",m:0},Dx(t.price||0))),"variable"===t.type&&t.variations&&t.variations.length>0&&n().createElement(zx,{size:"sm",mt:1,w:"100%",value:a[t.product_id]||t.variation_id||t.variations[0].id,onChange:function(e){return s(t.product_id,e.target.value)},bg:"gray.50",borderRadius:"md",borderColor:"gray.200",fontSize:"xs",fontWeight:"600",h:"32px"},t.variations.map(function(e){return n().createElement("option",{key:e.id,value:e.id},e.name.replace(t.name+" - ",""))})))};const pS=function(e){var t,r=e.bundle,o=e.addBundleToCart,i=void 0===o?function(){}:o,a=e.addingToCart,s=void 0===a?{}:a,l=e.currencySymbol,c=void 0===l?"$":l,u=e.previewCustomizations,d=r.settings||{},p=r.items||[],f=r.bxgy_offer_items||[],h=p.length>0?p.length:d.bxgy_buy_qty||2,m=f.length>0?f.length:d.bxgy_get_qty||1,g=d.bxgy_offer_type||"free_gift",b=d.bxgy_discount_type||"percentage",y=d.bxgy_discount_amount||0,v=u||(null===(t=window.bundlePressData)||void 0===t||null===(t=t.customizations)||void 0===t?void 0:t.bxgy)||{},x=(v.heading,v.button_claim_offer||"Claim Offer"),S=v.button_claimed||"✓ Claimed!",w=v.hover_bg||"#F3E8FF",_=v.card_bg||"#FFFFFF",k=v.header_color||"#805AD5",E=(v.header_badge_bg,v.header_badge_color,v.section_title_color||"#718096"),C=v.button_bg||"#805AD5",P=v.button_color||"#FFFFFF",j=v.free_label||"FREE",T="green.500",A=v.badge_buy_get_free||"Buy {buy_qty} Get {get_qty} Free",R=v.badge_buy_get_discount||"Buy {buy_qty} Get {get_qty} at {discount}",O=v.badge_buy_get_shipping||"Buy {buy_qty} Get Free Shipping",z=A.replace("{buy_qty}",h).replace("{get_qty}",m);if("discount"===g){var F="percentage"===b?"".concat(y,"% OFF"):"".concat(c).concat(y," OFF");j=F,T="orange.500",z=R.replace("{buy_qty}",h).replace("{get_qty}",m).replace("{discount}",F)}else"free_shipping"===g&&(j=v.free_shipping_label||"FREE SHIP",T="blue.500",z=O.replace("{buy_qty}",h));var B=s[r.id],I=cS(n().useState({}),2),D=I[0],M=I[1],$=function(e,t){M(function(r){return sS(sS({},r),{},lS({},e,t))})};return n().createElement(Ov,{px:5,py:5,bg:_,_hover:{bg:w},transition:"background 0.2s"},n().createElement(Ov,{mb:4},n().createElement(Hv,{fontSize:"lg",fontWeight:"900",color:k,m:0,letterSpacing:"wide",textTransform:"uppercase"},z)),n().createElement(Wv,{align:{base:"center",sm:"flex-start"},justify:{base:"center",sm:"flex-start"},gap:{base:4,sm:2},direction:{base:"column",sm:"row"},flexWrap:"wrap"},p.length>0&&n().createElement(Iv,{align:{base:"center",sm:"start"},spacing:1},n().createElement(Hv,{fontSize:"sm",color:E,fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wide",m:0,textAlign:{base:"center",sm:"left"}},"discount"===g&&0===f.length?v.purchased_items_text||"Purchased Items":v.customer_buys_text||"Customer Buys"),n().createElement(Gv,{spacing:2,flexWrap:"wrap",justify:{base:"center",sm:"start"}},p.map(function(e,t){return n().createElement(dS,{key:t,item:e,isFree:!1,currencySymbol:c,badgeLabel:"discount"===g&&0===f.length?j:null,badgeColor:T,selectedVars:D,onVarChange:$,customizations:v})}))),f.length>0&&n().createElement(Wv,{align:"center",justify:"center",pt:{base:0,sm:"24px"},alignSelf:{base:"center",sm:"stretch"}},n().createElement(Ig,{as:px,transform:{base:"rotate(90deg)",sm:"none"},color:k,opacity:.6,boxSize:5,flexShrink:0})),f.length>0&&n().createElement(Iv,{align:"center",spacing:1},n().createElement(Hv,{fontSize:"sm",color:v.free_badge_bg||"#38A169",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wide",m:0,textAlign:"center"},v.customer_gets_text||"Customer Gets"," (",j,")"),n().createElement(Gv,{spacing:2,flexWrap:"wrap",justify:"center"},f.map(function(e,t){return n().createElement(dS,{key:t,item:e,isFree:!0,badgeLabel:"discount"===g?j:null,badgeColor:T,currencySymbol:c,selectedVars:D,onVarChange:$,customizations:v})}))),"free_shipping"===g&&n().createElement(Hv,{fontSize:"13px",color:"blue.500",m:0,alignSelf:"center",pt:"22px"},v.free_shipping_text||"🚚 Free shipping on your entire order!")),n().createElement(Ov,{mt:6},n().createElement(nx,{w:"100%",size:"md",h:"44px",bg:"done"===B?"green.500":C,color:"done"===B?"white":P,variant:"solid",borderRadius:"xl",fontWeight:"black",fontSize:"sm",textTransform:"uppercase",letterSpacing:"wide",isLoading:"loading"===B,loadingText:"Adding...",onClick:function(){var e=function(e){return e.map(function(e){var t;return sS(sS({},e),{},{variation_id:D[e.product_id]||e.variation_id||(null===(t=e.variations)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)})})},t=sS(sS({},r),{},{items:e(p),bxgy_offer_items:e(f)});i(t)},_hover:{transform:"translateY(-2px)",shadow:"md",filter:"brightness(1.1)"},transition:"all 0.2s"},"done"===B?S:x)))},fS=Eg(function(e,t){const r=zg("Heading",e),{className:n,...o}=_g(e);return(0,fi.jsx)(vg.h2,{ref:t,className:kg("chakra-heading",e.className),...o,__css:r})});fS.displayName="Heading";const[hS,mS]=Nl({name:"CheckboxGroupContext",strict:!1});function gS(e){return(0,fi.jsx)(vg.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,fi.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function bS(e){return(0,fi.jsx)(vg.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,fi.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function yS(e){const{isIndeterminate:t,isChecked:r,...n}=e,o=t?bS:gS;return r||t?(0,fi.jsx)(vg.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,fi.jsx)(o,{...n})}):null}var vS=()=>"undefined"!=typeof document;var xS=!1,SS=null,wS=!1,_S=!1,kS=new Set;function ES(e,t){kS.forEach(r=>r(e,t))}var CS="undefined"!=typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function PS(e){var t;wS=!0,(t=e).metaKey||!CS&&t.altKey||t.ctrlKey||"Control"===t.key||"Shift"===t.key||"Meta"===t.key||(SS="keyboard",ES("keyboard",e))}function jS(e){if(SS="pointer","mousedown"===e.type||"pointerdown"===e.type){wS=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;ES("pointer",e)}}function TS(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||0===t.detail&&!t.pointerType)&&(wS=!0,SS="virtual")}function AS(e){e.target!==window&&e.target!==document&&(e.target instanceof Element&&e.target.hasAttribute("tabindex")||(wS||_S||(SS="virtual",ES("virtual",e)),wS=!1,_S=!1))}function RS(){wS=!1,_S=!0}function OS(){return"pointer"!==SS}function zS(){if(!vS()||xS)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...t){wS=!0,e.apply(this,t)},document.addEventListener("keydown",PS,!0),document.addEventListener("keyup",PS,!0),document.addEventListener("click",TS,!0),window.addEventListener("focus",AS,!0),window.addEventListener("blur",RS,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",jS,!0),document.addEventListener("pointermove",jS,!0),document.addEventListener("pointerup",jS,!0)):(document.addEventListener("mousedown",jS,!0),document.addEventListener("mousemove",jS,!0),document.addEventListener("mouseup",jS,!0)),xS=!0}const FS={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function BS(e={}){const r=Ox(e),{isDisabled:n,isReadOnly:o,isRequired:i,isInvalid:a,id:s,onBlur:l,onFocus:c,"aria-describedby":u}=r,{defaultChecked:d,isChecked:p,isFocusable:f,onChange:h,isIndeterminate:m,name:g,value:b,tabIndex:y,"aria-label":v,"aria-labelledby":x,"aria-invalid":S,...w}=e,_=wg(w,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),k=wc(h),E=wc(l),C=wc(c),[P,j]=(0,t.useState)(!1),[T,A]=(0,t.useState)(!1),[R,O]=(0,t.useState)(!1),z=(0,t.useRef)(!1);(0,t.useEffect)(()=>function(e){zS(),e(OS());const t=()=>e(OS());return kS.add(t),()=>{kS.delete(t)}}(e=>{z.current=e}),[]);const F=(0,t.useRef)(null),[B,I]=(0,t.useState)(!0),[D,M]=(0,t.useState)(!!d),$=void 0!==p,L=$?p:D,N=(0,t.useCallback)(e=>{o||n?e.preventDefault():($||M(L?e.currentTarget.checked:!!m||e.currentTarget.checked),k?.(e))},[o,n,L,$,m,k]);tb(()=>{F.current&&(F.current.indeterminate=Boolean(m))},[m]),Sc(()=>{n&&j(!1)},[n,j]),tb(()=>{const e=F.current;if(!e?.form)return;const t=()=>{M(!!d)};return e.form.addEventListener("reset",t),()=>e.form?.removeEventListener("reset",t)},[]);const V=n&&!f,W=(0,t.useCallback)(e=>{" "===e.key&&O(!0)},[O]),U=(0,t.useCallback)(e=>{" "===e.key&&O(!1)},[O]);tb(()=>{if(!F.current)return;F.current.checked!==L&&M(F.current.checked)},[F.current]);const q=(0,t.useCallback)((e={},t=null)=>({...e,ref:t,"data-active":Jv(R),"data-hover":Jv(T),"data-checked":Jv(L),"data-focus":Jv(P),"data-focus-visible":Jv(P&&z.current),"data-indeterminate":Jv(m),"data-disabled":Jv(n),"data-invalid":Jv(a),"data-readonly":Jv(o),"aria-hidden":!0,onMouseDown:Ex(e.onMouseDown,e=>{P&&e.preventDefault(),O(!0)}),onMouseUp:Ex(e.onMouseUp,()=>O(!1)),onMouseEnter:Ex(e.onMouseEnter,()=>A(!0)),onMouseLeave:Ex(e.onMouseLeave,()=>A(!1))}),[R,L,n,P,T,m,a,o]),H=(0,t.useCallback)((e={},t=null)=>({...e,ref:t,"data-active":Jv(R),"data-hover":Jv(T),"data-checked":Jv(L),"data-focus":Jv(P),"data-focus-visible":Jv(P&&z.current),"data-indeterminate":Jv(m),"data-disabled":Jv(n),"data-invalid":Jv(a),"data-readonly":Jv(o)}),[R,L,n,P,T,m,a,o]),G=(0,t.useCallback)((e={},t=null)=>({..._,...e,ref:Xv(t,e=>{e&&I("LABEL"===e.tagName)}),onClick:Ex(e.onClick,()=>{B||(F.current?.click(),requestAnimationFrame(()=>{F.current?.focus({preventScroll:!0})}))}),"data-disabled":Jv(n),"data-checked":Jv(L),"data-invalid":Jv(a)}),[_,n,L,a,B]),Y=(0,t.useCallback)((e={},t=null)=>({...e,ref:Xv(F,t),type:"checkbox",name:g,value:b,id:s,tabIndex:y,onChange:Ex(e.onChange,N),onBlur:Ex(e.onBlur,E,()=>j(!1)),onFocus:Ex(e.onFocus,C,()=>j(!0)),onKeyDown:Ex(e.onKeyDown,W),onKeyUp:Ex(e.onKeyUp,U),required:i,checked:L,disabled:V,readOnly:o,"aria-label":v,"aria-labelledby":x,"aria-invalid":S?Boolean(S):a,"aria-describedby":u,"aria-disabled":n,"aria-checked":m?"mixed":L,style:FS}),[g,b,s,y,N,E,C,W,U,i,L,V,o,v,x,S,a,u,n,m]),X=(0,t.useCallback)((e={},t=null)=>({...e,ref:t,onMouseDown:Ex(e.onMouseDown,IS),"data-disabled":Jv(n),"data-checked":Jv(L),"data-invalid":Jv(a)}),[L,n,a]);return{state:{isInvalid:a,isFocused:P,isChecked:L,isActive:R,isHovered:T,isIndeterminate:m,isDisabled:n,isReadOnly:o,isRequired:i},getRootProps:G,getCheckboxProps:q,getIndicatorProps:H,getInputProps:Y,getLabelProps:X,htmlProps:_}}function IS(e){e.preventDefault(),e.stopPropagation()}const DS={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},MS={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},$S=us({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),LS=us({from:{opacity:0},to:{opacity:1}}),NS=us({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),VS=Eg(function(e,r){const n=mS(),o=Fg("Checkbox",{...n,...e}),i=_g(e),{spacing:a="0.5rem",className:s,children:l,iconColor:c,iconSize:u,icon:d=(0,fi.jsx)(yS,{}),isChecked:p,isDisabled:f=n?.isDisabled,onChange:h,inputProps:m,...g}=i;let b=p;n?.value&&i.value&&(b=n.value.includes(i.value));let y=h;n?.onChange&&i.value&&(y=function(...e){return function(...t){e.forEach(e=>e?.(...t))}}(n.onChange,h));const{state:v,getInputProps:x,getCheckboxProps:S,getLabelProps:w,getRootProps:_}=BS({...g,isDisabled:f,isChecked:b,onChange:y}),k=function(e){const[r,n]=(0,t.useState)(e),[o,i]=(0,t.useState)(!1);return e!==r&&(i(!0),n(e)),o}(v.isChecked),E=(0,t.useMemo)(()=>({animation:k?v.isIndeterminate?`${LS} 20ms linear, ${NS} 200ms linear`:`${$S} 200ms linear`:void 0,...o.icon,...og({fontSize:u,color:c})}),[c,u,k,v.isIndeterminate,o.icon]),C=(0,t.cloneElement)(d,{__css:E,isIndeterminate:v.isIndeterminate,isChecked:v.isChecked});return(0,fi.jsxs)(vg.label,{__css:{...MS,...o.container},className:kg("chakra-checkbox",s),..._(),children:[(0,fi.jsx)("input",{className:"chakra-checkbox__input",...x(m,r)}),(0,fi.jsx)(vg.span,{__css:{...DS,...o.control},className:"chakra-checkbox__control",...S(),children:C}),l&&(0,fi.jsx)(vg.span,{className:"chakra-checkbox__label",...w(),__css:{marginStart:a,...o.label},children:l})]})});function WS(e){return WS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WS(e)}function US(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function qS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?US(Object(r),!0).forEach(function(t){HS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):US(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function HS(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=WS(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=WS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==WS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GS(e){return function(e){if(Array.isArray(e))return KS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||XS(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||XS(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XS(e,t){if(e){if("string"==typeof e)return KS(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?KS(e,t):void 0}}function KS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}VS.displayName="Checkbox";const JS=function(e){var r,o=e.bundle,i=e.addBundleToCart,a=void 0===i?function(){}:i,s=e.addingToCart,l=void 0===s?{}:s,c=e.currencySymbol,u=void 0===c?"$":c,d=e.previewCustomizations,p=o.items||[],f=d||(null===(r=window.bundlePressData)||void 0===r||null===(r=r.customizations)||void 0===r?void 0:r.fbt)||{},h=f.heading||"Frequently Bought Together",m=f.button_add_items||"Add {count} Items to Cart",g=f.button_added||"✓ Added!",b=f.hover_bg||"#E3F2FD",y=f.card_bg||"#FFFFFF",v=f.header_color||"#1D4ED8",x=f.header_dot_color||"#3B82F6",S=f.badge_bg||"#2563EB",w=f.badge_color||"#FFFFFF",_=f.product_list_bg||"#F9FAFB",k=f.product_item_bg||"#FFFFFF",E=f.product_item_border_active||"#93C5FD",C=f.product_name_color||"#374151",P=f.product_price_color||"#374151",j=f.total_label||"Total Price:",T=f.total_label_color||"#6B7280",A=f.total_price_color||"#2563EB",R=f.total_regular_price_color||"#9CA3AF",O=f.button_bg||"#2563EB",z=f.button_color||"#FFFFFF",F=YS((0,t.useState)(function(){return p.map(function(e){return e.product_id})}),2),B=F[0],I=F[1],D=YS((0,t.useState)({}),2),M=D[0],$=D[1],L=function(e){I(function(t){return t.includes(e)?t.filter(function(t){return t!==e}):[].concat(GS(t),[e])})},N=(0,t.useMemo)(function(){return p.filter(function(e){return B.includes(e.product_id)})},[p,B]),V=N.reduce(function(e,t){return e+parseFloat(t.price||0)},0),W=(N.reduce(function(e,t){return e+parseFloat(t.regular_price||t.price||0)},0),o.discount_type),U=parseFloat(o.discount_value||0),q=V;"percentage"===W?q=V*(1-U/100):"fixed"===W&&(q=Math.max(0,V-U));return 0===p.length?null:n().createElement(Ov,{px:5,py:5,bg:y,_hover:{bg:b},transition:"background 0.2s"},n().createElement(Iv,{align:"stretch",spacing:4},n().createElement(Gv,{justify:"space-between",mb:1},n().createElement(Gv,{spacing:2},n().createElement(Ov,{bg:x,boxSize:"2px",borderRadius:"full"}),n().createElement(fS,{size:"xs",textTransform:"uppercase",color:v,letterSpacing:"widest",fontWeight:"black",m:0},h)),U>0&&n().createElement(Ov,{bg:S,color:w,fontWeight:"800",py:"5px",px:3,borderRadius:"full",fontSize:"10px"},f.save_label||"SAVE"," ","percentage"===W?"".concat(U,"%"):"".concat(u).concat(U))),n().createElement(Wv,{align:"center",gap:3,flexWrap:"wrap",px:2},p.map(function(e,t){return n().createElement(n().Fragment,{key:e.product_id},n().createElement(Ov,{position:"relative"},e.image?n().createElement(_x,{src:e.image,boxSize:"60px",objectFit:"cover",borderRadius:"lg",borderWidth:"1px",borderColor:B.includes(e.product_id)?E:"gray.100",opacity:B.includes(e.product_id)?1:.4,transition:"all 0.2s",shadow:"sm"}):n().createElement(Wv,{boxSize:"60px",borderRadius:"lg",borderWidth:"1px",borderColor:B.includes(e.product_id)?E:"gray.100",align:"center",justify:"center",bg:"gray.50",opacity:B.includes(e.product_id)?1:.4},n().createElement(Ig,{as:gx,color:"gray.300"})),n().createElement(VS,{size:"sm",isChecked:B.includes(e.product_id),onChange:function(){return L(e.product_id)},position:"absolute",top:"-4px",right:"-4px",bg:"white",borderRadius:"sm"})),t<p.length-1&&n().createElement(Ig,{as:bx,color:"gray.300",boxSize:3}))})),n().createElement(Iv,{align:"stretch",spacing:2,p:4,bg:_,borderRadius:"xl",borderWidth:"1px"},n().createElement(Iv,{align:"stretch",spacing:1.5},p.map(function(e){return n().createElement(Iv,{key:e.product_id,align:"stretch",spacing:2,p:2,bg:k,borderRadius:"md",borderWidth:"1px",borderColor:B.includes(e.product_id)?E:"gray.100"},n().createElement(Gv,{justify:"space-between"},n().createElement(VS,{size:"md",isChecked:B.includes(e.product_id),onChange:function(){return L(e.product_id)},flex:1,colorScheme:"blue"},n().createElement(Hv,{ml:"4px",fontSize:"13px",noOfLines:1,color:B.includes(e.product_id)?C:"gray.400",fontWeight:"medium"},e.name)),n().createElement(Hv,{fontSize:"13px",fontWeight:"bold",color:B.includes(e.product_id)?P:"gray.400"},Dx(e.price))),"variable"===e.type&&e.variations&&e.variations.length>0&&B.includes(e.product_id)&&n().createElement(zx,{size:"sm",ml:6,w:"auto",value:M[e.product_id]||e.variation_id||e.variations[0].id,onChange:function(t){return $(qS(qS({},M),{},HS({},e.product_id,t.target.value)))},bg:"gray.50",borderRadius:"md",borderColor:"gray.200",fontSize:"xs",fontWeight:"600",h:"32px"},e.variations.map(function(t){return n().createElement("option",{key:t.id,value:t.id},t.name.replace(e.name+" - ",""))})))})),n().createElement(Gv,{justify:"space-between",mt:2,pt:2,borderTopWidth:"1px",borderColor:"gray.200"},n().createElement(Hv,{fontSize:"xs",fontWeight:"black",color:T,textTransform:"uppercase"},j),n().createElement(Gv,{spacing:2},q<V&&n().createElement(Hv,{fontSize:"xs",color:R,textDecoration:"line-through",fontWeight:"bold"},Dx(V)),n().createElement(Hv,{fontSize:"lg",fontWeight:"black",color:A},Dx(q)))),n().createElement(nx,{size:"lg",mt:2,leftIcon:n().createElement(Ig,{as:yx}),isDisabled:0===B.length,isLoading:"loading"===l[o.id],onClick:function(){if(0!==N.length){var e=N.map(function(e){var t;return qS(qS({},e),{},{variation_id:M[e.product_id]||e.variation_id||(null===(t=e.variations)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)})});a(qS(qS({},o),{},{items:e}))}},borderRadius:"xl",fontSize:"sm",fontWeight:"black",h:"50px",textTransform:"uppercase",letterSpacing:"wider",shadow:"md",bg:O,color:z,_hover:{transform:"translateY(-1px)",shadow:"lg",opacity:.9}},"done"===l[o.id]?g:m.replace("{count}",B.length)))))},ZS=Eg(function(e,t){const{borderLeftWidth:r,borderBottomWidth:n,borderTopWidth:o,borderRightWidth:i,borderWidth:a,borderStyle:s,borderColor:l,...c}=zg("Divider",e),{className:u,orientation:d="horizontal",__css:p,...f}=_g(e),h={vertical:{borderLeftWidth:r||i||a||"1px",height:"100%"},horizontal:{borderBottomWidth:n||o||a||"1px",width:"100%"}};return(0,fi.jsx)(vg.hr,{ref:t,"aria-orientation":d,...f,__css:{...c,border:"0",borderColor:l,borderStyle:s,...h[d],...p},className:kg("chakra-divider",u)})});ZS.displayName="Divider";const QS=Eg((e,r)=>{const{icon:n,children:o,isRound:i,"aria-label":a,...s}=e,l=n||o,c=(0,t.isValidElement)(l)?(0,t.cloneElement)(l,{"aria-hidden":!0,focusable:!1}):null;return(0,fi.jsx)(nx,{px:"0",py:"0",borderRadius:i?"full":void 0,ref:r,"aria-label":a,...s,children:c})});function ew(e){return ew="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ew(e)}function tw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tw(Object(r),!0).forEach(function(t){nw(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tw(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function nw(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ew(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ew(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ew(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ow(e){return function(e){if(Array.isArray(e))return sw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||aw(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||aw(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aw(e,t){if(e){if("string"==typeof e)return sw(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?sw(e,t):void 0}}function sw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}QS.displayName="IconButton";const lw=function(e){var r,o,i,a=e.bundle,s=e.productId,l=e.addBundleToCart,c=void 0===l?function(){}:l,u=e.addingToCart,d=void 0===u?{}:u,p=e.previewCustomizations,f=(null===(r=a.settings)||void 0===r?void 0:r.tiers)||[],h=!1!==(null===(o=a.settings)||void 0===o?void 0:o.allow_multi_quantity),m=p||(null===(i=window.bundlePressData)||void 0===i||null===(i=i.customizations)||void 0===i?void 0:i.mixmatch)||{},g=m.heading||"Mix & Match Offer",b=m.button_claim_deal||"Claim This Deal",y=m.hover_bg||"#F3E8FF",v=m.card_bg||"#FFFFFF",x=m.header_color||"#6B21A8",S=m.header_badge_bg||"#805AD5",w=m.price_color||"#1A202C",_=m.regular_price_color||"#9CA3AF",k=m.tier_active_border||"#9F7AEA",E=m.tier_active_text||"#1A202C",C=m.tier_discount_color||"#9F7AEA",P=m.product_name_color||"#374151",j=m.product_price_color||"#6B7280",T=m.qty_btn_bg||"#F3F4F6",A=m.qty_btn_add_color||"#805AD5",R=m.items_bar_bg||"#F9FAFB",O=m.items_bar_text||"#6B7280",z=m.button_bg||"#805AD5",F=m.button_color||"#FFFFFF",B=m.items_selected_label||"Items Selected:",I=m.placeholder_select||"Select {label}",D=a.items||[],M=iw((0,t.useState)(function(){var e=localStorage.getItem("bp_mm_selected_".concat(a.id));if(e)try{return JSON.parse(e)}catch(e){return{}}var t={};return D.some(function(e){return parseInt(e.product_id)===parseInt(s)})&&(t[s]=1),t}),2),$=M[0],L=M[1],N=iw((0,t.useState)({}),2),V=N[0],W=N[1];(0,t.useEffect)(function(){localStorage.setItem("bp_mm_selected_".concat(a.id),JSON.stringify($))},[$,a.id]);var U=Object.values($).reduce(function(e,t){return e+t},0),q=ow(f).sort(function(e,t){return parseInt(t.min_qty)-parseInt(e.min_qty)}).find(function(e){return U>=parseInt(e.min_qty)}),H=q?parseFloat(q.discount||0):0,G=D.reduce(function(e,t){var r=$[t.product_id]||0;return e+parseFloat(t.price||0)*r},0),Y=G*(1-H/100),X=function(e,t){L(function(r){var n=r[e]||0,o=Math.max(0,n+t);if(!h&&o>1)return r;if(0===o){var i=rw({},r);return delete i[e],i}return rw(rw({},r),{},nw({},e,o))})};return 0===D.length||0===f.length?null:n().createElement(Ov,{px:5,py:5,bg:v,_hover:{bg:y},transition:"background 0.2s"},n().createElement(Iv,{align:"stretch",spacing:4},n().createElement(Gv,{justify:"space-between",align:"start",mb:1},n().createElement(Gv,{spacing:2},n().createElement(Ov,{bg:x,boxSize:"2px",borderRadius:"full"}),n().createElement(fS,{size:"xs",textTransform:"uppercase",color:x,letterSpacing:"widest",fontWeight:"black",m:0},g)),n().createElement(Ov,{bg:S,color:"white",py:"5px",px:3,borderRadius:"full",fontSize:"9px",fontWeight:"800"},H>0?"".concat(H,"% ").concat(m.discount_text_suffix||"OFF"):m.header_badge_build||"BUILD YOUR DEAL")),n().createElement(Wv,{align:"baseline",gap:2,px:2,mb:-2},n().createElement(Hv,{fontSize:"2xl",fontWeight:"900",color:w,m:0},Dx(Y)),H>0&&n().createElement(Hv,{fontSize:"sm",color:_,textDecoration:"line-through",m:0},Dx(G))),n().createElement(Gv,{spacing:3,overflowX:"auto",pb:2,px:2},f.map(function(e,t){var r=parseInt(e.min_qty),o=U>=r,i=f[t+1],a=o&&(!i||U<parseInt(i.min_qty));return n().createElement(Ov,{key:t,p:3,minW:"110px",borderWidth:"2px",borderColor:a?k:"gray.100",bg:a?"white":"gray.50",borderRadius:"xl",textAlign:"center",position:"relative"},n().createElement(Hv,{m:0,fontSize:"sm",fontWeight:"800",color:a?E:"gray.400"},"+",r," ",n().createElement(Hv,{as:"span",fontSize:"xs",fontWeight:"normal"},m.tier_suffix||"Items")),n().createElement(Hv,{m:0,fontSize:"xs",fontWeight:"bold",color:a?C:"gray.300"},e.discount,"% ",m.discount_text_suffix||"OFF"),o&&n().createElement(Ov,{position:"absolute",top:"-5px",right:"-5px",bg:"green.500",borderRadius:"full",boxSize:"14px",border:"2px solid white"}))})),n().createElement(Iv,{spacing:3,maxH:"300px",overflowY:"auto",pr:2,divider:n().createElement(ZS,null),px:2},D.map(function(e){var t=$[e.product_id]||0,r=e.name||"Product",o=parseFloat(e.price||0);return n().createElement(Gv,{key:e.product_id,spacing:4,py:2,w:"100%"},n().createElement(Ov,{boxSize:"50px",borderRadius:"xl",overflow:"hidden",borderWidth:"1px",borderColor:"gray.100",bg:"gray.50",flexShrink:0},e.image?n().createElement(_x,{src:e.image,boxSize:"100%",objectFit:"cover"}):n().createElement(Wv,{boxSize:"100%",align:"center",justify:"center"},n().createElement(Ig,{as:gx,color:"gray.300"}))),n().createElement(Iv,{align:"start",spacing:0,flex:1},n().createElement(Hv,{fontSize:"sm",fontWeight:"bold",noOfLines:1,color:P},r),n().createElement(Hv,{fontSize:"xs",color:j,fontWeight:"bold",mb:1},Dx(o)),"variable"===e.type&&e.variations&&e.variations.length>0&&n().createElement(zx,{size:"sm",value:V[e.product_id]||e.variation_id||e.variations[0].id,onChange:function(t){return W(rw(rw({},V),{},nw({},e.product_id,t.target.value)))},bg:"gray.50",borderRadius:"md",fontSize:"xs",fontWeight:"600",placeholder:I.replace("{label}","")},e.variations.map(function(t){return n().createElement("option",{key:t.id,value:t.id},t.name.replace(e.name+" - ",""))}))),n().createElement(Gv,{spacing:3,bg:T,p:1,borderRadius:"full",borderWidth:"1px"},n().createElement(QS,{size:"xs",icon:n().createElement(mx,null),onClick:function(){return X(e.product_id,-1)},isDisabled:0===t,variant:"ghost",borderRadius:"full",_hover:{bg:"white",color:"red.500"}}),n().createElement(Hv,{fontSize:"xs",fontWeight:"bold",w:"20px",textAlign:"center",color:"gray.700"},t),n().createElement(QS,{size:"xs",icon:n().createElement(bx,null),onClick:function(){return X(e.product_id,1)},isDisabled:!h&&t>=1,bg:A,color:"white",variant:"solid",borderRadius:"full",shadow:"sm",_hover:{opacity:.85}})))})),n().createElement(Iv,{align:"stretch",spacing:2,p:4,bg:R,borderRadius:"xl",borderWidth:"1px"},n().createElement(Gv,{justify:"space-between"},n().createElement(Hv,{fontSize:"xs",fontWeight:"black",color:O,textTransform:"uppercase"},B),n().createElement(Hv,{fontSize:"xs",fontWeight:"bold",color:O},U)),n().createElement(nx,{mt:1,size:"lg",isDisabled:!q,isLoading:"loading"===d[a.id],onClick:function(){if(q){var e=Object.entries($).map(function(e){var t,r=iw(e,2),n=r[0],o=r[1],i=D.find(function(e){return parseInt(e.product_id)===parseInt(n)});return rw(rw({},i),{},{product_id:parseInt(n),quantity:o,variation_id:V[n]||(null==i?void 0:i.variation_id)||(null==i||null===(t=i.variations)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)})});c(rw(rw({},a),{},{items:e}))}},borderRadius:"xl",h:"50px",fontWeight:"black",fontSize:"sm",textTransform:"uppercase",letterSpacing:"wider",shadow:"md",bg:z,color:F,_hover:{transform:"translateY(-1px)",shadow:"lg",opacity:.9}},b))))},cw={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]};const uw=(e,t)=>({...e,delay:"number"==typeof t?t:t?.enter}),dw=(e,t)=>({...e,delay:"number"==typeof t?t:t?.exit}),pw={exit:{height:{duration:.2,ease:cw.ease},opacity:{duration:.3,ease:cw.ease}},enter:{height:{duration:.3,ease:cw.ease},opacity:{duration:.4,ease:cw.ease}}},fw={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:n,delay:o})=>{return{...e&&{opacity:(i=t,null!=i&&parseInt(i.toString(),10)>0?1:0)},height:t,transitionEnd:n?.exit,transition:r?.exit??dw(pw.exit,o)};var i},enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:n,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:n?.enter,transition:r?.enter??uw(pw.enter,o)})},hw=(0,t.forwardRef)((e,r)=>{const{in:n,unmountOnExit:o,animateOpacity:i=!0,startingHeight:a=0,endingHeight:s="auto",style:l,className:c,transition:u,transitionEnd:d,animatePresenceProps:p,...f}=e,[h,m]=(0,t.useState)(!1);(0,t.useEffect)(()=>{const e=setTimeout(()=>{m(!0)});return()=>clearTimeout(e)},[]),(e=>{const{condition:t,message:r}=e})({condition:Number(a)>0&&!!o,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const g=parseFloat(a.toString())>0,b={startingHeight:a,endingHeight:s,animateOpacity:i,transition:h?u:{enter:{duration:0}},transitionEnd:{enter:d?.enter,exit:o?d?.exit:{...d?.exit,display:g?"block":"none"}}},y=!o||n,v=n||o?"enter":"exit";return(0,fi.jsx)(xc,{...p,initial:!1,custom:b,children:y&&(0,fi.jsx)(Qm.div,{ref:r,...f,className:kg("chakra-collapse",c),style:{overflow:"hidden",display:"block",...l},custom:b,variants:fw,initial:!!o&&"exit",animate:v,exit:"exit"})})});function mw(e){return mw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mw(e)}function gw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function bw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gw(Object(r),!0).forEach(function(t){yw(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gw(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function yw(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=mw(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=mw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mw(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xw(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xw(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}hw.displayName="Collapse";const Sw=function(e){var r,o,i,a,s,l,c=e.bundle,u=e.productId,d=e.addBundleToCart,p=void 0===d?function(){}:d,f=e.addingToCart,h=void 0===f?{}:f,m=(e.currencySymbol,e.previewCustomizations),g=(null===(r=c.settings)||void 0===r?void 0:r.tiers)||[],b=m||(null===(o=window.bundlePressData)||void 0===o||null===(o=o.customizations)||void 0===o?void 0:o.volume)||{},y=b.layout||(null===(i=c.settings)||void 0===i?void 0:i.layout)||"grid",v=b.heading||"Volume Discount",x=b.button_select_deal||"Select a Deal",S=b.button_choose_variations||"Choose Variations",w=b.button_claim_deal||"Claim This Deal",_=b.placeholder_select||"Select {label}",k=b.hover_bg||"blue.50",E=b.tier_prefix||"Buy",C=b.discount_text||"{value} OFF",P=b.badge_bg||"#51eb56",j=b.badge_color||"#000000",T=b.button_bg||"#2563EB",A=b.button_color||"#FFFFFF",R=!1!==b.show_regular_price&&"0"!==b.show_regular_price&&0!==b.show_regular_price,O=b.popular_badge_text||"Popular",z=b.popular_badge_bg||"#EF4444",F=b.popular_badge_color||"#FFFFFF",B=(null===(a=c.items)||void 0===a?void 0:a.find(function(e){return parseInt(e.product_id)===parseInt(u)}))||(null===(s=c.items)||void 0===s?void 0:s[0]),I=(null==B?void 0:B.variations)||[],D=I.length>0,M=vw((0,t.useState)(parseFloat((null==B?void 0:B.price)||0)),2),$=M[0],L=M[1],N=vw((0,t.useState)(parseFloat((null==B?void 0:B.regular_price)||(null==B?void 0:B.price)||0)),2),V=N[0],W=N[1];(0,t.useEffect)(function(){var e=function(){var e=document.querySelector("input.variation_id");if(e&&e.value){var t=parseInt(e.value),r=I.find(function(e){return e.id===t});r&&(L(parseFloat(r.price)),W(parseFloat(r.regular_price||r.price)))}else if(D&&I.length>0){var n=I[0];L(parseFloat(n.price)),W(parseFloat(n.regular_price||n.price))}};e();var t=setInterval(e,1e3);return function(){return clearInterval(t)}},[I,D]);var U=(0,t.useState)(function(){var e=g.findIndex(function(e){return e.is_default});if(-1!==e)return e;var t=localStorage.getItem("bp_selected_tier_".concat(u,"_").concat(c.id));return null!==t?parseInt(t):null}),q=vw(U,2),H=q[0],G=q[1],Y=vw((0,t.useState)({}),2),X=Y[0],K=Y[1],J=vw((0,t.useState)({}),2),Z=J[0],Q=J[1];(0,t.useEffect)(function(){null!==H?localStorage.setItem("bp_selected_tier_".concat(u,"_").concat(c.id),H):localStorage.removeItem("bp_selected_tier_".concat(u,"_").concat(c.id))},[H,u,c.id]);var ee=(0,t.useMemo)(function(){if(!D)return{};var e={};I.forEach(function(t){t.attributes&&!Array.isArray(t.attributes)&&Object.entries(t.attributes).forEach(function(t){var r=vw(t,2),n=r[0],o=r[1];e[n]||(e[n]=new Set),o&&e[n].add(o)})});var t={},r=(null==B?void 0:B.attribute_values)||{};return Object.keys(e).forEach(function(n){var o=Array.from(e[n]),i=n.replace("attribute_",""),a=r[i]||r[n];Array.isArray(a)&&o.sort(function(e,t){var r=a.indexOf(e),n=a.indexOf(t);return-1===r&&-1===n?0:-1===r?1:-1===n?-1:r-n}),t[n]=o}),t},[I,D,B]),te=(0,t.useMemo)(function(){var e=Object.keys(ee),t=(null==B?void 0:B.attribute_values)||{},r=Object.keys(t).map(function(e){return"attribute_".concat(e)});return e.sort(function(e,t){var n=r.indexOf(e),o=r.indexOf(t);return-1===n&&-1===o?0:-1===n?1:-1===o?-1:n-o}),e},[ee,B]),re=function(e){return e?e.replace("attribute_pa_","").replace("attribute_","").replace(/_/g," ").replace(/\b\w/g,function(e){return e.toUpperCase()}):""},ne=(0,t.useMemo)(function(){var e;if(null===H||!D)return null;for(var t=parseInt((null===(e=g[H])||void 0===e?void 0:e.min_qty)||0),r=0,n=function(){var e=X[o];if(e){var t=I.find(function(t){return t.id===parseInt(e)});t&&(r+=parseFloat(t.price))}else r+=$},o=0;o<t;o++)n();return r},[H,g,X,I,D,$]),oe=(0,t.useMemo)(function(){var e,t;if(null===H||!D)return V*parseInt((null===(e=g[H])||void 0===e?void 0:e.min_qty)||0);for(var r=parseInt((null===(t=g[H])||void 0===t?void 0:t.min_qty)||0),n=0,o=function(){var e=X[i];if(e){var t=I.find(function(t){return t.id===parseInt(e)});t&&(n+=parseFloat(t.regular_price||t.price))}else n+=V},i=0;i<r;i++)o();return n},[H,g,X,I,D,V]),ie=(0,t.useMemo)(function(){var e;if(!D||null===H)return!1;for(var t=parseInt((null===(e=g[H])||void 0===e?void 0:e.min_qty)||0),r=0;r<t;r++)if(!X[r])return!0;return!1},[D,H,g,X]);if(0===g.length)return null;var ae=function(e){if(e.custom_badge)return e.custom_badge;var t=parseFloat(e.discount||0),r="fixed"===(e.discount_type||"percentage")?Dx(t):"-".concat(t,"%");return C.replace("{value}",r)},se=function(e){var t=e.tier,r=e.idx,o=parseInt(t.min_qty),i=H===r,a=i?oe:V*o,s=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=null!==n?n:e*t,i=parseFloat(r.discount||0),a="fixed"===(r.discount_type||"percentage");return{regTotal:o,discTotal:a?Math.max(0,o-i):o-o*i/100,discAmt:i,isFixed:a}}($,o,t,i?ne:$*o),l=(s.regTotal,s.discTotal),c=a,u=s.discAmt>0||c>l;return n().createElement(Bv,{direction:"list"===y?"row":"column",justify:"list"===y?"space-between":"center",p:4,borderWidth:"2px",borderColor:i?"blue.500":"gray.100",borderRadius:"2xl",align:"center",spacing:"list"===y?4:2,bg:"white",shadow:i?"md":"sm",cursor:"pointer",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",_hover:{borderColor:"blue.300",transform:"translateY(-2px)"},onClick:function(){return G(r)},position:"relative",overflow:"hidden"},1===r&&n().createElement(Ov,{position:"absolute",top:0,right:0,bg:z,color:F,px:2,py:.5,fontSize:"9px",fontWeight:"800",borderBottomLeftRadius:"md",textTransform:"uppercase",zIndex:2},O),n().createElement(Iv,{spacing:0,align:"list"===y?"start":"center"},n().createElement(Hv,{fontWeight:"800",fontSize:"xs",color:i?"blue.700":"gray.500",textTransform:"uppercase",m:0},E," ",o),u&&"list"===y&&n().createElement(Ov,{px:"8px",py:"2px",bg:P,color:j,fontSize:"10px",fontWeight:"800",borderRadius:"full",textTransform:"uppercase",mt:1},ae(t))),n().createElement(Iv,{spacing:1,align:"list"===y?"end":"center"},n().createElement(Iv,{spacing:0,align:"list"===y?"end":"center"},n().createElement(Hv,{color:i?"blue.600":"gray.800",fontWeight:"black",fontSize:"16px",m:0},Dx(l)),R&&c>l&&n().createElement(Hv,{m:0,fontSize:"13px",color:"gray.400",textDecoration:"line-through",fontWeight:"bold"},Dx(c))),u&&"list"!==y&&n().createElement(Ov,{px:"10px",py:"3px",bg:P,color:j,mt:1,fontSize:"12px",fontWeight:"700",borderRadius:"full"},ae(t))))};return n().createElement(Ov,{px:5,py:5,_hover:{bg:k},transition:"background 0.2s"},n().createElement(Iv,{align:"stretch",spacing:4},n().createElement(Gv,{justify:"space-between",mb:1},n().createElement(Gv,{spacing:2},n().createElement(Ov,{bg:"blue.500",boxSize:"2px",borderRadius:"full"}),n().createElement(fS,{size:"xs",textTransform:"uppercase",color:"blue.600",letterSpacing:"widest",fontWeight:"black"},v))),n().createElement(Sx,{columns:"list"===y?1:{base:1,sm:2,md:g.length>3?2:g.length},gap:3},g.map(function(e,t){return n().createElement(se,{key:t,tier:e,idx:t})})),n().createElement(hw,{in:null!==H&&D},n().createElement(Ov,{pt:3},n().createElement(Ov,{h:"1px",bg:"blue.100",mb:3}),te.length>0&&n().createElement(Wv,{align:"center",gap:3,mb:2,px:1,pl:"45px"},te.map(function(e){return n().createElement(Hv,{key:e,flex:1,fontSize:"11px",fontWeight:"800",textTransform:"uppercase",color:"gray.400",m:0},re(e))})),n().createElement(Bv,{spacing:2},null!==H&&Array.from({length:parseInt((null===(l=g[H])||void 0===l?void 0:l.min_qty)||0)}).map(function(e,t){return n().createElement(Wv,{key:t,gap:3,bg:"white",p:3,borderRadius:"xl",border:"1px solid",borderColor:"blue.100",alignItems:"center",w:"100%"},n().createElement(Wv,{align:"center",justify:"center",bg:"blue.100",color:"blue.600",borderRadius:"full",boxSize:"26px",fontSize:"11px",fontWeight:"900",flexShrink:0},t+1),n().createElement(Sx,{columns:te.length,spacing:3,flex:1},te.map(function(e){var r;return n().createElement(zx,{key:e,size:"sm",variant:"filled",placeholder:_.replace("{label}",re(e)),value:(null===(r=Z[t])||void 0===r?void 0:r[e])||"",onChange:function(r){return function(e,t,r){var n=bw(bw({},Z[e]||{}),{},yw({},t,r));Q(function(t){return bw(bw({},t),{},yw({},e,n))});var o=I.find(function(e){return!!e.attributes&&te.every(function(t){return e.attributes[t]===n[t]})}),i=o?o.id:"";K(function(t){return bw(bw({},t),{},yw({},e,i))})}(t,e,r.target.value)},fontWeight:"600",fontSize:"sm",borderRadius:"md",bg:"gray.50",_hover:{bg:"blue.50"},_focus:{bg:"white",borderColor:"blue.500"}},ee[e].map(function(e){return n().createElement("option",{key:e,value:e},e)}))})))})))),n().createElement(nx,{mt:2,size:"lg",bg:T,color:A,isDisabled:null===H||ie,isLoading:"loading"===h[c.id],onClick:function(){if(null!==H&&!ie){var e=g[H],t=parseInt(e.min_qty);if(B){for(var r=[],n=0;n<t;n++)r.push(bw(bw({},B),{},{product_id:parseInt(u),variation_id:D?parseInt(X[n]):B.variation_id||0,quantity:1}));var o=bw(bw({},c),{},{_volumeDirect:!0,items:r});p(o)}}},borderRadius:"xl",h:"50px",fontWeight:"black",fontSize:"sm",textTransform:"uppercase",letterSpacing:"wider",shadow:"md",_hover:{transform:"translateY(-1px)",shadow:"lg",opacity:.9}},null===H?x:ie?S:w)))};function ww(e){return ww="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ww(e)}function _w(e){return function(e){if(Array.isArray(e))return Fw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zw(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kw(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=zw(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Ew(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var l=n&&n.prototype instanceof s?n:s,c=Object.create(l.prototype);return Cw(c,"_invoke",function(r,n,o){var i,s,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,r){return i=t,s=0,l=e,p.n=r,a}};function f(r,n){for(s=r,l=n,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];r>3?(o=h===n)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=r<2&&f<i[1])?(s=0,p.v=n,p.n=i[1]):f<h&&(o=r<3||i[0]>n||n>h)&&(i[4]=r,i[5]=n,p.n=h,s=0))}if(o||r>1)return a;throw d=!0,n}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=p.n<0)?l:r.call(n,p))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(r,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Cw(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Cw(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Cw(d,"constructor",c),Cw(c,"constructor",l),l.displayName="GeneratorFunction",Cw(c,o,"GeneratorFunction"),Cw(d),Cw(d,o,"Generator"),Cw(d,n,function(){return this}),Cw(d,"toString",function(){return"[object Generator]"}),(Ew=function(){return{w:i,m:p}})()}function Cw(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Cw=function(e,t,r,n){function i(t,r){Cw(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Cw(e,t,r,n)}function Pw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function jw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pw(Object(r),!0).forEach(function(t){Tw(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pw(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Tw(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=ww(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ww(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ww(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Aw(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function Rw(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Aw(i,n,o,a,s,"next",e)}function s(e){Aw(i,n,o,a,s,"throw",e)}a(void 0)})}}function Ow(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||zw(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zw(e,t){if(e){if("string"==typeof e)return Fw(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fw(e,t):void 0}}function Fw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Bw=function(e){var r,o=e.productId,i=e.context,a=void 0===i?"product":i,s=Ow((0,t.useState)([]),2),l=s[0],c=s[1],u=Ow((0,t.useState)(!0),2),d=u[0],p=u[1],f=Ow((0,t.useState)({}),2),h=f[0],m=f[1],g=qv(),b=function(){var e=Rw(Ew().m(function e(t){var r,n,i,a,s,l,c,u,d,p,f,h,b,y,v,x,S,w,_,k,E,C,P,j,T,A,R,O,z,F,B,I,D,M,$,L,N,V,W,U,q,H,G,Y,X,K,J,Z,Q,ee;return Ew().w(function(e){for(;;)switch(e.p=e.n){case 0:if(m(function(e){return jw(jw({},e),{},Tw({},t.id,"loading"))}),e.p=1,l=(null===(r=window.bundlePressData)||void 0===r?void 0:r.restUrl)||"/wp-json/",c=(null===(n=window.bundlePressData)||void 0===n?void 0:n.nonce)||(null===(i=window.wcSettings)||void 0===i?void 0:i.nonce)||(null===(a=window.bundlePressData)||void 0===a?void 0:a.wpRestNonce)||"",u=c,d="".concat(l,"wc/store/v1/cart/add-item"),p=function(e){return{"Content-Type":"application/json","X-WC-Store-API-Nonce":e,Nonce:e}},f="".concat(l,"bundlepress/v1/analytics/track"),h={"Content-Type":"application/json"},fetch(f,{method:"POST",headers:h,body:JSON.stringify({bundle_id:t.id,type:"click"})}).catch(function(){}),fetch(f,{method:"POST",headers:h,body:JSON.stringify({bundle_id:t.id,type:"add_to_cart"})}).catch(function(){}),b=function(){var e=Rw(Ew().m(function e(t,r){var n,o,i,a=arguments;return Ew().w(function(e){for(;;)switch(e.n){case 0:return n=!(a.length>2&&void 0!==a[2])||a[2],e.n=1,fetch(t,{method:"POST",headers:p(u),body:JSON.stringify(r),credentials:"include"});case 1:if(o=e.v,(i=o.headers.get("Nonce")||o.headers.get("nonce"))&&(u=i),403!==o.status||!n||!i){e.n=2;break}return e.a(2,b(t,r,!1));case 2:return e.a(2,o)}},e)}));return function(t,r){return e.apply(this,arguments)}}(),!t._volumeDirect){e.n=11;break}y=t.items||[],v=kw(y),e.p=2,v.s();case 3:if((x=v.n()).done){e.n=7;break}return S=x.value,w="".concat(d,"?bundle_id=").concat(t.id,"&bundle_type=").concat(t.type),(_=S.variation_id?parseInt(S.variation_id):parseInt(S.product_id))===parseInt(o)&&(k=document.querySelector("input.variation_id"))&&k.value&&parseInt(k.value)>0&&(_=parseInt(k.value)),e.n=4,b(w,{id:_,quantity:S.quantity||1});case 4:if((E=e.v).ok){e.n=6;break}return e.n=5,E.json().catch(function(){return{}});case 5:throw C=e.v,new Error(C.message||"Failed to add item to cart");case 6:e.n=3;break;case 7:e.n=9;break;case 8:e.p=8,Q=e.v,v.e(Q);case 9:return e.p=9,v.f(),e.f(9);case 10:e.n=23;break;case 11:return!(R="fixed"===t.type&&t.product_id?parseInt(t.product_id):0)&&null!==(P=t.items)&&void 0!==P&&P[0]&&(R=parseInt(t.items[0].variation_id||t.items[0].product_id)),R===parseInt(o)&&(O=document.querySelector("input.variation_id"))&&O.value&&parseInt(O.value)>0&&(R=parseInt(O.value)),z="".concat(d,"?bundle_id=").concat(t.id,"&bundle_type=").concat(t.type),(null===(j=t.bxgy_offer_items)||void 0===j?void 0:j.some(function(e){return parseInt(e.product_id)===parseInt(R)||parseInt(e.variation_id)===parseInt(R)}))&&(z+="&is_offer=1","free_gift"!==(null===(F=t.settings)||void 0===F?void 0:F.bxgy_offer_type)&&"free_gift"!==(null===(B=t.settings)||void 0===B?void 0:B.offer_type)||(z+="&is_free=1")),e.n=12,b(z,{id:R,quantity:1});case 12:if((I=e.v).ok){e.n=14;break}return e.n=13,I.json().catch(function(){return{}});case 13:throw D=e.v,new Error(D.message||"Failed to add bundle parent");case 14:return e.n=15,I.json();case 15:M=e.v,$=M.key||M.items&&(null===(T=M.items.find(function(e){return e.id===parseInt(R)}))||void 0===T?void 0:T.key)||M.items&&(null===(A=M.items[0])||void 0===A?void 0:A.key),L=(t.items||[]).map(function(e){return jw(jw({},e),{},{_is_component:!0})}),N="bxgy"===t.type&&t.bxgy_offer_items?t.bxgy_offer_items.map(function(e){return jw(jw({},e),{},{_is_offer:!0})}):[],V=[].concat(_w(L),_w(N)),W=kw(V),e.p=16,W.s();case 17:if((U=W.n()).done){e.n=20;break}if(q=U.value,(H=q.variation_id?parseInt(q.variation_id):parseInt(q.product_id))===parseInt(o)&&(G=document.querySelector("input.variation_id"))&&G.value&&parseInt(G.value)>0&&(H=parseInt(G.value)),Y=parseInt(q.quantity||1),H===parseInt(R)&&(Y-=1),!(Y<=0)){e.n=18;break}return e.a(3,19);case 18:return X="".concat(d,"?bundle_id=").concat(t.id,"&bundle_type=").concat(t.type),$&&(X+="&bundle_parent=".concat($)),q._is_offer&&(X+="&is_offer=1","free_gift"!==(null===(K=t.settings)||void 0===K?void 0:K.bxgy_offer_type)&&"free_gift"!==(null===(J=t.settings)||void 0===J?void 0:J.offer_type)||(X+="&is_free=1")),e.n=19,b(X,{id:H,quantity:Y});case 19:e.n=17;break;case 20:e.n=22;break;case 21:e.p=21,ee=e.v,W.e(ee);case 22:return e.p=22,W.f(),e.f(22);case 23:m(function(e){return jw(jw({},e),{},Tw({},t.id,"done"))}),Z=(null===(s=window.bundlePressData)||void 0===s||null===(s=s.customizations)||void 0===s||null===(s=s.general)||void 0===s?void 0:s.cart_success_message)||"🛒 Bundle added to cart!",g({title:Z,status:"success",duration:3e3,isClosable:!0,position:"bottom-center"}),window.jQuery&&window.jQuery(document.body).trigger("wc_fragment_refresh"),document.body.dispatchEvent(new CustomEvent("wc_fragment_refresh")),setTimeout(function(){return m(function(e){return jw(jw({},e),{},Tw({},t.id,"idle"))})},2500),e.n=25;break;case 24:e.p=24,e.v,m(function(e){return jw(jw({},e),{},Tw({},t.id,"idle"))}),g({title:"Could not add bundle to cart",status:"error",duration:4e3,isClosable:!0,position:"bottom-center"});case 25:return e.a(2)}},e,null,[[16,21,22,23],[2,8,9,10],[1,24]])}));return function(t){return e.apply(this,arguments)}}();if((0,t.useEffect)(function(){var e=function(){var e=Rw(Ew().m(function e(){var t,r,n,i,s,l,u,d,f,h,m;return Ew().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n=(null===(t=window.bundlePressData)||void 0===t?void 0:t.restUrl)||(null===(r=window.bundlePressData)||void 0===r||null===(r=r.apiUrl)||void 0===r?void 0:r.replace(/bundlepress\/v1\/?$/,""))||"/wp-json/",i="".concat(n,"bundlepress/v1/bundles-by-product/").concat(o),e.n=1,fetch(i,{headers:{Accept:"application/json"}});case 1:if((s=e.v).ok){e.n=2;break}return e.a(2);case 2:return e.n=3,s.json();case 3:(l=e.v).success&&l.data.length>0&&(d=(d=(d=l.data).filter(function(e){return e.product_id!==parseInt(o)})).filter(function(e){return"fixed"!==e.type}),"cart"===a&&(d=d.filter(function(e){return"volume"!==e.type})),c(d),f=(null===(u=window.bundlePressData)||void 0===u?void 0:u.restUrl)||"/wp-json/",h="".concat(f,"bundlepress/v1/analytics/track"),d.forEach(function(e){fetch(h,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({bundle_id:e.id,type:"view"})}).catch(function(){})})),e.n=5;break;case 4:e.p=4,m=e.v,console.error("BundlePress upsell error:",m);case 5:return e.p=5,p(!1),e.f(5);case 6:return e.a(2)}},e,null,[[0,4,5,6]])}));return function(){return e.apply(this,arguments)}}();o&&e()},[o,a]),d)return n().createElement(Ov,{mt:6,p:4,borderWidth:"1px",borderRadius:"xl"},n().createElement(Vv,{h:"20px",w:"200px",mb:3}),n().createElement(Vv,{h:"80px",w:"100%"}));if(!l.length)return null;var y=(null===(r=window.bundlePressData)||void 0===r?void 0:r.currencySymbol)||"$";return n().createElement(Iv,{spacing:6,align:"stretch",mt:8},l.map(function(e){var t,r={key:e.id,bundle:e,productId:o,addBundleToCart:b,addingToCart:h,currencySymbol:y};switch(e.type){case"volume":t=n().createElement(Sw,r);break;case"mixmatch":t=n().createElement(lw,r);break;case"fbt":t=n().createElement(JS,r);break;case"bxgy":t=n().createElement(pS,r);break;default:t=null}return n().createElement(Ov,{key:e.id,borderWidth:"1px",borderRadius:"3xl",overflow:"hidden",borderColor:"blue.100",boxShadow:"0 8px 30px rgba(66, 153, 225, 0.08)",bg:"white"},t)}))};if(console.log("%cProduct bundles, powered by Bundlepress.","background: #ff0055; color: #ffffff; padding: 5px 12px; border-radius: 8px; font-weight: bold; font-family: sans-serif; display: inline-block; margin: 4px 0;"),window.bundlePressData&&Rv){var Iw=window.bundlePressData.restUrl;Iw&&!Iw.endsWith("/")&&(Iw+="/"),Rv.defaults.baseURL=Iw+"bundlepress/v1/"}document.querySelectorAll("#bundlepress-bundle-root").forEach(function(e){var r=e.dataset.productId;r&&(0,o.H)(e).render(t.createElement(fb,null,t.createElement(oS,{productId:r})))}),document.querySelectorAll(".bundlepress-upsell-root").forEach(function(e){var r=e.dataset.productId,n=e.dataset.context||"product";r&&(0,o.H)(e).render(t.createElement(fb,null,t.createElement(Bw,{productId:r,context:n})))})})()})();