@w3payments/react 1.5.4 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/W3PaymentWidget.d.ts +2 -0
- package/dist/components/W3PaymentWidget.d.ts.map +1 -1
- package/dist/index.js +10 -10
- package/dist/index.mjs +1897 -1850
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";require('./assets/main.css');var gl=Object.defineProperty,yl=Object.defineProperties;var vl=Object.getOwnPropertyDescriptors;var
|
|
1
|
+
"use strict";require('./assets/main.css');var gl=Object.defineProperty,yl=Object.defineProperties;var vl=Object.getOwnPropertyDescriptors;var qe=Object.getOwnPropertySymbols;var Ui=Object.prototype.hasOwnProperty,Wi=Object.prototype.propertyIsEnumerable;var Ke=Math.pow,zi=(t,e,n)=>e in t?gl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,p=(t,e)=>{for(var n in e||(e={}))Ui.call(e,n)&&zi(t,n,e[n]);if(qe)for(var n of qe(e))Wi.call(e,n)&&zi(t,n,e[n]);return t},V=(t,e)=>yl(t,vl(e));var z=(t,e)=>{var n={};for(var r in t)Ui.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&qe)for(var r of qe(t))e.indexOf(r)<0&&Wi.call(t,r)&&(n[r]=t[r]);return n};var zt=(t,e,n)=>new Promise((r,i)=>{var s=c=>{try{a(n.next(c))}catch(l){i(l)}},o=c=>{try{a(n.throw(c))}catch(l){i(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,o);a((n=n.apply(t,e)).next())});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const S=require("react"),bl=require("react-dom");function xl(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const vn=xl(S);function wl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ye={exports:{}},Pe={};var Hi;function Cl(){if(Hi)return Pe;Hi=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,s){var o=null;if(s!==void 0&&(o=""+s),i.key!==void 0&&(o=""+i.key),"key"in i){s={};for(var a in i)a!=="key"&&(s[a]=i[a])}else s=i;return i=s.ref,{$$typeof:t,type:r,key:o,ref:i!==void 0?i:null,props:s}}return Pe.Fragment=e,Pe.jsx=n,Pe.jsxs=n,Pe}var Ae={};var Gi;function Tl(){return Gi||(Gi=1,process.env.NODE_ENV!=="production"&&(function(){function t(E){if(E==null)return null;if(typeof E=="function")return E.$$typeof===D?null:E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case b:return"Fragment";case w:return"Profiler";case v:return"StrictMode";case P:return"Suspense";case A:return"SuspenseList";case j:return"Activity"}if(typeof E=="object")switch(typeof E.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),E.$$typeof){case y:return"Portal";case T:return E.displayName||"Context";case x:return(E._context.displayName||"Context")+".Consumer";case M:var O=E.render;return E=E.displayName,E||(E=O.displayName||O.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case C:return O=E.displayName||null,O!==null?O:t(E.type)||"Memo";case R:O=E._payload,E=E._init;try{return t(E(O))}catch(U){}}return null}function e(E){return""+E}function n(E){try{e(E);var O=!1}catch(ht){O=!0}if(O){O=console;var U=O.error,H=typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return U.call(O,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",H),e(E)}}function r(E){if(E===b)return"<>";if(typeof E=="object"&&E!==null&&E.$$typeof===R)return"<...>";try{var O=t(E);return O?"<"+O+">":"<...>"}catch(U){return"<...>"}}function i(){var E=I.A;return E===null?null:E.getOwner()}function s(){return Error("react-stack-top-frame")}function o(E){if(L.call(E,"key")){var O=Object.getOwnPropertyDescriptor(E,"key").get;if(O&&O.isReactWarning)return!1}return E.key!==void 0}function a(E,O){function U(){dt||(dt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",O))}U.isReactWarning=!0,Object.defineProperty(E,"key",{get:U,configurable:!0})}function c(){var E=t(this.type);return G[E]||(G[E]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),E=this.props.ref,E!==void 0?E:null}function l(E,O,U,H,ht,wt){var _=U.ref;return E={$$typeof:m,type:E,key:O,props:U,_owner:H},(_!==void 0?_:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:c}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(E,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(E,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ht}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:wt}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function u(E,O,U,H,ht,wt){var _=O.children;if(_!==void 0)if(H)if(B(_)){for(H=0;H<_.length;H++)f(_[H]);Object.freeze&&Object.freeze(_)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(_);if(L.call(O,"key")){_=t(E);var Q=Object.keys(O).filter(function(W){return W!=="key"});H=0<Q.length?"{key: someKey, "+Q.join(": ..., ")+": ...}":"{key: someKey}",it[_+H]||(Q=0<Q.length?"{"+Q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,q,U,N,U),rt[U+q]=!0)}if(U=null,z!==void 0&&(n(z),U=""+z),o(O)&&(n(O.key),U=""+O.key),"key"in O){z={};for(var _ in O)_!=="key"&&(z[_]=O[_])}else z=O;return U&&a(z,typeof E=="function"?E.displayName||E.name||"Unknown":E),l(E,U,z,i(),dt,Pt)}function f(E){d(E)?E._store&&(E._store.validated=1):typeof E=="object"&&E!==null&&E.$$typeof===R&&(E._payload.status==="fulfilled"?d(E._payload.value)&&E._payload.value._store&&(E._payload.value._store.validated=1):E._store&&(E._store.validated=1))}function d(E){return typeof E=="object"&&E!==null&&E.$$typeof===m}var h=S,m=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),T=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),I=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,B=Array.isArray,et=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(E){return E()}};var lt,H={},K=h.react_stack_bottom_frame.bind(h,s)(),it=et(r(s)),rt={};Pe.Fragment=b,Pe.jsx=function(E,O,z){var q=1e4>I.recentlyCreatedOwnerStacks++;return u(E,O,z,!1,q?Error("react-stack-top-frame"):K,q?et(r(E)):it)},Pe.jsxs=function(E,O,z){var q=1e4>I.recentlyCreatedOwnerStacks++;return u(E,O,z,!0,q?Error("react-stack-top-frame"):K,q?et(r(E)):it)}})()),Pe}var Gi;function Sl(){return Gi||(Gi=1,process.env.NODE_ENV==="production"?Ke.exports=Cl():Ke.exports=Tl()),Ke.exports}var g=Sl();function Rt(t){return Object.keys(t)}function An(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Gr(t,e){const n=p({},t),r=e;return An(t)&&An(e)&&Object.keys(e).forEach(i=>{An(r[i])&&i in t?n[i]=Gr(n[i],r[i]):n[i]=r[i]}),n}function Pl(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function Al(t){var e;return typeof t!="string"||!t.includes("var(--mantine-scale)")?t:(e=t.match(/^calc\((.*?)\)$/))==null?void 0:e[1].split("*")[0].trim()}function El(t){const e=Al(t);return typeof e=="number"?e:typeof e=="string"?e.includes("calc")||e.includes("var")?e:e.includes("px")?Number(e.replace("px","")):e.includes("rem")?Number(e.replace("rem",""))*16:e.includes("em")?Number(e.replace("em",""))*16:Number(e):NaN}function qi(t){return t==="0rem"?"0rem":`calc(${t} * var(--mantine-scale))`}function ea(t,{shouldScale:e=!1}={}){function n(r){if(r===0||r==="0")return`0${t}`;if(typeof r=="number"){const i=`${r/16}${t}`;return e?qi(i):i}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(s=>n(s)).join(",");if(r.includes(" "))return r.split(" ").map(s=>n(s)).join(" ");const i=r.replace("px","");if(!Number.isNaN(Number(i))){const s=`${Number(i)/16}${t}`;return e?qi(s):s}}return r}return n}const k=ea("rem",{shouldScale:!0}),Ki=ea("em");function qr(t){return Object.keys(t).reduce((e,n)=>(t[n]!==void 0&&(e[n]=t[n]),e),{})}function na(t){if(typeof t=="number")return!0;if(typeof t=="string"){if(t.startsWith("calc(")||t.startsWith("var(")||t.includes(" ")&&t.trim()!=="")return!0;const e=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return t.trim().split(/\s+/).every(r=>e.test(r))}return!1}function kt(t,e="size",n=!0){if(t!==void 0)return na(t)?n?k(t):t:`var(--${e}-${t})`}function vn(t){return kt(t,"mantine-spacing")}function Fe(t){return t===void 0?"var(--mantine-radius-default)":kt(t,"mantine-radius")}function ra(t){return kt(t,"mantine-font-size")}function Rl(t){return kt(t,"mantine-line-height",!1)}function Ml(t){if(t)return kt(t,"mantine-shadow",!1)}function kl(t,e){try{return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}catch(n){return t.addListener(e),()=>t.removeListener(e)}}function Dl(t,e){return typeof window!="undefined"&&"matchMedia"in window?window.matchMedia(t).matches:!1}function jl(t,e,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,i]=S.useState(n?e:Dl(t));return S.useEffect(()=>{try{const s=window.matchMedia(t);return i(s.matches),kl(s,o=>i(o.matches))}catch(s){return}},[t]),r||!1}const ia=typeof document!="undefined"?S.useLayoutEffect:S.useEffect;function Vl(t,e){const n=S.useRef(!1);S.useEffect(()=>()=>{n.current=!1},[]),S.useEffect(()=>{if(n.current)return t();n.current=!0},e)}function Il(t,e){return jl("(prefers-reduced-motion: reduce)",t,e)}function sa(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=sa(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Yt(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=sa(t))&&(r&&(r+=" "),r+=e);return r}const Nl={};function Ll(t){const e={};return t.forEach(n=>{Object.entries(n).forEach(([r,i])=>{e[r]?e[r]=Yt(e[r],i):e[r]=i})}),e}function Kr({theme:t,classNames:e,props:n,stylesCtx:r}){const s=(Array.isArray(e)?e:[e]).map(o=>typeof o=="function"?o(t,n,r):o||Nl);return Ll(s)}function yr({theme:t,styles:e,props:n,stylesCtx:r}){return(Array.isArray(e)?e:[e]).reduce((s,o)=>typeof o=="function"?p(p({},s),o(t,n,r)):p(p({},s),o),{})}const oa=S.createContext(null);function Ot(){const t=S.useContext(oa);if(!t)throw new Error("[@mantine/core] MantineProvider was not found in tree");return t}function Bl(){return Ot().cssVariablesResolver}function $l(){return Ot().classNamesPrefix}function Yr(){return Ot().getStyleNonce}function Ol(){return Ot().withStaticClasses}function Fl(){return Ot().headless}function _l(){var t;return(t=Ot().stylesTransform)==null?void 0:t.sx}function Ul(){var t;return(t=Ot().stylesTransform)==null?void 0:t.styles}function zl(){return Ot().env||"default"}function Wl(t){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t)}function Hl(t){let e=t.replace("#","");if(e.length===3){const o=e.split("");e=[o[0],o[0],o[1],o[1],o[2],o[2]].join("")}if(e.length===8){const o=parseInt(e.slice(6,8),16)/255;return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16),a:o}}const n=parseInt(e,16),r=n>>16&255,i=n>>8&255,s=n&255;return{r,g:i,b:s,a:1}}function Gl(t){const[e,n,r,i]=t.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:e,g:n,b:r,a:i===void 0?1:i}}function ql(t){const e=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=t.match(e);if(!n)return{r:0,g:0,b:0,a:1};const r=parseInt(n[1],10),i=parseInt(n[2],10)/100,s=parseInt(n[3],10)/100,o=n[5]?parseFloat(n[5]):void 0,a=(1-Math.abs(2*s-1))*i,c=r/60,l=a*(1-Math.abs(c%2-1)),u=s-a/2;let f,d,h;return c>=0&&c<1?(f=a,d=l,h=0):c>=1&&c<2?(f=l,d=a,h=0):c>=2&&c<3?(f=0,d=a,h=l):c>=3&&c<4?(f=0,d=l,h=a):c>=4&&c<5?(f=l,d=0,h=a):(f=a,d=0,h=l),{r:Math.round((f+u)*255),g:Math.round((d+u)*255),b:Math.round((h+u)*255),a:o||1}}function Xr(t){return Wl(t)?Hl(t):t.startsWith("rgb")?Gl(t):t.startsWith("hsl")?ql(t):{r:0,g:0,b:0,a:1}}function Ye(t,e){if(t.startsWith("var("))return`color-mix(in srgb, ${t}, black ${e*100}%)`;const{r:n,g:r,b:i,a:s}=Xr(t),o=1-e,a=c=>Math.round(c*o);return`rgba(${a(n)}, ${a(r)}, ${a(i)}, ${s})`}function Ie(t,e){return typeof t.primaryShade=="number"?t.primaryShade:e==="dark"?t.primaryShade.dark:t.primaryShade.light}function En(t){return t<=.03928?t/12.92:qe((t+.055)/1.055,2.4)}function Kl(t){const e=t.match(/oklch\((.*?)%\s/);return e?parseFloat(e[1]):null}function Yl(t){if(t.startsWith("oklch("))return(Kl(t)||0)/100;const{r:e,g:n,b:r}=Xr(t),i=e/255,s=n/255,o=r/255,a=En(i),c=En(s),l=En(o);return .2126*a+.7152*c+.0722*l}function Ae(t,e=.179){return t.startsWith("var(")?!1:Yl(t)>e}function _e({color:t,theme:e,colorScheme:n}){if(typeof t!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof t}`);if(t==="bright")return{color:t,value:n==="dark"?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:Ae(n==="dark"?e.white:e.black,e.luminanceThreshold),variable:"--mantine-color-bright"};if(t==="dimmed")return{color:t,value:n==="dark"?e.colors.dark[2]:e.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Ae(n==="dark"?e.colors.dark[2]:e.colors.gray[6],e.luminanceThreshold),variable:"--mantine-color-dimmed"};if(t==="white"||t==="black")return{color:t,value:t==="white"?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:Ae(t==="white"?e.white:e.black,e.luminanceThreshold),variable:`--mantine-color-${t}`};const[r,i]=t.split("."),s=i?Number(i):void 0,o=r in e.colors;if(o){const a=s!==void 0?e.colors[r][s]:e.colors[r][Ie(e,n||"light")];return{color:r,value:a,shade:s,isThemeColor:o,isLight:Ae(a,e.luminanceThreshold),variable:i?`--mantine-color-${r}-${s}`:`--mantine-color-${r}-filled`}}return{color:t,value:t,isThemeColor:o,isLight:Ae(t,e.luminanceThreshold),shade:s,variable:void 0}}function cn(t,e){const n=_e({color:t||e.primaryColor,theme:e});return n.variable?`var(${n.variable})`:t}function vr(t,e){var s,o;const n={from:(t==null?void 0:t.from)||e.defaultGradient.from,to:(t==null?void 0:t.to)||e.defaultGradient.to,deg:(o=(s=t==null?void 0:t.deg)!=null?s:e.defaultGradient.deg)!=null?o:0},r=cn(n.from,e),i=cn(n.to,e);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function Dt(t,e){if(typeof t!="string"||e>1||e<0)return"rgba(0, 0, 0, 1)";if(t.startsWith("var(")){const s=(1-e)*100;return`color-mix(in srgb, ${t}, transparent ${s}%)`}if(t.startsWith("oklch"))return t.includes("/")?t.replace(/\/\s*[\d.]+\s*\)/,`/ ${e})`):t.replace(")",` / ${e})`);const{r:n,g:r,b:i}=Xr(t);return`rgba(${n}, ${r}, ${i}, ${e})`}const te=Dt,Xl=({color:t,theme:e,variant:n,gradient:r,autoContrast:i})=>{const s=_e({color:t,theme:e}),o=typeof i=="boolean"?i:e.autoContrast;if(n==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(n==="filled"){const a=o&&s.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return s.isThemeColor?s.shade===void 0?{background:`var(--mantine-color-${t}-filled)`,hover:`var(--mantine-color-${t}-filled-hover)`,color:a,border:`${k(1)} solid transparent`}:{background:`var(--mantine-color-${s.color}-${s.shade})`,hover:`var(--mantine-color-${s.color}-${s.shade===9?8:s.shade+1})`,color:a,border:`${k(1)} solid transparent`}:{background:t,hover:Ye(t,.1),color:a,border:`${k(1)} solid transparent`}}if(n==="light"){if(s.isThemeColor){if(s.shade===void 0)return{background:`var(--mantine-color-${t}-light)`,hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${k(1)} solid transparent`};const a=e.colors[s.color][s.shade];return{background:Dt(a,.1),hover:Dt(a,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${k(1)} solid transparent`}}return{background:Dt(t,.1),hover:Dt(t,.12),color:t,border:`${k(1)} solid transparent`}}if(n==="outline")return s.isThemeColor?s.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${t}-outline-hover)`,color:`var(--mantine-color-${t}-outline)`,border:`${k(1)} solid var(--mantine-color-${t}-outline)`}:{background:"transparent",hover:Dt(e.colors[s.color][s.shade],.05),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${k(1)} solid var(--mantine-color-${s.color}-${s.shade})`}:{background:"transparent",hover:Dt(t,.05),color:t,border:`${k(1)} solid ${t}`};if(n==="subtle"){if(s.isThemeColor){if(s.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${k(1)} solid transparent`};const a=e.colors[s.color][s.shade];return{background:"transparent",hover:Dt(a,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${k(1)} solid transparent`}}return{background:"transparent",hover:Dt(t,.12),color:t,border:`${k(1)} solid transparent`}}return n==="transparent"?s.isThemeColor?s.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${t}-light-color)`,border:`${k(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${k(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:t,border:`${k(1)} solid transparent`}:n==="white"?s.isThemeColor?s.shade===void 0?{background:"var(--mantine-color-white)",hover:Ye(e.white,.01),color:`var(--mantine-color-${t}-filled)`,border:`${k(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Ye(e.white,.01),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${k(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Ye(e.white,.01),color:t,border:`${k(1)} solid transparent`}:n==="gradient"?{background:vr(r,e),hover:vr(r,e),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${k(1)} solid var(--mantine-color-default-border)`}:{}},Zl={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},Yi="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",Zr={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:Zl,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:Xl,autoContrast:!1,luminanceThreshold:.3,fontFamily:Yi,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:Yi,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:k(34),lineHeight:"1.3"},h2:{fontSize:k(26),lineHeight:"1.35"},h3:{fontSize:k(22),lineHeight:"1.4"},h4:{fontSize:k(18),lineHeight:"1.45"},h5:{fontSize:k(16),lineHeight:"1.5"},h6:{fontSize:k(14),lineHeight:"1.5"}}},fontSizes:{xs:k(12),sm:k(14),md:k(16),lg:k(18),xl:k(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:k(2),sm:k(4),md:k(8),lg:k(16),xl:k(32)},spacing:{xs:k(10),sm:k(12),md:k(16),lg:k(20),xl:k(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${k(1)} ${k(3)} rgba(0, 0, 0, 0.05), 0 ${k(1)} ${k(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${k(1)} ${k(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${k(10)} ${k(15)} ${k(-5)}, rgba(0, 0, 0, 0.04) 0 ${k(7)} ${k(7)} ${k(-5)}`,md:`0 ${k(1)} ${k(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${k(20)} ${k(25)} ${k(-5)}, rgba(0, 0, 0, 0.04) 0 ${k(10)} ${k(10)} ${k(-5)}`,lg:`0 ${k(1)} ${k(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${k(28)} ${k(23)} ${k(-7)}, rgba(0, 0, 0, 0.04) 0 ${k(12)} ${k(12)} ${k(-7)}`,xl:`0 ${k(1)} ${k(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${k(36)} ${k(28)} ${k(-7)}, rgba(0, 0, 0, 0.04) 0 ${k(17)} ${k(17)} ${k(-7)}`},other:{},components:{}};function Xi(t){return t==="auto"||t==="dark"||t==="light"}function Jl({key:t="mantine-color-scheme-value"}={}){let e;return{get:n=>{if(typeof window=="undefined")return n;try{const r=window.localStorage.getItem(t);return Xi(r)?r:n}catch(r){return n}},set:n=>{try{window.localStorage.setItem(t,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:n=>{e=r=>{r.storageArea===window.localStorage&&r.key===t&&Xi(r.newValue)&&n(r.newValue)},window.addEventListener("storage",e)},unsubscribe:()=>{window.removeEventListener("storage",e)},clear:()=>{window.localStorage.removeItem(t)}}}const Ql="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",Zi="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function Rn(t){return t<0||t>9?!1:parseInt(t.toString(),10)===t}function Ji(t){if(!(t.primaryColor in t.colors))throw new Error(Ql);if(typeof t.primaryShade=="object"&&(!Rn(t.primaryShade.dark)||!Rn(t.primaryShade.light)))throw new Error(Zi);if(typeof t.primaryShade=="number"&&!Rn(t.primaryShade))throw new Error(Zi)}function tu(t,e){var r;if(!e)return Ji(t),t;const n=Gr(t,e);return e.fontFamily&&!((r=e.headings)!=null&&r.fontFamily)&&(n.headings.fontFamily=e.fontFamily),Ji(n),n}const Jr=S.createContext(null),eu=()=>S.useContext(Jr)||Zr;function Xt(){const t=S.useContext(Jr);if(!t)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return t}function aa({theme:t,children:e,inherit:n=!0}){const r=eu(),i=S.useMemo(()=>tu(n?r:Zr,t),[t,r,n]);return g.jsx(Jr.Provider,{value:i,children:e})}aa.displayName="@mantine/core/MantineThemeProvider";function nu(){const t=Xt(),e=Yr(),n=Rt(t.breakpoints).reduce((r,i)=>{const s=t.breakpoints[i].includes("px"),o=El(t.breakpoints[i]),a=s?`${o-.1}px`:Ki(o-.1),c=s?`${o}px`:Ki(o);return`${r}@media (max-width: ${a}) {.mantine-visible-from-${i} {display: none !important;}}@media (min-width: ${c}) {.mantine-hidden-from-${i} {display: none !important;}}`},"");return g.jsx("style",{"data-mantine-styles":"classes",nonce:e==null?void 0:e(),dangerouslySetInnerHTML:{__html:n}})}function Mn(t){return Object.entries(t).map(([e,n])=>`${e}: ${n};`).join("")}function ca(t,e){const n=e?[e]:[":root",":host"],r=Mn(t.variables),i=r?`${n.join(", ")}{${r}}`:"",s=Mn(t.dark),o=Mn(t.light),a=u=>n.map(f=>f===":host"?`${f}([data-mantine-color-scheme="${u}"])`:`${f}[data-mantine-color-scheme="${u}"]`).join(", "),c=s?`${a("dark")}{${s}}`:"",l=o?`${a("light")}{${o}}`:"";return`${i}
|
|
6
|
+
<%s key={someKey} {...props} />`,H,_,Q,_),it[_+H]=!0)}if(_=null,U!==void 0&&(n(U),_=""+U),o(O)&&(n(O.key),_=""+O.key),"key"in O){U={};for(var N in O)N!=="key"&&(U[N]=O[N])}else U=O;return _&&a(U,typeof E=="function"?E.displayName||E.name||"Unknown":E),l(E,_,U,i(),ht,wt)}function f(E){d(E)?E._store&&(E._store.validated=1):typeof E=="object"&&E!==null&&E.$$typeof===R&&(E._payload.status==="fulfilled"?d(E._payload.value)&&E._payload.value._store&&(E._payload.value._store.validated=1):E._store&&(E._store.validated=1))}function d(E){return typeof E=="object"&&E!==null&&E.$$typeof===m}var h=S,m=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),T=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),D=Symbol.for("react.client.reference"),I=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,B=Array.isArray,et=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(E){return E()}};var dt,G={},X=h.react_stack_bottom_frame.bind(h,s)(),rt=et(r(s)),it={};Ae.Fragment=b,Ae.jsx=function(E,O,U){var H=1e4>I.recentlyCreatedOwnerStacks++;return u(E,O,U,!1,H?Error("react-stack-top-frame"):X,H?et(r(E)):rt)},Ae.jsxs=function(E,O,U){var H=1e4>I.recentlyCreatedOwnerStacks++;return u(E,O,U,!0,H?Error("react-stack-top-frame"):X,H?et(r(E)):rt)}})()),Ae}var qi;function Sl(){return qi||(qi=1,process.env.NODE_ENV==="production"?Ye.exports=Cl():Ye.exports=Tl()),Ye.exports}var g=Sl();function Mt(t){return Object.keys(t)}function En(t){return t&&typeof t=="object"&&!Array.isArray(t)}function qr(t,e){const n=p({},t),r=e;return En(t)&&En(e)&&Object.keys(e).forEach(i=>{En(r[i])&&i in t?n[i]=qr(n[i],r[i]):n[i]=r[i]}),n}function Pl(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function Al(t){var e;return typeof t!="string"||!t.includes("var(--mantine-scale)")?t:(e=t.match(/^calc\((.*?)\)$/))==null?void 0:e[1].split("*")[0].trim()}function El(t){const e=Al(t);return typeof e=="number"?e:typeof e=="string"?e.includes("calc")||e.includes("var")?e:e.includes("px")?Number(e.replace("px","")):e.includes("rem")?Number(e.replace("rem",""))*16:e.includes("em")?Number(e.replace("em",""))*16:Number(e):NaN}function Ki(t){return t==="0rem"?"0rem":`calc(${t} * var(--mantine-scale))`}function na(t,{shouldScale:e=!1}={}){function n(r){if(r===0||r==="0")return`0${t}`;if(typeof r=="number"){const i=`${r/16}${t}`;return e?Ki(i):i}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(s=>n(s)).join(",");if(r.includes(" "))return r.split(" ").map(s=>n(s)).join(" ");const i=r.replace("px","");if(!Number.isNaN(Number(i))){const s=`${Number(i)/16}${t}`;return e?Ki(s):s}}return r}return n}const k=na("rem",{shouldScale:!0}),Yi=na("em");function Kr(t){return Object.keys(t).reduce((e,n)=>(t[n]!==void 0&&(e[n]=t[n]),e),{})}function ra(t){if(typeof t=="number")return!0;if(typeof t=="string"){if(t.startsWith("calc(")||t.startsWith("var(")||t.includes(" ")&&t.trim()!=="")return!0;const e=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return t.trim().split(/\s+/).every(r=>e.test(r))}return!1}function jt(t,e="size",n=!0){if(t!==void 0)return ra(t)?n?k(t):t:`var(--${e}-${t})`}function bn(t){return jt(t,"mantine-spacing")}function _e(t){return t===void 0?"var(--mantine-radius-default)":jt(t,"mantine-radius")}function ia(t){return jt(t,"mantine-font-size")}function Rl(t){return jt(t,"mantine-line-height",!1)}function Ml(t){if(t)return jt(t,"mantine-shadow",!1)}function kl(t,e){try{return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}catch(n){return t.addListener(e),()=>t.removeListener(e)}}function jl(t,e){return typeof window!="undefined"&&"matchMedia"in window?window.matchMedia(t).matches:!1}function Dl(t,e,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,i]=S.useState(n?e:jl(t));return S.useEffect(()=>{try{const s=window.matchMedia(t);return i(s.matches),kl(s,o=>i(o.matches))}catch(s){return}},[t]),r||!1}const sa=typeof document!="undefined"?S.useLayoutEffect:S.useEffect;function Vl(t,e){const n=S.useRef(!1);S.useEffect(()=>()=>{n.current=!1},[]),S.useEffect(()=>{if(n.current)return t();n.current=!0},e)}function Il(t,e){return Dl("(prefers-reduced-motion: reduce)",t,e)}function oa(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=oa(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Zt(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=oa(t))&&(r&&(r+=" "),r+=e);return r}const Nl={};function Ll(t){const e={};return t.forEach(n=>{Object.entries(n).forEach(([r,i])=>{e[r]?e[r]=Zt(e[r],i):e[r]=i})}),e}function Yr({theme:t,classNames:e,props:n,stylesCtx:r}){const s=(Array.isArray(e)?e:[e]).map(o=>typeof o=="function"?o(t,n,r):o||Nl);return Ll(s)}function vr({theme:t,styles:e,props:n,stylesCtx:r}){return(Array.isArray(e)?e:[e]).reduce((s,o)=>typeof o=="function"?p(p({},s),o(t,n,r)):p(p({},s),o),{})}const aa=S.createContext(null);function Ft(){const t=S.useContext(aa);if(!t)throw new Error("[@mantine/core] MantineProvider was not found in tree");return t}function Bl(){return Ft().cssVariablesResolver}function $l(){return Ft().classNamesPrefix}function Xr(){return Ft().getStyleNonce}function Ol(){return Ft().withStaticClasses}function Fl(){return Ft().headless}function _l(){var t;return(t=Ft().stylesTransform)==null?void 0:t.sx}function zl(){var t;return(t=Ft().stylesTransform)==null?void 0:t.styles}function Ul(){return Ft().env||"default"}function Wl(t){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t)}function Hl(t){let e=t.replace("#","");if(e.length===3){const o=e.split("");e=[o[0],o[0],o[1],o[1],o[2],o[2]].join("")}if(e.length===8){const o=parseInt(e.slice(6,8),16)/255;return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16),a:o}}const n=parseInt(e,16),r=n>>16&255,i=n>>8&255,s=n&255;return{r,g:i,b:s,a:1}}function Gl(t){const[e,n,r,i]=t.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:e,g:n,b:r,a:i===void 0?1:i}}function ql(t){const e=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=t.match(e);if(!n)return{r:0,g:0,b:0,a:1};const r=parseInt(n[1],10),i=parseInt(n[2],10)/100,s=parseInt(n[3],10)/100,o=n[5]?parseFloat(n[5]):void 0,a=(1-Math.abs(2*s-1))*i,c=r/60,l=a*(1-Math.abs(c%2-1)),u=s-a/2;let f,d,h;return c>=0&&c<1?(f=a,d=l,h=0):c>=1&&c<2?(f=l,d=a,h=0):c>=2&&c<3?(f=0,d=a,h=l):c>=3&&c<4?(f=0,d=l,h=a):c>=4&&c<5?(f=l,d=0,h=a):(f=a,d=0,h=l),{r:Math.round((f+u)*255),g:Math.round((d+u)*255),b:Math.round((h+u)*255),a:o||1}}function Zr(t){return Wl(t)?Hl(t):t.startsWith("rgb")?Gl(t):t.startsWith("hsl")?ql(t):{r:0,g:0,b:0,a:1}}function Xe(t,e){if(t.startsWith("var("))return`color-mix(in srgb, ${t}, black ${e*100}%)`;const{r:n,g:r,b:i,a:s}=Zr(t),o=1-e,a=c=>Math.round(c*o);return`rgba(${a(n)}, ${a(r)}, ${a(i)}, ${s})`}function Ne(t,e){return typeof t.primaryShade=="number"?t.primaryShade:e==="dark"?t.primaryShade.dark:t.primaryShade.light}function Rn(t){return t<=.03928?t/12.92:Ke((t+.055)/1.055,2.4)}function Kl(t){const e=t.match(/oklch\((.*?)%\s/);return e?parseFloat(e[1]):null}function Yl(t){if(t.startsWith("oklch("))return(Kl(t)||0)/100;const{r:e,g:n,b:r}=Zr(t),i=e/255,s=n/255,o=r/255,a=Rn(i),c=Rn(s),l=Rn(o);return .2126*a+.7152*c+.0722*l}function Ee(t,e=.179){return t.startsWith("var(")?!1:Yl(t)>e}function ze({color:t,theme:e,colorScheme:n}){if(typeof t!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof t}`);if(t==="bright")return{color:t,value:n==="dark"?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:Ee(n==="dark"?e.white:e.black,e.luminanceThreshold),variable:"--mantine-color-bright"};if(t==="dimmed")return{color:t,value:n==="dark"?e.colors.dark[2]:e.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Ee(n==="dark"?e.colors.dark[2]:e.colors.gray[6],e.luminanceThreshold),variable:"--mantine-color-dimmed"};if(t==="white"||t==="black")return{color:t,value:t==="white"?e.white:e.black,shade:void 0,isThemeColor:!1,isLight:Ee(t==="white"?e.white:e.black,e.luminanceThreshold),variable:`--mantine-color-${t}`};const[r,i]=t.split("."),s=i?Number(i):void 0,o=r in e.colors;if(o){const a=s!==void 0?e.colors[r][s]:e.colors[r][Ne(e,n||"light")];return{color:r,value:a,shade:s,isThemeColor:o,isLight:Ee(a,e.luminanceThreshold),variable:i?`--mantine-color-${r}-${s}`:`--mantine-color-${r}-filled`}}return{color:t,value:t,isThemeColor:o,isLight:Ee(t,e.luminanceThreshold),shade:s,variable:void 0}}function ln(t,e){const n=ze({color:t||e.primaryColor,theme:e});return n.variable?`var(${n.variable})`:t}function br(t,e){var s,o;const n={from:(t==null?void 0:t.from)||e.defaultGradient.from,to:(t==null?void 0:t.to)||e.defaultGradient.to,deg:(o=(s=t==null?void 0:t.deg)!=null?s:e.defaultGradient.deg)!=null?o:0},r=ln(n.from,e),i=ln(n.to,e);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function Dt(t,e){if(typeof t!="string"||e>1||e<0)return"rgba(0, 0, 0, 1)";if(t.startsWith("var(")){const s=(1-e)*100;return`color-mix(in srgb, ${t}, transparent ${s}%)`}if(t.startsWith("oklch"))return t.includes("/")?t.replace(/\/\s*[\d.]+\s*\)/,`/ ${e})`):t.replace(")",` / ${e})`);const{r:n,g:r,b:i}=Zr(t);return`rgba(${n}, ${r}, ${i}, ${e})`}const ne=Dt,Xl=({color:t,theme:e,variant:n,gradient:r,autoContrast:i})=>{const s=ze({color:t,theme:e}),o=typeof i=="boolean"?i:e.autoContrast;if(n==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(n==="filled"){const a=o&&s.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return s.isThemeColor?s.shade===void 0?{background:`var(--mantine-color-${t}-filled)`,hover:`var(--mantine-color-${t}-filled-hover)`,color:a,border:`${k(1)} solid transparent`}:{background:`var(--mantine-color-${s.color}-${s.shade})`,hover:`var(--mantine-color-${s.color}-${s.shade===9?8:s.shade+1})`,color:a,border:`${k(1)} solid transparent`}:{background:t,hover:Xe(t,.1),color:a,border:`${k(1)} solid transparent`}}if(n==="light"){if(s.isThemeColor){if(s.shade===void 0)return{background:`var(--mantine-color-${t}-light)`,hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${k(1)} solid transparent`};const a=e.colors[s.color][s.shade];return{background:Dt(a,.1),hover:Dt(a,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${k(1)} solid transparent`}}return{background:Dt(t,.1),hover:Dt(t,.12),color:t,border:`${k(1)} solid transparent`}}if(n==="outline")return s.isThemeColor?s.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${t}-outline-hover)`,color:`var(--mantine-color-${t}-outline)`,border:`${k(1)} solid var(--mantine-color-${t}-outline)`}:{background:"transparent",hover:Dt(e.colors[s.color][s.shade],.05),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${k(1)} solid var(--mantine-color-${s.color}-${s.shade})`}:{background:"transparent",hover:Dt(t,.05),color:t,border:`${k(1)} solid ${t}`};if(n==="subtle"){if(s.isThemeColor){if(s.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${k(1)} solid transparent`};const a=e.colors[s.color][s.shade];return{background:"transparent",hover:Dt(a,.12),color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${k(1)} solid transparent`}}return{background:"transparent",hover:Dt(t,.12),color:t,border:`${k(1)} solid transparent`}}return n==="transparent"?s.isThemeColor?s.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${t}-light-color)`,border:`${k(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${s.color}-${Math.min(s.shade,6)})`,border:`${k(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:t,border:`${k(1)} solid transparent`}:n==="white"?s.isThemeColor?s.shade===void 0?{background:"var(--mantine-color-white)",hover:Xe(e.white,.01),color:`var(--mantine-color-${t}-filled)`,border:`${k(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Xe(e.white,.01),color:`var(--mantine-color-${s.color}-${s.shade})`,border:`${k(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Xe(e.white,.01),color:t,border:`${k(1)} solid transparent`}:n==="gradient"?{background:br(r,e),hover:br(r,e),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${k(1)} solid var(--mantine-color-default-border)`}:{}},Zl={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},Xi="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",Jr={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:Zl,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:Xl,autoContrast:!1,luminanceThreshold:.3,fontFamily:Xi,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:Xi,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:k(34),lineHeight:"1.3"},h2:{fontSize:k(26),lineHeight:"1.35"},h3:{fontSize:k(22),lineHeight:"1.4"},h4:{fontSize:k(18),lineHeight:"1.45"},h5:{fontSize:k(16),lineHeight:"1.5"},h6:{fontSize:k(14),lineHeight:"1.5"}}},fontSizes:{xs:k(12),sm:k(14),md:k(16),lg:k(18),xl:k(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:k(2),sm:k(4),md:k(8),lg:k(16),xl:k(32)},spacing:{xs:k(10),sm:k(12),md:k(16),lg:k(20),xl:k(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${k(1)} ${k(3)} rgba(0, 0, 0, 0.05), 0 ${k(1)} ${k(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${k(1)} ${k(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${k(10)} ${k(15)} ${k(-5)}, rgba(0, 0, 0, 0.04) 0 ${k(7)} ${k(7)} ${k(-5)}`,md:`0 ${k(1)} ${k(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${k(20)} ${k(25)} ${k(-5)}, rgba(0, 0, 0, 0.04) 0 ${k(10)} ${k(10)} ${k(-5)}`,lg:`0 ${k(1)} ${k(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${k(28)} ${k(23)} ${k(-7)}, rgba(0, 0, 0, 0.04) 0 ${k(12)} ${k(12)} ${k(-7)}`,xl:`0 ${k(1)} ${k(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${k(36)} ${k(28)} ${k(-7)}, rgba(0, 0, 0, 0.04) 0 ${k(17)} ${k(17)} ${k(-7)}`},other:{},components:{}};function Zi(t){return t==="auto"||t==="dark"||t==="light"}function Jl({key:t="mantine-color-scheme-value"}={}){let e;return{get:n=>{if(typeof window=="undefined")return n;try{const r=window.localStorage.getItem(t);return Zi(r)?r:n}catch(r){return n}},set:n=>{try{window.localStorage.setItem(t,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:n=>{e=r=>{r.storageArea===window.localStorage&&r.key===t&&Zi(r.newValue)&&n(r.newValue)},window.addEventListener("storage",e)},unsubscribe:()=>{window.removeEventListener("storage",e)},clear:()=>{window.localStorage.removeItem(t)}}}const Ql="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",Ji="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function Mn(t){return t<0||t>9?!1:parseInt(t.toString(),10)===t}function Qi(t){if(!(t.primaryColor in t.colors))throw new Error(Ql);if(typeof t.primaryShade=="object"&&(!Mn(t.primaryShade.dark)||!Mn(t.primaryShade.light)))throw new Error(Ji);if(typeof t.primaryShade=="number"&&!Mn(t.primaryShade))throw new Error(Ji)}function tu(t,e){var r;if(!e)return Qi(t),t;const n=qr(t,e);return e.fontFamily&&!((r=e.headings)!=null&&r.fontFamily)&&(n.headings.fontFamily=e.fontFamily),Qi(n),n}const Qr=S.createContext(null),eu=()=>S.useContext(Qr)||Jr;function Jt(){const t=S.useContext(Qr);if(!t)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return t}function ca({theme:t,children:e,inherit:n=!0}){const r=eu(),i=S.useMemo(()=>tu(n?r:Jr,t),[t,r,n]);return g.jsx(Qr.Provider,{value:i,children:e})}ca.displayName="@mantine/core/MantineThemeProvider";function nu(){const t=Jt(),e=Xr(),n=Mt(t.breakpoints).reduce((r,i)=>{const s=t.breakpoints[i].includes("px"),o=El(t.breakpoints[i]),a=s?`${o-.1}px`:Yi(o-.1),c=s?`${o}px`:Yi(o);return`${r}@media (max-width: ${a}) {.mantine-visible-from-${i} {display: none !important;}}@media (min-width: ${c}) {.mantine-hidden-from-${i} {display: none !important;}}`},"");return g.jsx("style",{"data-mantine-styles":"classes",nonce:e==null?void 0:e(),dangerouslySetInnerHTML:{__html:n}})}function kn(t){return Object.entries(t).map(([e,n])=>`${e}: ${n};`).join("")}function la(t,e){const n=e?[e]:[":root",":host"],r=kn(t.variables),i=r?`${n.join(", ")}{${r}}`:"",s=kn(t.dark),o=kn(t.light),a=u=>n.map(f=>f===":host"?`${f}([data-mantine-color-scheme="${u}"])`:`${f}[data-mantine-color-scheme="${u}"]`).join(", "),c=s?`${a("dark")}{${s}}`:"",l=o?`${a("light")}{${o}}`:"";return`${i}
|
|
7
7
|
|
|
8
8
|
${c}
|
|
9
9
|
|
|
10
|
-
${l}`}function ru({color:t,theme:e,autoContrast:n}){return e.autoContrast&&_e({color:t||e.primaryColor,theme:e}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function Qi(t,e){return ru({color:t.colors[t.primaryColor][Ie(t,e)],theme:t,autoContrast:null})}function Xe({theme:t,color:e,colorScheme:n,name:r=e,withColorValues:i=!0}){if(!t.colors[e])return{};if(n==="light"){const a=Ie(t,"light"),c={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:te(t.colors[e][a],.1),[`--mantine-color-${r}-light-hover`]:te(t.colors[e][a],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-outline-hover`]:te(t.colors[e][a],.05)};return i?p({[`--mantine-color-${r}-0`]:t.colors[e][0],[`--mantine-color-${r}-1`]:t.colors[e][1],[`--mantine-color-${r}-2`]:t.colors[e][2],[`--mantine-color-${r}-3`]:t.colors[e][3],[`--mantine-color-${r}-4`]:t.colors[e][4],[`--mantine-color-${r}-5`]:t.colors[e][5],[`--mantine-color-${r}-6`]:t.colors[e][6],[`--mantine-color-${r}-7`]:t.colors[e][7],[`--mantine-color-${r}-8`]:t.colors[e][8],[`--mantine-color-${r}-9`]:t.colors[e][9]},c):c}const s=Ie(t,"dark"),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${s})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${s===9?8:s+1})`,[`--mantine-color-${r}-light`]:te(t.colors[e][Math.max(0,s-2)],.15),[`--mantine-color-${r}-light-hover`]:te(t.colors[e][Math.max(0,s-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(s-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(s-4,0)})`,[`--mantine-color-${r}-outline-hover`]:te(t.colors[e][Math.max(s-4,0)],.05)};return i?p({[`--mantine-color-${r}-0`]:t.colors[e][0],[`--mantine-color-${r}-1`]:t.colors[e][1],[`--mantine-color-${r}-2`]:t.colors[e][2],[`--mantine-color-${r}-3`]:t.colors[e][3],[`--mantine-color-${r}-4`]:t.colors[e][4],[`--mantine-color-${r}-5`]:t.colors[e][5],[`--mantine-color-${r}-6`]:t.colors[e][6],[`--mantine-color-${r}-7`]:t.colors[e][7],[`--mantine-color-${r}-8`]:t.colors[e][8],[`--mantine-color-${r}-9`]:t.colors[e][9]},o):o}function iu(t){return!!t&&typeof t=="object"&&"mantine-virtual-color"in t}function ee(t,e,n){Rt(e).forEach(r=>Object.assign(t,{[`--mantine-${n}-${r}`]:e[r]}))}const la=t=>{const e=Ie(t,"light"),n=t.defaultRadius in t.radius?t.radius[t.defaultRadius]:k(t.defaultRadius),r={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":t.scale.toString(),"--mantine-cursor-type":t.cursorType,"--mantine-webkit-font-smoothing":t.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":t.fontSmoothing?"grayscale":"unset","--mantine-color-white":t.white,"--mantine-color-black":t.black,"--mantine-line-height":t.lineHeights.md,"--mantine-font-family":t.fontFamily,"--mantine-font-family-monospace":t.fontFamilyMonospace,"--mantine-font-family-headings":t.headings.fontFamily,"--mantine-heading-font-weight":t.headings.fontWeight,"--mantine-heading-text-wrap":t.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${t.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${t.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${t.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${t.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${t.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":Qi(t,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":t.black,"--mantine-color-body":t.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-${e})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":Qi(t,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};ee(r.variables,t.breakpoints,"breakpoint"),ee(r.variables,t.spacing,"spacing"),ee(r.variables,t.fontSizes,"font-size"),ee(r.variables,t.lineHeights,"line-height"),ee(r.variables,t.shadows,"shadow"),ee(r.variables,t.radius,"radius"),t.colors[t.primaryColor].forEach((s,o)=>{r.variables[`--mantine-primary-color-${o}`]=`var(--mantine-color-${t.primaryColor}-${o})`}),Rt(t.colors).forEach(s=>{const o=t.colors[s];if(iu(o)){Object.assign(r.light,Xe({theme:t,name:o.name,color:o.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,Xe({theme:t,name:o.name,color:o.dark,colorScheme:"dark",withColorValues:!0}));return}o.forEach((a,c)=>{r.variables[`--mantine-color-${s}-${c}`]=a}),Object.assign(r.light,Xe({theme:t,color:s,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,Xe({theme:t,color:s,colorScheme:"dark",withColorValues:!1}))});const i=t.headings.sizes;return Rt(i).forEach(s=>{r.variables[`--mantine-${s}-font-size`]=i[s].fontSize,r.variables[`--mantine-${s}-line-height`]=i[s].lineHeight,r.variables[`--mantine-${s}-font-weight`]=i[s].fontWeight||t.headings.fontWeight}),r};function su({theme:t,generator:e}){const n=la(t),r=e==null?void 0:e(t);return r?Gr(n,r):n}const kn=la(Zr);function ou(t){const e={variables:{},light:{},dark:{}};return Rt(t.variables).forEach(n=>{kn.variables[n]!==t.variables[n]&&(e.variables[n]=t.variables[n])}),Rt(t.light).forEach(n=>{kn.light[n]!==t.light[n]&&(e.light[n]=t.light[n])}),Rt(t.dark).forEach(n=>{kn.dark[n]!==t.dark[n]&&(e.dark[n]=t.dark[n])}),e}function au(t){return ca({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},t)}function ua({cssVariablesSelector:t,deduplicateCssVariables:e}){const n=Xt(),r=Yr(),i=Bl(),s=su({theme:n,generator:i}),o=(t===void 0||t===":root"||t===":host")&&e,a=o?ou(s):s,c=ca(a,t);return c?g.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${c}${o?"":au(t)}`}}):null}ua.displayName="@mantine/CssVariables";function ne(t,e){var i,s;const n=typeof window!="undefined"&&"matchMedia"in window&&((i=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:i.matches),r=t!=="auto"?t:n?"dark":"light";(s=e())==null||s.setAttribute("data-mantine-color-scheme",r)}function cu({manager:t,defaultColorScheme:e,getRootElement:n,forceColorScheme:r}){const i=S.useRef(null),[s,o]=S.useState(()=>t.get(e)),a=r||s,c=S.useCallback(u=>{r||(ne(u,n),o(u),t.set(u))},[t.set,a,r]),l=S.useCallback(()=>{o(e),ne(e,n),t.clear()},[t.clear,e]);return S.useEffect(()=>(t.subscribe(c),t.unsubscribe),[t.subscribe,t.unsubscribe]),ia(()=>{ne(t.get(e),n)},[]),S.useEffect(()=>{var f;if(r)return ne(r,n),()=>{};r===void 0&&ne(s,n),typeof window!="undefined"&&"matchMedia"in window&&(i.current=window.matchMedia("(prefers-color-scheme: dark)"));const u=d=>{s==="auto"&&ne(d.matches?"dark":"light",n)};return(f=i.current)==null||f.addEventListener("change",u),()=>{var d;return(d=i.current)==null?void 0:d.removeEventListener("change",u)}},[s,r]),{colorScheme:a,setColorScheme:c,clearColorScheme:l}}function lu({respectReducedMotion:t,getRootElement:e}){ia(()=>{var n;t&&((n=e())==null||n.setAttribute("data-respect-reduced-motion","true"))},[t])}function br({theme:t,children:e,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:s=!0,withCssVariables:o=!0,cssVariablesSelector:a,classNamesPrefix:c="mantine",colorSchemeManager:l=Jl(),defaultColorScheme:u="light",getRootElement:f=()=>document.documentElement,cssVariablesResolver:d,forceColorScheme:h,stylesTransform:m,env:y}){const{colorScheme:b,setColorScheme:v,clearColorScheme:w}=cu({defaultColorScheme:u,forceColorScheme:h,manager:l,getRootElement:f});return lu({respectReducedMotion:(t==null?void 0:t.respectReducedMotion)||!1,getRootElement:f}),g.jsx(oa.Provider,{value:{colorScheme:b,setColorScheme:v,clearColorScheme:w,getRootElement:f,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:d,cssVariablesSelector:a!=null?a:":root",withStaticClasses:r,stylesTransform:m,env:y},children:g.jsxs(aa,{theme:t,children:[o&&g.jsx(ua,{cssVariablesSelector:a,deduplicateCssVariables:s}),i&&g.jsx(nu,{}),e]})})}br.displayName="@mantine/core/MantineProvider";const uu={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function fu({theme:t,options:e,unstyled:n}){return Yt((e==null?void 0:e.focusable)&&!n&&(t.focusClassName||uu[t.focusRing]),(e==null?void 0:e.active)&&!n&&t.activeClassName)}function du({selector:t,stylesCtx:e,options:n,props:r,theme:i}){return Kr({theme:i,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||r,stylesCtx:e})[t]}function ts({selector:t,stylesCtx:e,theme:n,classNames:r,props:i}){return Kr({theme:n,classNames:r,props:i,stylesCtx:e})[t]}function hu({rootSelector:t,selector:e,className:n}){return t===e?n:void 0}function mu({selector:t,classes:e,unstyled:n}){return n?void 0:e[t]}function pu({themeName:t,classNamesPrefix:e,selector:n,withStaticClass:r}){return r===!1?[]:t.map(i=>`${e}-${i}-${n}`)}function gu({themeName:t,theme:e,selector:n,props:r,stylesCtx:i}){return t.map(s=>{var o,a;return(a=Kr({theme:e,classNames:(o=e.components[s])==null?void 0:o.classNames,props:r,stylesCtx:i}))==null?void 0:a[n]})}function yu({options:t,classes:e,selector:n,unstyled:r}){return t!=null&&t.variant&&!r?e[`${n}--${t.variant}`]:void 0}function vu({theme:t,options:e,themeName:n,selector:r,classNamesPrefix:i,classNames:s,classes:o,unstyled:a,className:c,rootSelector:l,props:u,stylesCtx:f,withStaticClasses:d,headless:h,transformedStyles:m}){return Yt(fu({theme:t,options:e,unstyled:a||h}),gu({theme:t,themeName:n,selector:r,props:u,stylesCtx:f}),yu({options:e,classes:o,selector:r,unstyled:a}),ts({selector:r,stylesCtx:f,theme:t,classNames:s,props:u}),ts({selector:r,stylesCtx:f,theme:t,classNames:m,props:u}),du({selector:r,stylesCtx:f,options:e,props:u,theme:t}),hu({rootSelector:l,selector:r,className:c}),mu({selector:r,classes:o,unstyled:a||h}),d&&!h&&pu({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:e==null?void 0:e.withStaticClass}),e==null?void 0:e.className)}function bu({theme:t,themeName:e,props:n,stylesCtx:r,selector:i}){return e.map(s=>{var o;return yr({theme:t,styles:(o=t.components[s])==null?void 0:o.styles,props:n,stylesCtx:r})[i]}).reduce((s,o)=>p(p({},s),o),{})}function xr({style:t,theme:e}){return Array.isArray(t)?[...t].reduce((n,r)=>p(p({},n),xr({style:r,theme:e})),{}):typeof t=="function"?t(e):t==null?{}:t}function xu(t){return t.reduce((e,n)=>(n&&Object.keys(n).forEach(r=>{e[r]=p(p({},e[r]),qr(n[r]))}),e),{})}function wu({vars:t,varsResolver:e,theme:n,props:r,stylesCtx:i,selector:s,themeName:o,headless:a}){var c;return(c=xu([a?{}:e==null?void 0:e(n,r,i),...o.map(l=>{var u,f,d;return(d=(f=(u=n.components)==null?void 0:u[l])==null?void 0:f.vars)==null?void 0:d.call(f,n,r,i)}),t==null?void 0:t(n,r,i)]))==null?void 0:c[s]}function Cu({theme:t,themeName:e,selector:n,options:r,props:i,stylesCtx:s,rootSelector:o,styles:a,style:c,vars:l,varsResolver:u,headless:f,withStylesTransform:d}){return p(p(p(p(p(p({},!d&&bu({theme:t,themeName:e,props:i,stylesCtx:s,selector:n})),!d&&yr({theme:t,styles:a,props:i,stylesCtx:s})[n]),!d&&yr({theme:t,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||i,stylesCtx:s})[n]),wu({theme:t,props:i,stylesCtx:s,vars:l,varsResolver:u,selector:n,themeName:e,headless:f})),o===n?xr({style:c,theme:t}):null),xr({style:r==null?void 0:r.style,theme:t}))}function Tu({props:t,stylesCtx:e,themeName:n}){var o;const r=Xt(),i=(o=Ul())==null?void 0:o();return{getTransformedStyles:a=>i?[...a.map(l=>i(l,{props:t,theme:r,ctx:e})),...n.map(l=>{var u;return i((u=r.components[l])==null?void 0:u.styles,{props:t,theme:r,ctx:e})})].filter(Boolean):[],withStylesTransform:!!i}}function mt({name:t,classes:e,props:n,stylesCtx:r,className:i,style:s,rootSelector:o="root",unstyled:a,classNames:c,styles:l,vars:u,varsResolver:f,attributes:d}){const h=Xt(),m=$l(),y=Ol(),b=Fl(),v=(Array.isArray(t)?t:[t]).filter(T=>T),{withStylesTransform:w,getTransformedStyles:x}=Tu({props:n,stylesCtx:r,themeName:v});return(T,M)=>p({className:vu({theme:h,options:M,themeName:v,selector:T,classNamesPrefix:m,classNames:c,classes:e,unstyled:a,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:y,headless:b,transformedStyles:x([M==null?void 0:M.styles,l])}),style:Cu({theme:h,themeName:v,selector:T,options:M,props:n,stylesCtx:r,rootSelector:o,styles:l,style:s,vars:u,varsResolver:f,headless:b,withStylesTransform:w})},d==null?void 0:d[T])}function ft(t,e,n){var o;const r=Xt(),i=(o=r.components[t])==null?void 0:o.defaultProps,s=typeof i=="function"?i(r):i;return p(p(p({},e),s),qr(n))}function Dn(t){return Rt(t).reduce((e,n)=>t[n]!==void 0?`${e}${Pl(n)}:${t[n]};`:e,"").trim()}function Su({selector:t,styles:e,media:n,container:r}){const i=e?Dn(e):"",s=Array.isArray(n)?n.map(a=>`@media${a.query}{${t}{${Dn(a.styles)}}}`):[],o=Array.isArray(r)?r.map(a=>`@container ${a.query}{${t}{${Dn(a.styles)}}}`):[];return`${i?`${t}{${i}}`:""}${s.join("")}${o.join("")}`.trim()}function Pu(t){const e=Yr();return g.jsx("style",{"data-mantine-styles":"inline",nonce:e==null?void 0:e(),dangerouslySetInnerHTML:{__html:Su(t)}})}function Au(t){const Fi=t,{m:e,mx:n,my:r,mt:i,mb:s,ml:o,mr:a,me:c,ms:l,p:u,px:f,py:d,pt:h,pb:m,pl:y,pr:b,pe:v,ps:w,bd:x,bdrs:T,bg:M,c:P,opacity:A,ff:C,fz:R,fw:D,lts:j,ta:I,lh:L,fs:B,tt:et,td:lt,w:H,miw:K,maw:it,h:rt,mih:E,mah:O,bgsz:z,bgp:q,bgr:dt,bga:Pt,pos:U,top:N,left:_,bottom:Q,right:ht,inset:Y,display:pt,flex:xt,hiddenFrom:gt,visibleFrom:Te,lightHidden:Sn,darkHidden:Pn,sx:ml}=Fi,pl=W(Fi,["m","mx","my","mt","mb","ml","mr","me","ms","p","px","py","pt","pb","pl","pr","pe","ps","bd","bdrs","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","w","miw","maw","h","mih","mah","bgsz","bgp","bgr","bga","pos","top","left","bottom","right","inset","display","flex","hiddenFrom","visibleFrom","lightHidden","darkHidden","sx"]);return{styleProps:qr({m:e,mx:n,my:r,mt:i,mb:s,ml:o,mr:a,me:c,ms:l,p:u,px:f,py:d,pt:h,pb:m,pl:y,pr:b,pe:v,ps:w,bd:x,bg:M,c:P,opacity:A,ff:C,fz:R,fw:D,lts:j,ta:I,lh:L,fs:B,tt:et,td:lt,w:H,miw:K,maw:it,h:rt,mih:E,mah:O,bgsz:z,bgp:q,bgr:dt,bga:Pt,pos:U,top:N,left:_,bottom:Q,right:ht,inset:Y,display:pt,flex:xt,bdrs:T,hiddenFrom:gt,visibleFrom:Te,lightHidden:Sn,darkHidden:Pn,sx:ml}),rest:pl}}const Eu={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function Qr(t,e){const n=_e({color:t,theme:e});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function Ru(t,e){const n=_e({color:t,theme:e});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:Qr(t,e)}function Mu(t,e){if(typeof t=="number")return k(t);if(typeof t=="string"){const[n,r,...i]=t.split(" ").filter(o=>o.trim()!=="");let s=`${k(n)}`;return r&&(s+=` ${r}`),i.length>0&&(s+=` ${Qr(i.join(" "),e)}`),s.trim()}return t}const es={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function ku(t){return typeof t=="string"&&t in es?es[t]:t}const Du=["h1","h2","h3","h4","h5","h6"];function ju(t,e){return typeof t=="string"&&t in e.fontSizes?`var(--mantine-font-size-${t})`:typeof t=="string"&&Du.includes(t)?`var(--mantine-${t}-font-size)`:typeof t=="number"||typeof t=="string"?k(t):t}function Vu(t){return t}const Iu=["h1","h2","h3","h4","h5","h6"];function Nu(t,e){return typeof t=="string"&&t in e.lineHeights?`var(--mantine-line-height-${t})`:typeof t=="string"&&Iu.includes(t)?`var(--mantine-${t}-line-height)`:t}function Lu(t,e){return typeof t=="string"&&t in e.radius?`var(--mantine-radius-${t})`:typeof t=="number"||typeof t=="string"?k(t):t}function Bu(t){return typeof t=="number"?k(t):t}function $u(t,e){if(typeof t=="number")return k(t);if(typeof t=="string"){const n=t.replace("-","");if(!(n in e.spacing))return k(t);const r=`--mantine-spacing-${n}`;return t.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return t}const jn={color:Qr,textColor:Ru,fontSize:ju,spacing:$u,radius:Lu,identity:Vu,size:Bu,lineHeight:Nu,fontFamily:ku,border:Mu};function ns(t){return t.replace("(min-width: ","").replace("em)","")}function Ou(n){var r=n,{media:t}=r,e=W(r,["media"]);const s=Object.keys(t).sort((o,a)=>Number(ns(o))-Number(ns(a))).map(o=>({query:o,styles:t[o]}));return V(p({},e),{media:s})}function Fu(t){if(typeof t!="object"||t===null)return!1;const e=Object.keys(t);return!(e.length===1&&e[0]==="base")}function _u(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}function Uu(t){return typeof t=="object"&&t!==null?Rt(t).filter(e=>e!=="base"):[]}function zu(t,e){return typeof t=="object"&&t!==null&&e in t?t[e]:t}function Wu({styleProps:t,data:e,theme:n}){return Ou(Rt(t).reduce((r,i)=>{if(i==="hiddenFrom"||i==="visibleFrom"||i==="sx")return r;const s=e[i],o=Array.isArray(s.property)?s.property:[s.property],a=_u(t[i]);if(!Fu(t[i]))return o.forEach(l=>{r.inlineStyles[l]=jn[s.type](a,n)}),r;r.hasResponsiveStyles=!0;const c=Uu(t[i]);return o.forEach(l=>{a!=null&&(r.styles[l]=jn[s.type](a,n)),c.forEach(u=>{const f=`(min-width: ${n.breakpoints[u]})`;r.media[f]=V(p({},r.media[f]),{[l]:jn[s.type](zu(t[i],u),n)})})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Hu(){return`__m__-${S.useId().replace(/[:«»]/g,"")}`}function fa(t){return t.startsWith("data-")?t:`data-${t}`}function Gu(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return r===void 0||r===""||r===!1||r===null||(e[fa(n)]=t[n]),e},{})}function da(t){return t?typeof t=="string"?{[fa(t)]:!0}:Array.isArray(t)?[...t].reduce((e,n)=>p(p({},e),da(n)),{}):Gu(t):null}function wr(t,e){return Array.isArray(t)?[...t].reduce((n,r)=>p(p({},n),wr(r,e)),{}):typeof t=="function"?t(e):t==null?{}:t}function qu({theme:t,style:e,vars:n,styleProps:r}){const i=wr(e,t),s=wr(n,t);return p(p(p({},i),s),r)}const ha=S.forwardRef((y,m)=>{var b=y,{component:t,style:e,__vars:n,className:r,variant:i,mod:s,size:o,hiddenFrom:a,visibleFrom:c,lightHidden:l,darkHidden:u,renderRoot:f,__size:d}=b,h=W(b,["component","style","__vars","className","variant","mod","size","hiddenFrom","visibleFrom","lightHidden","darkHidden","renderRoot","__size"]);var D;const v=Xt(),w=t||"div",{styleProps:x,rest:T}=Au(h),M=_l(),P=(D=M==null?void 0:M())==null?void 0:D(x.sx),A=Hu(),C=Wu({styleProps:x,theme:v,data:Eu}),R=p(p({ref:m,style:qu({theme:v,style:e,vars:n,styleProps:C.inlineStyles}),className:Yt(r,P,{[A]:C.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":u,[`mantine-hidden-from-${a}`]:a,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":na(o)?void 0:o||void 0,size:d},da(s)),T);return g.jsxs(g.Fragment,{children:[C.hasResponsiveStyles&&g.jsx(Pu,{selector:`.${A}`,styles:C.styles,media:C.media}),typeof f=="function"?f(R):g.jsx(w,p({},R))]})});ha.displayName="@mantine/core/Box";const F=ha;function ma(t){return t}function ye(t){const e=S.forwardRef(t);return e.extend=ma,e.withProps=n=>{const r=S.forwardRef((i,s)=>g.jsx(e,V(p(p({},n),i),{ref:s})));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r},e}function Zt(t){const e=S.forwardRef(t);return e.withProps=n=>{const r=S.forwardRef((i,s)=>g.jsx(e,V(p(p({},n),i),{ref:s})));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r},e.extend=ma,e}var pa={root:"m_87cf2631"};const Ku={__staticSelector:"UnstyledButton"},ti=Zt((t,e)=>{const n=ft("UnstyledButton",Ku,t),h=n,{className:r,component:i="button",__staticSelector:s,unstyled:o,classNames:a,styles:c,style:l,attributes:u}=h,f=W(h,["className","component","__staticSelector","unstyled","classNames","styles","style","attributes"]),d=mt({name:s,props:n,classes:pa,className:r,style:l,classNames:a,styles:c,unstyled:o,attributes:u});return g.jsx(F,p(V(p({},d("root",{focusable:!0})),{component:i,ref:e,type:i==="button"?"button":void 0}),f))});ti.classes=pa;ti.displayName="@mantine/core/UnstyledButton";var ga={root:"m_1b7284a3"};const Yu=(t,{radius:e,shadow:n})=>({root:{"--paper-radius":e===void 0?void 0:Fe(e),"--paper-shadow":Ml(n)}}),ie=Zt((t,e)=>{const n=ft("Paper",null,t),v=n,{classNames:r,className:i,style:s,styles:o,unstyled:a,withBorder:c,vars:l,radius:u,shadow:f,variant:d,mod:h,attributes:m}=v,y=W(v,["classNames","className","style","styles","unstyled","withBorder","vars","radius","shadow","variant","mod","attributes"]),b=mt({name:"Paper",props:n,classes:ga,className:i,style:s,classNames:r,styles:o,unstyled:a,attributes:m,vars:l,varsResolver:Yu});return g.jsx(F,p(V(p({ref:e,mod:[{"data-with-border":c},h]},b("root")),{variant:d}),y))});ie.classes=ga;ie.displayName="@mantine/core/Paper";const Ee=t=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${t==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),Ze={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:V(p({},Ee("bottom")),{common:{transformOrigin:"center center"}}),"pop-bottom-left":V(p({},Ee("bottom")),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":V(p({},Ee("bottom")),{common:{transformOrigin:"bottom right"}}),"pop-top-left":V(p({},Ee("top")),{common:{transformOrigin:"top left"}}),"pop-top-right":V(p({},Ee("top")),{common:{transformOrigin:"top right"}})},rs={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function Xu({transition:t,state:e,duration:n,timingFunction:r}){const i={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof t=="string"?t in Ze?p(p(p({transitionProperty:Ze[t].transitionProperty},i),Ze[t].common),Ze[t][rs[e]]):{}:p(p(p({transitionProperty:t.transitionProperty},i),t.common),t[rs[e]])}function Zu({duration:t,exitDuration:e,timingFunction:n,mounted:r,onEnter:i,onExit:s,onEntered:o,onExited:a,enterDelay:c,exitDelay:l}){const u=Xt(),f=Il(),d=u.respectReducedMotion?f:!1,[h,m]=S.useState(d?0:t),[y,b]=S.useState(r?"entered":"exited"),v=S.useRef(-1),w=S.useRef(-1),x=S.useRef(-1);function T(){window.clearTimeout(v.current),window.clearTimeout(w.current),cancelAnimationFrame(x.current)}const M=A=>{T();const C=A?i:s,R=A?o:a,D=d?0:A?t:e;m(D),D===0?(typeof C=="function"&&C(),typeof R=="function"&&R(),b(A?"entered":"exited")):x.current=requestAnimationFrame(()=>{bl.flushSync(()=>{b(A?"pre-entering":"pre-exiting")}),x.current=requestAnimationFrame(()=>{typeof C=="function"&&C(),b(A?"entering":"exiting"),v.current=window.setTimeout(()=>{typeof R=="function"&&R(),b(A?"entered":"exited")},D)})})},P=A=>{if(T(),typeof(A?c:l)!="number"){M(A);return}w.current=window.setTimeout(()=>{M(A)},A?c:l)};return Vl(()=>{P(r)},[r]),S.useEffect(()=>()=>{T()},[]),{transitionDuration:h,transitionStatus:y,transitionTimingFunction:n||"ease"}}function ya({keepMounted:t,transition:e="fade",duration:n=250,exitDuration:r=n,mounted:i,children:s,timingFunction:o="ease",onExit:a,onEntered:c,onEnter:l,onExited:u,enterDelay:f,exitDelay:d}){const h=zl(),{transitionDuration:m,transitionStatus:y,transitionTimingFunction:b}=Zu({mounted:i,exitDuration:r,duration:n,timingFunction:o,onExit:a,onEntered:c,onEnter:l,onExited:u,enterDelay:f,exitDelay:d});return m===0||h==="test"?i?g.jsx(g.Fragment,{children:s({})}):t?s({display:"none"}):null:y==="exited"?t?s({display:"none"}):null:g.jsx(g.Fragment,{children:s(Xu({transition:e,duration:m,state:y,timingFunction:b}))})}ya.displayName="@mantine/core/Transition";var Tt={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const va=S.forwardRef((r,n)=>{var i=r,{className:t}=i,e=W(i,["className"]);return g.jsxs(F,V(p({component:"span",className:Yt(Tt.barsLoader,t)},e),{ref:n,children:[g.jsx("span",{className:Tt.bar}),g.jsx("span",{className:Tt.bar}),g.jsx("span",{className:Tt.bar})]}))});va.displayName="@mantine/core/Bars";const ba=S.forwardRef((r,n)=>{var i=r,{className:t}=i,e=W(i,["className"]);return g.jsxs(F,V(p({component:"span",className:Yt(Tt.dotsLoader,t)},e),{ref:n,children:[g.jsx("span",{className:Tt.dot}),g.jsx("span",{className:Tt.dot}),g.jsx("span",{className:Tt.dot})]}))});ba.displayName="@mantine/core/Dots";const xa=S.forwardRef((r,n)=>{var i=r,{className:t}=i,e=W(i,["className"]);return g.jsx(F,V(p({component:"span",className:Yt(Tt.ovalLoader,t)},e),{ref:n}))});xa.displayName="@mantine/core/Oval";const wa={bars:va,oval:xa,dots:ba},Ju={loaders:wa,type:"oval"},Qu=(t,{size:e,color:n})=>({root:{"--loader-size":kt(e,"loader-size"),"--loader-color":n?cn(n,t):void 0}}),he=ye((t,e)=>{const n=ft("Loader",Ju,t),w=n,{size:r,color:i,type:s,vars:o,className:a,style:c,classNames:l,styles:u,unstyled:f,loaders:d,variant:h,children:m,attributes:y}=w,b=W(w,["size","color","type","vars","className","style","classNames","styles","unstyled","loaders","variant","children","attributes"]),v=mt({name:"Loader",props:n,classes:Tt,className:a,style:c,classNames:l,styles:u,unstyled:f,attributes:y,vars:o,varsResolver:Qu});return m?g.jsx(F,V(p(V(p({},v("root")),{ref:e}),b),{children:m})):g.jsx(F,p(V(p({},v("root")),{ref:e,component:d[s],variant:h,size:r}),b))});he.defaultLoaders=wa;he.classes=Tt;he.displayName="@mantine/core/Loader";var ve={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const is={orientation:"horizontal"},tf=(t,{borderWidth:e})=>({group:{"--ai-border-width":k(e)}}),ei=ye((t,e)=>{const n=ft("ActionIconGroup",is,t),b=ft("ActionIconGroup",is,t),{className:r,style:i,classNames:s,styles:o,unstyled:a,orientation:c,vars:l,borderWidth:u,variant:f,mod:d,attributes:h}=b,m=W(b,["className","style","classNames","styles","unstyled","orientation","vars","borderWidth","variant","mod","attributes"]),y=mt({name:"ActionIconGroup",props:n,classes:ve,className:r,style:i,classNames:s,styles:o,unstyled:a,attributes:h,vars:l,varsResolver:tf,rootSelector:"group"});return g.jsx(F,p(V(p({},y("group")),{ref:e,variant:f,mod:[{"data-orientation":c},d],role:"group"}),m))});ei.classes=ve;ei.displayName="@mantine/core/ActionIconGroup";const ef=(t,{radius:e,color:n,gradient:r,variant:i,autoContrast:s,size:o})=>{const a=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:i||"filled",autoContrast:s});return{groupSection:{"--section-height":kt(o,"section-height"),"--section-padding-x":kt(o,"section-padding-x"),"--section-fz":ra(o),"--section-radius":e===void 0?void 0:Fe(e),"--section-bg":n||i?a.background:void 0,"--section-color":a.color,"--section-bd":n||i?a.border:void 0}}},ni=ye((t,e)=>{const n=ft("ActionIconGroupSection",null,t),b=n,{className:r,style:i,classNames:s,styles:o,unstyled:a,vars:c,variant:l,gradient:u,radius:f,autoContrast:d,attributes:h}=b,m=W(b,["className","style","classNames","styles","unstyled","vars","variant","gradient","radius","autoContrast","attributes"]),y=mt({name:"ActionIconGroupSection",props:n,classes:ve,className:r,style:i,classNames:s,styles:o,unstyled:a,attributes:h,vars:c,varsResolver:ef,rootSelector:"groupSection"});return g.jsx(F,p(V(p({},y("groupSection")),{ref:e,variant:l}),m))});ni.classes=ve;ni.displayName="@mantine/core/ActionIconGroupSection";const nf=(t,{size:e,radius:n,variant:r,gradient:i,color:s,autoContrast:o})=>{const a=t.variantColorResolver({color:s||t.primaryColor,theme:t,gradient:i,variant:r||"filled",autoContrast:o});return{root:{"--ai-size":kt(e,"ai-size"),"--ai-radius":n===void 0?void 0:Fe(n),"--ai-bg":s||r?a.background:void 0,"--ai-hover":s||r?a.hover:void 0,"--ai-hover-color":s||r?a.hoverColor:void 0,"--ai-color":a.color,"--ai-bd":s||r?a.border:void 0}}},me=Zt((t,e)=>{const n=ft("ActionIcon",null,t),R=n,{className:r,unstyled:i,variant:s,classNames:o,styles:a,style:c,loading:l,loaderProps:u,size:f,color:d,radius:h,__staticSelector:m,gradient:y,vars:b,children:v,disabled:w,"data-disabled":x,autoContrast:T,mod:M,attributes:P}=R,A=W(R,["className","unstyled","variant","classNames","styles","style","loading","loaderProps","size","color","radius","__staticSelector","gradient","vars","children","disabled","data-disabled","autoContrast","mod","attributes"]),C=mt({name:["ActionIcon",m],props:n,className:r,style:c,classes:ve,classNames:o,styles:a,unstyled:i,attributes:P,vars:b,varsResolver:nf});return g.jsxs(ti,V(p(p({},C("root",{active:!w&&!l&&!x})),A),{unstyled:i,variant:s,size:f,disabled:w||l,ref:e,mod:[{loading:l,disabled:w||x},M],children:[typeof l=="boolean"&&g.jsx(ya,{mounted:l,transition:"slide-down",duration:150,children:D=>g.jsx(F,V(p({component:"span"},C("loader",{style:D})),{"aria-hidden":!0,children:g.jsx(he,p({color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)"},u))}))}),g.jsx(F,V(p({component:"span",mod:{loading:l}},C("icon")),{children:v}))]}))});me.classes=ve;me.displayName="@mantine/core/ActionIcon";me.Group=ei;me.GroupSection=ni;function rf(t){return S.Children.toArray(t).filter(Boolean)}var Ca={root:"m_4081bf90"};const sf={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},of=(t,{grow:e,preventGrowOverflow:n,gap:r,align:i,justify:s,wrap:o},{childWidth:a})=>({root:{"--group-child-width":e&&n?a:void 0,"--group-gap":vn(r),"--group-align":i,"--group-justify":s,"--group-wrap":o}}),ot=ye((t,e)=>{const n=ft("Group",sf,t),j=n,{classNames:r,className:i,style:s,styles:o,unstyled:a,children:c,gap:l,align:u,justify:f,wrap:d,grow:h,preventGrowOverflow:m,vars:y,variant:b,__size:v,mod:w,attributes:x}=j,T=W(j,["classNames","className","style","styles","unstyled","children","gap","align","justify","wrap","grow","preventGrowOverflow","vars","variant","__size","mod","attributes"]),M=rf(c),P=M.length,A=vn(l!=null?l:"md"),R={childWidth:`calc(${100/P}% - (${A} - ${A} / ${P}))`},D=mt({name:"Group",props:n,stylesCtx:R,className:i,style:s,classes:Ca,classNames:r,styles:o,unstyled:a,attributes:x,vars:y,varsResolver:of});return g.jsx(F,V(p(V(p({},D("root")),{ref:e,variant:b,mod:[{grow:h},w],size:v}),T),{children:M}))});ot.classes=Ca;ot.displayName="@mantine/core/Group";var Ta={root:"m_b6d8b162"};function af(t){if(t==="start")return"start";if(t==="end"||t)return"end"}const cf={inherit:!1},lf=(t,{variant:e,lineClamp:n,gradient:r,size:i,color:s})=>({root:{"--text-fz":ra(i),"--text-lh":Rl(i),"--text-gradient":e==="gradient"?vr(r,t):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":s?cn(s,t):void 0}}),G=Zt((t,e)=>{const n=ft("Text",cf,t),P=n,{lineClamp:r,truncate:i,inline:s,inherit:o,gradient:a,span:c,__staticSelector:l,vars:u,className:f,style:d,classNames:h,styles:m,unstyled:y,variant:b,mod:v,size:w,attributes:x}=P,T=W(P,["lineClamp","truncate","inline","inherit","gradient","span","__staticSelector","vars","className","style","classNames","styles","unstyled","variant","mod","size","attributes"]),M=mt({name:["Text",l],props:n,classes:Ta,className:f,style:d,classNames:h,styles:m,unstyled:y,attributes:x,vars:u,varsResolver:lf});return g.jsx(F,p(V(p({},M("root",{focusable:!0})),{ref:e,component:c?"span":"p",variant:b,mod:[{"data-truncate":af(i),"data-line-clamp":typeof r=="number","data-inline":s,"data-inherit":o},v],size:w}),T))});G.classes=Ta;G.displayName="@mantine/core/Text";const Sa=S.createContext(null),uf=Sa.Provider;function ff(){return{withinGroup:!!S.useContext(Sa)}}var bn={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const df=(t,{spacing:e})=>({group:{"--ag-spacing":vn(e)}}),ri=ye((t,e)=>{const n=ft("AvatarGroup",null,t),h=n,{classNames:r,className:i,style:s,styles:o,unstyled:a,vars:c,spacing:l,attributes:u}=h,f=W(h,["classNames","className","style","styles","unstyled","vars","spacing","attributes"]),d=mt({name:"AvatarGroup",classes:bn,props:n,className:i,style:s,classNames:r,styles:o,unstyled:a,attributes:u,vars:c,varsResolver:df,rootSelector:"group"});return g.jsx(uf,{value:!0,children:g.jsx(F,p(p({ref:e},d("group")),f))})});ri.classes=bn;ri.displayName="@mantine/core/AvatarGroup";function hf(t){return g.jsx("svg",V(p({},t),{"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}))}function mf(t){let e=0;for(let n=0;n<t.length;n+=1){const r=t.charCodeAt(n);e=(e<<5)-e+r,e|=0}return e}const pf=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"];function gf(t,e=pf){const n=mf(t),r=Math.abs(n)%e.length;return e[r]}function yf(t,e=2){const n=t.split(" ");return n.length===1?t.slice(0,e).toUpperCase():n.map(r=>r[0]).slice(0,e).join("").toUpperCase()}const vf=(t,{size:e,radius:n,variant:r,gradient:i,color:s,autoContrast:o,name:a,allowedInitialsColors:c})=>{const l=s==="initials"&&typeof a=="string"?gf(a,c):s,u=t.variantColorResolver({color:l||"gray",theme:t,gradient:i,variant:r||"light",autoContrast:o});return{root:{"--avatar-size":kt(e,"avatar-size"),"--avatar-radius":n===void 0?void 0:Fe(n),"--avatar-bg":l||r?u.background:void 0,"--avatar-color":l||r?u.color:void 0,"--avatar-bd":l||r?u.border:void 0}}},Kt=Zt((t,e)=>{const n=ft("Avatar",null,t),D=n,{classNames:r,className:i,style:s,styles:o,unstyled:a,vars:c,src:l,alt:u,radius:f,color:d,gradient:h,imageProps:m,children:y,autoContrast:b,mod:v,name:w,allowedInitialsColors:x,attributes:T}=D,M=W(D,["classNames","className","style","styles","unstyled","vars","src","alt","radius","color","gradient","imageProps","children","autoContrast","mod","name","allowedInitialsColors","attributes"]),P=ff(),[A,C]=S.useState(!l),R=mt({name:"Avatar",props:n,classes:bn,className:i,style:s,classNames:r,styles:o,unstyled:a,attributes:T,vars:c,varsResolver:vf});return S.useEffect(()=>C(!l),[l]),g.jsx(F,V(p(V(p({},R("root")),{mod:[{"within-group":P.withinGroup},v],ref:e}),M),{children:A||!l?g.jsx("span",V(p({},R("placeholder")),{title:u,children:y||typeof w=="string"&&yf(w)||g.jsx(hf,{})})):g.jsx("img",V(p(p({},m),R("image")),{src:l,alt:u,onError:j=>{var I;C(!0),(I=m==null?void 0:m.onError)==null||I.call(m,j)}}))}))});Kt.classes=bn;Kt.displayName="@mantine/core/Avatar";Kt.Group=ri;var Pa={root:"m_4451eb3a"};const ii=Zt((t,e)=>{const n=ft("Center",null,t),m=n,{classNames:r,className:i,style:s,styles:o,unstyled:a,vars:c,inline:l,mod:u,attributes:f}=m,d=W(m,["classNames","className","style","styles","unstyled","vars","inline","mod","attributes"]),h=mt({name:"Center",props:n,classes:Pa,className:i,style:s,classNames:r,styles:o,unstyled:a,attributes:f,vars:c});return g.jsx(F,p(p({ref:e,mod:[{inline:l},u]},h("root")),d))});ii.classes=Pa;ii.displayName="@mantine/core/Center";var Aa={root:"m_9e117634"};const bf=(t,{radius:e,fit:n})=>({root:{"--image-radius":e===void 0?void 0:Fe(e),"--image-object-fit":n}}),fe=Zt((t,e)=>{const n=ft("Image",null,t),T=n,{classNames:r,className:i,style:s,styles:o,unstyled:a,vars:c,onError:l,src:u,radius:f,fit:d,fallbackSrc:h,mod:m,attributes:y}=T,b=W(T,["classNames","className","style","styles","unstyled","vars","onError","src","radius","fit","fallbackSrc","mod","attributes"]),[v,w]=S.useState(!u);S.useEffect(()=>w(!u),[u]);const x=mt({name:"Image",classes:Aa,props:n,className:i,style:s,classNames:r,styles:o,unstyled:a,attributes:y,vars:c,varsResolver:bf});return v&&h?g.jsx(F,p(V(p({component:"img",ref:e,src:h},x("root")),{onError:l,mod:["fallback",m]}),b)):g.jsx(F,p(V(p({component:"img",ref:e},x("root")),{src:u,onError:M=>{l==null||l(M),w(!0)},mod:m}),b))});fe.classes=Aa;fe.displayName="@mantine/core/Image";var Ea={root:"m_6d731127"};const xf={gap:"md",align:"stretch",justify:"flex-start"},wf=(t,{gap:e,align:n,justify:r})=>({root:{"--stack-gap":vn(e),"--stack-align":n,"--stack-justify":r}}),Et=ye((t,e)=>{const n=ft("Stack",xf,t),b=n,{classNames:r,className:i,style:s,styles:o,unstyled:a,vars:c,align:l,justify:u,gap:f,variant:d,attributes:h}=b,m=W(b,["classNames","className","style","styles","unstyled","vars","align","justify","gap","variant","attributes"]),y=mt({name:"Stack",props:n,classes:Ea,className:i,style:s,classNames:r,styles:o,unstyled:a,attributes:h,vars:c,varsResolver:wf});return g.jsx(F,p(V(p({ref:e},y("root")),{variant:d}),m))});Et.classes=Ea;Et.displayName="@mantine/core/Stack";const si=S.createContext({});function oi(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}const ai=typeof window!="undefined",Ra=ai?S.useLayoutEffect:S.useEffect,xn=S.createContext(null);function ci(t,e){t.indexOf(e)===-1&&t.push(e)}function li(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const jt=(t,e,n)=>n>e?e:n<t?t:n;function Cr(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}let be=()=>{},Vt=()=>{};process.env.NODE_ENV!=="production"&&(be=(t,e,n)=>{!t&&typeof console!="undefined"&&console.warn(Cr(e,n))},Vt=(t,e,n)=>{if(!t)throw new Error(Cr(e,n))});const It={},Ma=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function ka(t){return typeof t=="object"&&t!==null}const Da=t=>/^0[^.\s]+$/u.test(t);function ui(t){let e;return()=>(e===void 0&&(e=t()),e)}const bt=t=>t,Cf=(t,e)=>n=>e(t(n)),Ue=(...t)=>t.reduce(Cf),Ne=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class fi{constructor(){this.subscriptions=[]}add(e){return ci(this.subscriptions,e),()=>li(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const St=t=>t*1e3,vt=t=>t/1e3;function ja(t,e){return e?t*(1e3/e):0}const ss=new Set;function di(t,e,n){t||ss.has(e)||(console.warn(Cr(e,n)),ss.add(e))}const Va=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Tf=1e-7,Sf=12;function Pf(t,e,n,r,i){let s,o,a=0;do o=e+(n-e)/2,s=Va(o,r,i)-t,s>0?n=o:e=o;while(Math.abs(s)>Tf&&++a<Sf);return o}function ze(t,e,n,r){if(t===e&&n===r)return bt;const i=s=>Pf(s,0,1,t,n);return s=>s===0||s===1?s:Va(i(s),e,r)}const Ia=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Na=t=>e=>1-t(1-e),La=ze(.33,1.53,.69,.99),hi=Na(La),Ba=Ia(hi),$a=t=>(t*=2)<1?.5*hi(t):.5*(2-Math.pow(2,-10*(t-1))),mi=t=>1-Math.sin(Math.acos(t)),Oa=Na(mi),Fa=Ia(mi),Af=ze(.42,0,1,1),Ef=ze(0,0,.58,1),_a=ze(.42,0,.58,1),Rf=t=>Array.isArray(t)&&typeof t[0]!="number",Ua=t=>Array.isArray(t)&&typeof t[0]=="number",os={linear:bt,easeIn:Af,easeInOut:_a,easeOut:Ef,circIn:mi,circInOut:Fa,circOut:Oa,backIn:hi,backInOut:Ba,backOut:La,anticipate:$a},Mf=t=>typeof t=="string",as=t=>{if(Ua(t)){Vt(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,r,i]=t;return ze(e,n,r,i)}else if(Mf(t))return Vt(os[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),os[t];return t},Je=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function kf(t,e){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){o.has(u)&&(l.schedule(u),t()),u(a)}const l={schedule:(u,f=!1,d=!1)=>{const m=d&&i?n:r;return f&&o.add(u),m.has(u)||m.add(u),u},cancel:u=>{r.delete(u),o.delete(u)},process:u=>{if(a=u,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),n.clear(),i=!1,s&&(s=!1,l.process(u))}};return l}const Df=40;function za(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Je.reduce((x,T)=>(x[T]=kf(s),x),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:f,preRender:d,render:h,postRender:m}=o,y=()=>{const x=It.useManualTiming?i.timestamp:performance.now();n=!1,It.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,Df),1)),i.timestamp=x,i.isProcessing=!0,a.process(i),c.process(i),l.process(i),u.process(i),f.process(i),d.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(y))},b=()=>{n=!0,r=!0,i.isProcessing||t(y)};return{schedule:Je.reduce((x,T)=>{const M=o[T];return x[T]=(P,A=!1,C=!1)=>(n||b(),M.schedule(P,A,C)),x},{}),cancel:x=>{for(let T=0;T<Je.length;T++)o[Je[T]].cancel(x)},state:i,steps:o}}const{schedule:X,cancel:Bt,state:st,steps:Vn}=za(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:bt,!0);let rn;function jf(){rn=void 0}const ut={now:()=>(rn===void 0&&ut.set(st.isProcessing||It.useManualTiming?st.timestamp:performance.now()),rn),set:t=>{rn=t,queueMicrotask(jf)}},Wa=t=>e=>typeof e=="string"&&e.startsWith(t),Ha=Wa("--"),Vf=Wa("var(--"),pi=t=>Vf(t)?If.test(t.split("/*")[0].trim()):!1,If=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,xe={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Le=V(p({},xe),{transform:t=>jt(0,1,t)}),Qe=V(p({},xe),{default:1}),De=t=>Math.round(t*1e5)/1e5,gi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Nf(t){return t==null}const Lf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,yi=(t,e)=>n=>!!(typeof n=="string"&&Lf.test(n)&&n.startsWith(t)||e&&!Nf(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ga=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(gi);return{[t]:parseFloat(i),[e]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Bf=t=>jt(0,255,t),In=V(p({},xe),{transform:t=>Math.round(Bf(t))}),Wt={test:yi("rgb","red"),parse:Ga("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+In.transform(t)+", "+In.transform(e)+", "+In.transform(n)+", "+De(Le.transform(r))+")"};function $f(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Tr={test:yi("#"),parse:$f,transform:Wt.transform},We=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Lt=We("deg"),Mt=We("%"),$=We("px"),Of=We("vh"),Ff=We("vw"),cs=V(p({},Mt),{parse:t=>Mt.parse(t)/100,transform:t=>Mt.transform(t*100)}),se={test:yi("hsl","hue"),parse:Ga("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Mt.transform(De(e))+", "+Mt.transform(De(n))+", "+De(Le.transform(r))+")"},tt={test:t=>Wt.test(t)||Tr.test(t)||se.test(t),parse:t=>Wt.test(t)?Wt.parse(t):se.test(t)?se.parse(t):Tr.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Wt.transform(t):se.transform(t),getAnimatableNone:t=>{const e=tt.parse(t);return e.alpha=0,tt.transform(e)}},_f=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Uf(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(gi))==null?void 0:e.length)||0)+(((n=t.match(_f))==null?void 0:n.length)||0)>0}const qa="number",Ka="color",zf="var",Wf="var(",ls="${}",Hf=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Be(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=e.replace(Hf,c=>(tt.test(c)?(r.color.push(s),i.push(Ka),n.push(tt.parse(c))):c.startsWith(Wf)?(r.var.push(s),i.push(zf),n.push(c)):(r.number.push(s),i.push(qa),n.push(parseFloat(c))),++s,ls)).split(ls);return{values:n,split:a,indexes:r,types:i}}function Ya(t){return Be(t).values}function Xa(t){const{split:e,types:n}=Be(t),r=e.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=e[o],i[o]!==void 0){const a=n[o];a===qa?s+=De(i[o]):a===Ka?s+=tt.transform(i[o]):s+=i[o]}return s}}const Gf=t=>typeof t=="number"?0:tt.test(t)?tt.getAnimatableNone(t):t;function qf(t){const e=Ya(t);return Xa(t)(e.map(Gf))}const $t={test:Uf,parse:Ya,createTransformer:Xa,getAnimatableNone:qf};function Nn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Kf({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,s=0,o=0;if(!e)i=s=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=Nn(c,a,t+1/3),s=Nn(c,a,t),o=Nn(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function ln(t,e){return n=>n>0?e:t}const J=(t,e,n)=>t+(e-t)*n,Ln=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},Yf=[Tr,Wt,se],Xf=t=>Yf.find(e=>e.test(t));function us(t){const e=Xf(t);if(be(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===se&&(n=Kf(n)),n}const fs=(t,e)=>{const n=us(t),r=us(e);if(!n||!r)return ln(t,e);const i=p({},n);return s=>(i.red=Ln(n.red,r.red,s),i.green=Ln(n.green,r.green,s),i.blue=Ln(n.blue,r.blue,s),i.alpha=J(n.alpha,r.alpha,s),Wt.transform(i))},Sr=new Set(["none","hidden"]);function Zf(t,e){return Sr.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Jf(t,e){return n=>J(t,e,n)}function vi(t){return typeof t=="number"?Jf:typeof t=="string"?pi(t)?ln:tt.test(t)?fs:ed:Array.isArray(t)?Za:typeof t=="object"?tt.test(t)?fs:Qf:ln}function Za(t,e){const n=[...t],r=n.length,i=t.map((s,o)=>vi(s)(s,e[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function Qf(t,e){const n=p(p({},t),e),r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=vi(t[i])(t[i],e[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function td(t,e){var i;const n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],a=t.indexes[o][r[o]],c=(i=t.values[a])!=null?i:0;n[s]=c,r[o]++}return n}const ed=(t,e)=>{const n=$t.createTransformer(e),r=Be(t),i=Be(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Sr.has(t)&&!i.values.length||Sr.has(e)&&!r.values.length?Zf(t,e):Ue(Za(td(r,i),i.values),n):(be(!0,`Complex values '${t}' and '${e}' 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.`,"complex-values-different"),ln(t,e))};function Ja(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?J(t,e,n):vi(t)(t,e)}const nd=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>X.update(e,n),stop:()=>Bt(e),now:()=>st.isProcessing?st.timestamp:ut.now()}},Qa=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let s=0;s<i;s++)r+=Math.round(t(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},un=2e4;function bi(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<un;)e+=n,r=t.next(e);return e>=un?1/0:e}function rd(t,e=100,n){const r=n(V(p({},t),{keyframes:[0,e]})),i=Math.min(bi(r),un);return{type:"keyframes",ease:s=>r.next(i*s).value/e,duration:vt(i)}}const id=5;function tc(t,e,n){const r=Math.max(e-id,0);return ja(n-t(r),e-r)}const Z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Bn=.001;function sd({duration:t=Z.duration,bounce:e=Z.bounce,velocity:n=Z.velocity,mass:r=Z.mass}){let i,s;be(t<=St(Z.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=jt(Z.minDamping,Z.maxDamping,o),t=jt(Z.minDuration,Z.maxDuration,vt(t)),o<1?(i=l=>{const u=l*o,f=u*t,d=u-n,h=Pr(l,o),m=Math.exp(-f);return Bn-d/h*m},s=l=>{const f=l*o*t,d=f*n+n,h=Math.pow(o,2)*Math.pow(l,2)*t,m=Math.exp(-f),y=Pr(Math.pow(l,2),o);return(-i(l)+Bn>0?-1:1)*((d-h)*m)/y}):(i=l=>{const u=Math.exp(-l*t),f=(l-n)*t+1;return-Bn+u*f},s=l=>{const u=Math.exp(-l*t),f=(n-l)*(t*t);return u*f});const a=5/t,c=ad(i,s,a);if(t=St(t),isNaN(c))return{stiffness:Z.stiffness,damping:Z.damping,duration:t};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:o*2*Math.sqrt(r*l),duration:t}}}const od=12;function ad(t,e,n){let r=n;for(let i=1;i<od;i++)r=r-t(r)/e(r);return r}function Pr(t,e){return t*Math.sqrt(1-e*e)}const cd=["duration","bounce"],ld=["stiffness","damping","mass"];function ds(t,e){return e.some(n=>t[n]!==void 0)}function ud(t){let e=p({velocity:Z.velocity,stiffness:Z.stiffness,damping:Z.damping,mass:Z.mass,isResolvedFromDuration:!1},t);if(!ds(t,ld)&&ds(t,cd))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*jt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e=V(p({},e),{mass:Z.mass,stiffness:i,damping:s})}else{const n=sd(t);e=V(p(p({},e),n),{mass:Z.mass}),e.isResolvedFromDuration=!0}return e}function fn(t=Z.visualDuration,e=Z.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:c,damping:l,mass:u,duration:f,velocity:d,isResolvedFromDuration:h}=ud(V(p({},n),{velocity:-vt(n.velocity||0)})),m=d||0,y=l/(2*Math.sqrt(c*u)),b=o-s,v=vt(Math.sqrt(c/u)),w=Math.abs(b)<5;r||(r=w?Z.restSpeed.granular:Z.restSpeed.default),i||(i=w?Z.restDelta.granular:Z.restDelta.default);let x;if(y<1){const M=Pr(v,y);x=P=>{const A=Math.exp(-y*v*P);return o-A*((m+y*v*b)/M*Math.sin(M*P)+b*Math.cos(M*P))}}else if(y===1)x=M=>o-Math.exp(-v*M)*(b+(m+v*b)*M);else{const M=v*Math.sqrt(y*y-1);x=P=>{const A=Math.exp(-y*v*P),C=Math.min(M*P,300);return o-A*((m+y*v*b)*Math.sinh(C)+M*b*Math.cosh(C))/M}}const T={calculatedDuration:h&&f||null,next:M=>{const P=x(M);if(h)a.done=M>=f;else{let A=M===0?m:0;y<1&&(A=M===0?St(m):tc(x,M,P));const C=Math.abs(A)<=r,R=Math.abs(o-P)<=i;a.done=C&&R}return a.value=a.done?o:P,a},toString:()=>{const M=Math.min(bi(T),un),P=Qa(A=>T.next(M*A).value,M,30);return M+"ms "+P},toTransition:()=>{}};return T}fn.applyToOptions=t=>{const e=rd(t,100,fn);return t.ease=e.ease,t.duration=St(e.duration),t.type="keyframes",t};function Ar({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const f=t[0],d={done:!1,value:f},h=C=>a!==void 0&&C<a||c!==void 0&&C>c,m=C=>a===void 0?c:c===void 0||Math.abs(a-C)<Math.abs(c-C)?a:c;let y=n*e;const b=f+y,v=o===void 0?b:o(b);v!==b&&(y=v-f);const w=C=>-y*Math.exp(-C/r),x=C=>v+w(C),T=C=>{const R=w(C),D=x(C);d.done=Math.abs(R)<=l,d.value=d.done?v:D};let M,P;const A=C=>{h(d.value)&&(M=C,P=fn({keyframes:[d.value,m(d.value)],velocity:tc(x,C,d.value),damping:i,stiffness:s,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:C=>{let R=!1;return!P&&M===void 0&&(R=!0,T(C),A(C)),M!==void 0&&C>=M?P.next(C-M):(!R&&T(C),d)}}}function fd(t,e,n){const r=[],i=n||It.mix||Ja,s=t.length-1;for(let o=0;o<s;o++){let a=i(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||bt:e;a=Ue(c,a)}r.push(a)}return r}function dd(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const s=t.length;if(Vt(s===e.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>e[0];if(s===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=fd(e,r,i),c=a.length,l=u=>{if(o&&u<t[0])return e[0];let f=0;if(c>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const d=Ne(t[f],t[f+1],u);return a[f](d)};return n?u=>l(jt(t[0],t[s-1],u)):l}function hd(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Ne(0,e,r);t.push(J(n,1,i))}}function md(t){const e=[0];return hd(e,t.length-1),e}function pd(t,e){return t.map(n=>n*e)}function gd(t,e){return t.map(()=>e||_a).splice(0,t.length-1)}function oe({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Rf(r)?r.map(as):as(r),s={done:!1,value:e[0]},o=pd(n&&n.length===e.length?n:md(e),t),a=dd(o,e,{ease:Array.isArray(i)?i:gd(e,i)});return{calculatedDuration:t,next:c=>(s.value=a(c),s.done=c>=t,s)}}const yd=t=>t!==null;function xi(t,{repeat:e,repeatType:n="loop"},r,i=1){const s=t.filter(yd),a=i<0||e&&n!=="loop"&&e%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const vd={decay:Ar,inertia:Ar,tween:oe,keyframes:oe,spring:fn};function ec(t){typeof t.type=="string"&&(t.type=vd[t.type])}class wi{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const bd=t=>t/100;class Ci extends wi{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==ut.now()&&this.tick(ut.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;ec(e);const{type:n=oe,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=e;let{keyframes:a}=e;const c=n||oe;process.env.NODE_ENV!=="production"&&c!==oe&&Vt(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==oe&&typeof a[0]!="number"&&(this.mixKeyframes=Ue(bd,Ja(a[0],a[1])),a=[0,100]);const l=c(V(p({},e),{keyframes:a}));s==="mirror"&&(this.mirroredGenerator=c(V(p({},e),{keyframes:[...a].reverse(),velocity:-o}))),l.calculatedDuration===null&&(l.calculatedDuration=bi(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:u,repeat:f,repeatType:d,repeatDelay:h,type:m,onUpdate:y,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,T=r;if(f){const C=Math.min(this.currentTime,i)/a;let R=Math.floor(C),D=C%1;!D&&C>=1&&(D=1),D===1&&R--,R=Math.min(R,f+1),!!(R%2)&&(d==="reverse"?(D=1-D,h&&(D-=h/a)):d==="mirror"&&(T=o)),x=jt(0,1,D)*a}const M=w?{done:!1,value:u[0]}:T.next(x);s&&(M.value=s(M.value));let{done:P}=M;!w&&c!==null&&(P=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return A&&m!==Ar&&(M.value=xi(u,this.options,b,this.speed)),y&&y(M.value),A&&this.finish(),M}then(e,n){return this.finished.then(e,n)}get duration(){return vt(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+vt(e)}get time(){return vt(this.currentTime)}set time(e){var n;e=St(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(ut.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=vt(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:e=nd,startTime:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n!=null?n:r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ut.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function xd(t){var e;for(let n=1;n<t.length;n++)(e=t[n])!=null||(t[n]=t[n-1])}const Ht=t=>t*180/Math.PI,Er=t=>{const e=Ht(Math.atan2(t[1],t[0]));return Rr(e)},wd={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Er,rotateZ:Er,skewX:t=>Ht(Math.atan(t[1])),skewY:t=>Ht(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Rr=t=>(t=t%360,t<0&&(t+=360),t),hs=Er,ms=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ps=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Cd={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ms,scaleY:ps,scale:t=>(ms(t)+ps(t))/2,rotateX:t=>Rr(Ht(Math.atan2(t[6],t[5]))),rotateY:t=>Rr(Ht(Math.atan2(-t[2],t[0]))),rotateZ:hs,rotate:hs,skewX:t=>Ht(Math.atan(t[4])),skewY:t=>Ht(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Mr(t){return t.includes("scale")?1:0}function kr(t,e){if(!t||t==="none")return Mr(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Cd,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=wd,i=a}if(!i)return Mr(e);const s=r[e],o=i[1].split(",").map(Sd);return typeof s=="function"?s(o):o[s]}const Td=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return kr(n,e)};function Sd(t){return parseFloat(t.trim())}const we=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ce=new Set(we),gs=t=>t===xe||t===$,Pd=new Set(["x","y","z"]),Ad=we.filter(t=>!Pd.has(t));function Ed(t){const e=[];return Ad.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Gt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>kr(e,"x"),y:(t,{transform:e})=>kr(e,"y")};Gt.translateX=Gt.x;Gt.translateY=Gt.y;const qt=new Set;let Dr=!1,jr=!1,Vr=!1;function nc(){if(jr){const t=Array.from(qt).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=Ed(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}jr=!1,Dr=!1,qt.forEach(t=>t.complete(Vr)),qt.clear()}function rc(){qt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(jr=!0)})}function Rd(){Vr=!0,rc(),nc(),Vr=!1}class Ti{constructor(e,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(qt.add(this),Dr||(Dr=!0,X.read(rc),X.resolveKeyframes(nc))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;if(e[0]===null){const s=i==null?void 0:i.get(),o=e[e.length-1];if(s!==void 0)e[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&s===void 0&&i.set(e[0])}xd(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),qt.delete(this)}cancel(){this.state==="scheduled"&&(qt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Md=t=>t.startsWith("--");function kd(t,e,n){Md(e)?t.style.setProperty(e,n):t.style[e]=n}const Dd=ui(()=>window.ScrollTimeline!==void 0),jd={};function Vd(t,e){const n=ui(t);return()=>{var r;return(r=jd[e])!=null?r:n()}}const ic=Vd(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ke=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,ys={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ke([0,.65,.55,1]),circOut:ke([.55,0,1,.45]),backIn:ke([.31,.01,.66,-.59]),backOut:ke([.33,1.53,.69,.99])};function sc(t,e){if(t)return typeof t=="function"?ic()?Qa(t,e):"ease-out":Ua(t)?ke(t):Array.isArray(t)?t.map(n=>sc(n,e)||ys.easeOut):ys[t]}function Id(t,e,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[e]:n};c&&(u.offset=c);const f=sc(a,i);Array.isArray(f)&&(u.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return l&&(d.pseudoElement=l),t.animate(u,d)}function oc(t){return typeof t=="function"&&"applyToOptions"in t}function Nd(n){var r=n,{type:t}=r,e=W(r,["type"]);var i,s;return oc(t)&&ic()?t.applyToOptions(e):((i=e.duration)!=null||(e.duration=300),(s=e.ease)!=null||(e.ease="easeOut"),e)}class Ld extends wi{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=e,Vt(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=Nd(e);this.animation=Id(n,r,i,l,s),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const u=xi(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):kd(n,r,u),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,r;const e=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return vt(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+vt(e)}get time(){return vt(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=St(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Dd()?(this.animation.timeline=e,bt):n(this)}}const ac={anticipate:$a,backInOut:Ba,circInOut:Fa};function Bd(t){return t in ac}function $d(t){typeof t.ease=="string"&&Bd(t.ease)&&(t.ease=ac[t.ease])}const vs=10;class Od extends Ld{constructor(e){$d(e),ec(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){var u;const l=this.options,{motionValue:n,onUpdate:r,onComplete:i,element:s}=l,o=W(l,["motionValue","onUpdate","onComplete","element"]);if(!n)return;if(e!==void 0){n.set(e);return}const a=new Ci(V(p({},o),{autoplay:!1})),c=St((u=this.finishedTime)!=null?u:this.time);n.setWithVelocity(a.sample(c-vs).value,a.sample(c).value,vs),a.stop()}}const bs=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&($t.test(t)||t==="0")&&!t.startsWith("url("));function Fd(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function _d(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const s=t[t.length-1],o=bs(i,e),a=bs(s,e);return be(o===a,`You are trying to animate ${e} from "${i}" to "${s}". "${o?s:i}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:Fd(t)||(n==="spring"||oc(n))&&r}function Ir(t){t.duration=0,t.type="keyframes"}const Ud=new Set(["opacity","clipPath","filter","transform"]),zd=ui(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Wd(t){var u;const{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=t;if(!(((u=e==null?void 0:e.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=e.owner.getProps();return zd()&&n&&Ud.has(n)&&(n!=="transform"||!l)&&!c&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const Hd=40;class Gd extends wi{constructor(d){var h=d,{autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:c,motionValue:l,element:u}=h,f=W(h,["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"]);var b;super(),this.stop=()=>{var v,w;this._animation&&(this._animation.stop(),(v=this.stopTimeline)==null||v.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=ut.now();const m=p({autoplay:e,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:c,motionValue:l,element:u},f),y=(u==null?void 0:u.KeyframeResolver)||Ti;this.keyframeResolver=new y(a,(v,w,x)=>this.onKeyframesResolved(v,w,m,!x),c,l,u),(b=this.keyframeResolver)==null||b.scheduleResolve()}onKeyframesResolved(e,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:c,isHandoff:l,onUpdate:u}=r;this.resolvedAt=ut.now(),_d(e,s,o,a)||((It.instantAnimations||!c)&&(u==null||u(xi(e,r,n))),e[0]=e[e.length-1],Ir(r),r.repeat=0);const f=i?this.resolvedAt?this.resolvedAt-this.createdAt>Hd?this.resolvedAt:this.createdAt:this.createdAt:void 0,d=V(p({startTime:f,finalKeyframe:n},r),{keyframes:e}),h=!l&&Wd(d)?new Od(V(p({},d),{element:d.motionValue.owner.current})):new Ci(d);h.finished.then(()=>this.notifyFinished()).catch(bt),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),Rd()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const qd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Kd(t){const e=qd.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n!=null?n:r}`,i]}const Yd=4;function cc(t,e,n=1){Vt(n<=Yd,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=Kd(t);if(!r)return;const s=window.getComputedStyle(e).getPropertyValue(r);if(s){const o=s.trim();return Ma(o)?parseFloat(o):o}return pi(i)?cc(i,e,n+1):i}function Si(t,e){var n,r;return(r=(n=t==null?void 0:t[e])!=null?n:t==null?void 0:t.default)!=null?r:t}const lc=new Set(["width","height","top","left","right","bottom",...we]),Xd={test:t=>t==="auto",parse:t=>t},uc=t=>e=>e.test(t),fc=[xe,$,Mt,Lt,Ff,Of,Xd],xs=t=>fc.find(uc(t));function Zd(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Da(t):!0}const Jd=new Set(["brightness","contrast","saturate","opacity"]);function Qd(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(gi)||[];if(!r)return t;const i=n.replace(r,"");let s=Jd.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+i+")"}const th=/\b([a-z-]*)\(.*?\)/gu,Nr=V(p({},$t),{getAnimatableNone:t=>{const e=t.match(th);return e?e.map(Qd).join(" "):t}}),ws=V(p({},xe),{transform:Math.round}),eh={rotate:Lt,rotateX:Lt,rotateY:Lt,rotateZ:Lt,scale:Qe,scaleX:Qe,scaleY:Qe,scaleZ:Qe,skew:Lt,skewX:Lt,skewY:Lt,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:Le,originX:cs,originY:cs,originZ:$},Pi=V(p({borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,radius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,backgroundPositionX:$,backgroundPositionY:$},eh),{zIndex:ws,fillOpacity:Le,strokeOpacity:Le,numOctaves:ws}),nh=V(p({},Pi),{color:tt,backgroundColor:tt,outlineColor:tt,fill:tt,stroke:tt,borderColor:tt,borderTopColor:tt,borderRightColor:tt,borderBottomColor:tt,borderLeftColor:tt,filter:Nr,WebkitFilter:Nr}),dc=t=>nh[t];function hc(t,e){let n=dc(t);return n!==Nr&&(n=$t),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const rh=new Set(["auto","none","0"]);function ih(t,e,n){let r=0,i;for(;r<t.length&&!i;){const s=t[r];typeof s=="string"&&!rh.has(s)&&Be(s).values.length&&(i=t[r]),r++}if(i&&n)for(const s of e)t[s]=hc(n,i)}class sh extends Ti{constructor(e,n,r,i,s){super(e,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let l=e[c];if(typeof l=="string"&&(l=l.trim(),pi(l))){const u=cc(l,n.current);u!==void 0&&(e[c]=u),c===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!lc.has(r)||e.length!==2)return;const[i,s]=e,o=xs(i),a=xs(s);if(o!==a)if(gs(o)&&gs(a))for(let c=0;c<e.length;c++){const l=e[c];typeof l=="string"&&(e[c]=parseFloat(l))}else Gt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)(e[i]===null||Zd(e[i]))&&r.push(i);r.length&&ih(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Gt[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=Gt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([c,l])=>{e.getValue(c).set(l)}),this.resolveNoneKeyframes()}}function oh(t,e,n){var r;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const s=(r=n==null?void 0:n[t])!=null?r:i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}const mc=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function pc(t){return ka(t)&&"offsetHeight"in t}const Cs=30,ah=t=>!isNaN(parseFloat(t));class ch{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=ut.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=ut.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ah(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&di(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new fi);const r=this.events[e].add(n);return e==="change"?()=>{r(),X.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=ut.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Cs)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Cs);return ja(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pe(t,e){return new ch(t,e)}const{schedule:Ai}=za(queueMicrotask,!1),Ct={x:!1,y:!1};function gc(){return Ct.x||Ct.y}function lh(t){return t==="x"||t==="y"?Ct[t]?null:(Ct[t]=!0,()=>{Ct[t]=!1}):Ct.x||Ct.y?null:(Ct.x=Ct.y=!0,()=>{Ct.x=Ct.y=!1})}function yc(t,e){const n=oh(t),r=new AbortController,i=V(p({passive:!0},e),{signal:r.signal});return[n,i,()=>r.abort()]}function Ts(t){return!(t.pointerType==="touch"||gc())}function uh(t,e,n={}){const[r,i,s]=yc(t,n),o=a=>{if(!Ts(a))return;const{target:c}=a,l=e(c,a);if(typeof l!="function"||!c)return;const u=f=>{Ts(f)&&(l(f),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const vc=(t,e)=>e?t===e?!0:vc(t,e.parentElement):!1,Ei=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,fh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dh(t){return fh.has(t.tagName)||t.tabIndex!==-1}const sn=new WeakSet;function Ss(t){return e=>{e.key==="Enter"&&t(e)}}function $n(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const hh=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=Ss(()=>{if(sn.has(n))return;$n(n,"down");const i=Ss(()=>{$n(n,"up")}),s=()=>$n(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",s,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function Ps(t){return Ei(t)&&!gc()}function mh(t,e,n={}){const[r,i,s]=yc(t,n),o=a=>{const c=a.currentTarget;if(!Ps(a))return;sn.add(c);const l=e(c,a),u=(h,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),sn.has(c)&&sn.delete(c),Ps(h)&&typeof l=="function"&&l(h,{success:m})},f=h=>{u(h,c===window||c===document||n.useGlobalTarget||vc(c,h.target))},d=h=>{u(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),pc(a)&&(a.addEventListener("focus",l=>hh(l,i)),!dh(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function bc(t){return ka(t)&&"ownerSVGElement"in t}function ph(t){return bc(t)&&t.tagName==="svg"}const at=t=>!!(t&&t.getVelocity),gh=[...fc,tt,$t],yh=t=>gh.find(uc(t)),Ri=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function As(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function vh(...t){return e=>{let n=!1;const r=t.map(i=>{const s=As(i,e);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():As(t[i],null)}}}}function bh(...t){return yn.useCallback(vh(...t),t)}class xh extends yn.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=pc(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function wh({children:t,isPresent:e,anchorX:n,root:r}){const i=S.useId(),s=S.useRef(null),o=S.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=S.useContext(Ri),c=bh(s,t==null?void 0:t.ref);return S.useInsertionEffect(()=>{const{width:l,height:u,top:f,left:d,right:h}=o.current;if(e||!s.current||!l||!u)return;const m=n==="left"?`left: ${d}`:`right: ${h}`;s.current.dataset.motionPopId=i;const y=document.createElement("style");a&&(y.nonce=a);const b=r!=null?r:document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
10
|
+
${l}`}function ru({color:t,theme:e,autoContrast:n}){return e.autoContrast&&ze({color:t||e.primaryColor,theme:e}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function ts(t,e){return ru({color:t.colors[t.primaryColor][Ne(t,e)],theme:t,autoContrast:null})}function Ze({theme:t,color:e,colorScheme:n,name:r=e,withColorValues:i=!0}){if(!t.colors[e])return{};if(n==="light"){const a=Ne(t,"light"),c={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:ne(t.colors[e][a],.1),[`--mantine-color-${r}-light-hover`]:ne(t.colors[e][a],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-outline-hover`]:ne(t.colors[e][a],.05)};return i?p({[`--mantine-color-${r}-0`]:t.colors[e][0],[`--mantine-color-${r}-1`]:t.colors[e][1],[`--mantine-color-${r}-2`]:t.colors[e][2],[`--mantine-color-${r}-3`]:t.colors[e][3],[`--mantine-color-${r}-4`]:t.colors[e][4],[`--mantine-color-${r}-5`]:t.colors[e][5],[`--mantine-color-${r}-6`]:t.colors[e][6],[`--mantine-color-${r}-7`]:t.colors[e][7],[`--mantine-color-${r}-8`]:t.colors[e][8],[`--mantine-color-${r}-9`]:t.colors[e][9]},c):c}const s=Ne(t,"dark"),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${s})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${s===9?8:s+1})`,[`--mantine-color-${r}-light`]:ne(t.colors[e][Math.max(0,s-2)],.15),[`--mantine-color-${r}-light-hover`]:ne(t.colors[e][Math.max(0,s-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(s-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(s-4,0)})`,[`--mantine-color-${r}-outline-hover`]:ne(t.colors[e][Math.max(s-4,0)],.05)};return i?p({[`--mantine-color-${r}-0`]:t.colors[e][0],[`--mantine-color-${r}-1`]:t.colors[e][1],[`--mantine-color-${r}-2`]:t.colors[e][2],[`--mantine-color-${r}-3`]:t.colors[e][3],[`--mantine-color-${r}-4`]:t.colors[e][4],[`--mantine-color-${r}-5`]:t.colors[e][5],[`--mantine-color-${r}-6`]:t.colors[e][6],[`--mantine-color-${r}-7`]:t.colors[e][7],[`--mantine-color-${r}-8`]:t.colors[e][8],[`--mantine-color-${r}-9`]:t.colors[e][9]},o):o}function iu(t){return!!t&&typeof t=="object"&&"mantine-virtual-color"in t}function re(t,e,n){Mt(e).forEach(r=>Object.assign(t,{[`--mantine-${n}-${r}`]:e[r]}))}const ua=t=>{const e=Ne(t,"light"),n=t.defaultRadius in t.radius?t.radius[t.defaultRadius]:k(t.defaultRadius),r={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":t.scale.toString(),"--mantine-cursor-type":t.cursorType,"--mantine-webkit-font-smoothing":t.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":t.fontSmoothing?"grayscale":"unset","--mantine-color-white":t.white,"--mantine-color-black":t.black,"--mantine-line-height":t.lineHeights.md,"--mantine-font-family":t.fontFamily,"--mantine-font-family-monospace":t.fontFamilyMonospace,"--mantine-font-family-headings":t.headings.fontFamily,"--mantine-heading-font-weight":t.headings.fontWeight,"--mantine-heading-text-wrap":t.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${t.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${t.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${t.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${t.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${t.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":ts(t,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":t.black,"--mantine-color-body":t.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-${e})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":ts(t,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};re(r.variables,t.breakpoints,"breakpoint"),re(r.variables,t.spacing,"spacing"),re(r.variables,t.fontSizes,"font-size"),re(r.variables,t.lineHeights,"line-height"),re(r.variables,t.shadows,"shadow"),re(r.variables,t.radius,"radius"),t.colors[t.primaryColor].forEach((s,o)=>{r.variables[`--mantine-primary-color-${o}`]=`var(--mantine-color-${t.primaryColor}-${o})`}),Mt(t.colors).forEach(s=>{const o=t.colors[s];if(iu(o)){Object.assign(r.light,Ze({theme:t,name:o.name,color:o.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,Ze({theme:t,name:o.name,color:o.dark,colorScheme:"dark",withColorValues:!0}));return}o.forEach((a,c)=>{r.variables[`--mantine-color-${s}-${c}`]=a}),Object.assign(r.light,Ze({theme:t,color:s,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,Ze({theme:t,color:s,colorScheme:"dark",withColorValues:!1}))});const i=t.headings.sizes;return Mt(i).forEach(s=>{r.variables[`--mantine-${s}-font-size`]=i[s].fontSize,r.variables[`--mantine-${s}-line-height`]=i[s].lineHeight,r.variables[`--mantine-${s}-font-weight`]=i[s].fontWeight||t.headings.fontWeight}),r};function su({theme:t,generator:e}){const n=ua(t),r=e==null?void 0:e(t);return r?qr(n,r):n}const jn=ua(Jr);function ou(t){const e={variables:{},light:{},dark:{}};return Mt(t.variables).forEach(n=>{jn.variables[n]!==t.variables[n]&&(e.variables[n]=t.variables[n])}),Mt(t.light).forEach(n=>{jn.light[n]!==t.light[n]&&(e.light[n]=t.light[n])}),Mt(t.dark).forEach(n=>{jn.dark[n]!==t.dark[n]&&(e.dark[n]=t.dark[n])}),e}function au(t){return la({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},t)}function fa({cssVariablesSelector:t,deduplicateCssVariables:e}){const n=Jt(),r=Xr(),i=Bl(),s=su({theme:n,generator:i}),o=(t===void 0||t===":root"||t===":host")&&e,a=o?ou(s):s,c=la(a,t);return c?g.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${c}${o?"":au(t)}`}}):null}fa.displayName="@mantine/CssVariables";function ie(t,e){var i,s;const n=typeof window!="undefined"&&"matchMedia"in window&&((i=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:i.matches),r=t!=="auto"?t:n?"dark":"light";(s=e())==null||s.setAttribute("data-mantine-color-scheme",r)}function cu({manager:t,defaultColorScheme:e,getRootElement:n,forceColorScheme:r}){const i=S.useRef(null),[s,o]=S.useState(()=>t.get(e)),a=r||s,c=S.useCallback(u=>{r||(ie(u,n),o(u),t.set(u))},[t.set,a,r]),l=S.useCallback(()=>{o(e),ie(e,n),t.clear()},[t.clear,e]);return S.useEffect(()=>(t.subscribe(c),t.unsubscribe),[t.subscribe,t.unsubscribe]),sa(()=>{ie(t.get(e),n)},[]),S.useEffect(()=>{var f;if(r)return ie(r,n),()=>{};r===void 0&&ie(s,n),typeof window!="undefined"&&"matchMedia"in window&&(i.current=window.matchMedia("(prefers-color-scheme: dark)"));const u=d=>{s==="auto"&&ie(d.matches?"dark":"light",n)};return(f=i.current)==null||f.addEventListener("change",u),()=>{var d;return(d=i.current)==null?void 0:d.removeEventListener("change",u)}},[s,r]),{colorScheme:a,setColorScheme:c,clearColorScheme:l}}function lu({respectReducedMotion:t,getRootElement:e}){sa(()=>{var n;t&&((n=e())==null||n.setAttribute("data-respect-reduced-motion","true"))},[t])}function xr({theme:t,children:e,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:s=!0,withCssVariables:o=!0,cssVariablesSelector:a,classNamesPrefix:c="mantine",colorSchemeManager:l=Jl(),defaultColorScheme:u="light",getRootElement:f=()=>document.documentElement,cssVariablesResolver:d,forceColorScheme:h,stylesTransform:m,env:y}){const{colorScheme:b,setColorScheme:v,clearColorScheme:w}=cu({defaultColorScheme:u,forceColorScheme:h,manager:l,getRootElement:f});return lu({respectReducedMotion:(t==null?void 0:t.respectReducedMotion)||!1,getRootElement:f}),g.jsx(aa.Provider,{value:{colorScheme:b,setColorScheme:v,clearColorScheme:w,getRootElement:f,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:d,cssVariablesSelector:a!=null?a:":root",withStaticClasses:r,stylesTransform:m,env:y},children:g.jsxs(ca,{theme:t,children:[o&&g.jsx(fa,{cssVariablesSelector:a,deduplicateCssVariables:s}),i&&g.jsx(nu,{}),e]})})}xr.displayName="@mantine/core/MantineProvider";const uu={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function fu({theme:t,options:e,unstyled:n}){return Zt((e==null?void 0:e.focusable)&&!n&&(t.focusClassName||uu[t.focusRing]),(e==null?void 0:e.active)&&!n&&t.activeClassName)}function du({selector:t,stylesCtx:e,options:n,props:r,theme:i}){return Yr({theme:i,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||r,stylesCtx:e})[t]}function es({selector:t,stylesCtx:e,theme:n,classNames:r,props:i}){return Yr({theme:n,classNames:r,props:i,stylesCtx:e})[t]}function hu({rootSelector:t,selector:e,className:n}){return t===e?n:void 0}function mu({selector:t,classes:e,unstyled:n}){return n?void 0:e[t]}function pu({themeName:t,classNamesPrefix:e,selector:n,withStaticClass:r}){return r===!1?[]:t.map(i=>`${e}-${i}-${n}`)}function gu({themeName:t,theme:e,selector:n,props:r,stylesCtx:i}){return t.map(s=>{var o,a;return(a=Yr({theme:e,classNames:(o=e.components[s])==null?void 0:o.classNames,props:r,stylesCtx:i}))==null?void 0:a[n]})}function yu({options:t,classes:e,selector:n,unstyled:r}){return t!=null&&t.variant&&!r?e[`${n}--${t.variant}`]:void 0}function vu({theme:t,options:e,themeName:n,selector:r,classNamesPrefix:i,classNames:s,classes:o,unstyled:a,className:c,rootSelector:l,props:u,stylesCtx:f,withStaticClasses:d,headless:h,transformedStyles:m}){return Zt(fu({theme:t,options:e,unstyled:a||h}),gu({theme:t,themeName:n,selector:r,props:u,stylesCtx:f}),yu({options:e,classes:o,selector:r,unstyled:a}),es({selector:r,stylesCtx:f,theme:t,classNames:s,props:u}),es({selector:r,stylesCtx:f,theme:t,classNames:m,props:u}),du({selector:r,stylesCtx:f,options:e,props:u,theme:t}),hu({rootSelector:l,selector:r,className:c}),mu({selector:r,classes:o,unstyled:a||h}),d&&!h&&pu({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:e==null?void 0:e.withStaticClass}),e==null?void 0:e.className)}function bu({theme:t,themeName:e,props:n,stylesCtx:r,selector:i}){return e.map(s=>{var o;return vr({theme:t,styles:(o=t.components[s])==null?void 0:o.styles,props:n,stylesCtx:r})[i]}).reduce((s,o)=>p(p({},s),o),{})}function wr({style:t,theme:e}){return Array.isArray(t)?[...t].reduce((n,r)=>p(p({},n),wr({style:r,theme:e})),{}):typeof t=="function"?t(e):t==null?{}:t}function xu(t){return t.reduce((e,n)=>(n&&Object.keys(n).forEach(r=>{e[r]=p(p({},e[r]),Kr(n[r]))}),e),{})}function wu({vars:t,varsResolver:e,theme:n,props:r,stylesCtx:i,selector:s,themeName:o,headless:a}){var c;return(c=xu([a?{}:e==null?void 0:e(n,r,i),...o.map(l=>{var u,f,d;return(d=(f=(u=n.components)==null?void 0:u[l])==null?void 0:f.vars)==null?void 0:d.call(f,n,r,i)}),t==null?void 0:t(n,r,i)]))==null?void 0:c[s]}function Cu({theme:t,themeName:e,selector:n,options:r,props:i,stylesCtx:s,rootSelector:o,styles:a,style:c,vars:l,varsResolver:u,headless:f,withStylesTransform:d}){return p(p(p(p(p(p({},!d&&bu({theme:t,themeName:e,props:i,stylesCtx:s,selector:n})),!d&&vr({theme:t,styles:a,props:i,stylesCtx:s})[n]),!d&&vr({theme:t,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||i,stylesCtx:s})[n]),wu({theme:t,props:i,stylesCtx:s,vars:l,varsResolver:u,selector:n,themeName:e,headless:f})),o===n?wr({style:c,theme:t}):null),wr({style:r==null?void 0:r.style,theme:t}))}function Tu({props:t,stylesCtx:e,themeName:n}){var o;const r=Jt(),i=(o=zl())==null?void 0:o();return{getTransformedStyles:a=>i?[...a.map(l=>i(l,{props:t,theme:r,ctx:e})),...n.map(l=>{var u;return i((u=r.components[l])==null?void 0:u.styles,{props:t,theme:r,ctx:e})})].filter(Boolean):[],withStylesTransform:!!i}}function pt({name:t,classes:e,props:n,stylesCtx:r,className:i,style:s,rootSelector:o="root",unstyled:a,classNames:c,styles:l,vars:u,varsResolver:f,attributes:d}){const h=Jt(),m=$l(),y=Ol(),b=Fl(),v=(Array.isArray(t)?t:[t]).filter(T=>T),{withStylesTransform:w,getTransformedStyles:x}=Tu({props:n,stylesCtx:r,themeName:v});return(T,M)=>p({className:vu({theme:h,options:M,themeName:v,selector:T,classNamesPrefix:m,classNames:c,classes:e,unstyled:a,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:y,headless:b,transformedStyles:x([M==null?void 0:M.styles,l])}),style:Cu({theme:h,themeName:v,selector:T,options:M,props:n,stylesCtx:r,rootSelector:o,styles:l,style:s,vars:u,varsResolver:f,headless:b,withStylesTransform:w})},d==null?void 0:d[T])}function ft(t,e,n){var o;const r=Jt(),i=(o=r.components[t])==null?void 0:o.defaultProps,s=typeof i=="function"?i(r):i;return p(p(p({},e),s),Kr(n))}function Dn(t){return Mt(t).reduce((e,n)=>t[n]!==void 0?`${e}${Pl(n)}:${t[n]};`:e,"").trim()}function Su({selector:t,styles:e,media:n,container:r}){const i=e?Dn(e):"",s=Array.isArray(n)?n.map(a=>`@media${a.query}{${t}{${Dn(a.styles)}}}`):[],o=Array.isArray(r)?r.map(a=>`@container ${a.query}{${t}{${Dn(a.styles)}}}`):[];return`${i?`${t}{${i}}`:""}${s.join("")}${o.join("")}`.trim()}function Pu(t){const e=Xr();return g.jsx("style",{"data-mantine-styles":"inline",nonce:e==null?void 0:e(),dangerouslySetInnerHTML:{__html:Su(t)}})}function Au(t){const _i=t,{m:e,mx:n,my:r,mt:i,mb:s,ml:o,mr:a,me:c,ms:l,p:u,px:f,py:d,pt:h,pb:m,pl:y,pr:b,pe:v,ps:w,bd:x,bdrs:T,bg:M,c:P,opacity:A,ff:C,fz:R,fw:j,lts:D,ta:I,lh:L,fs:B,tt:et,td:dt,w:G,miw:X,maw:rt,h:it,mih:E,mah:O,bgsz:U,bgp:H,bgr:ht,bga:wt,pos:_,top:Q,left:N,bottom:W,right:at,inset:mt,display:K,flex:gt,hiddenFrom:Ct,visibleFrom:yt,lightHidden:Se,darkHidden:Pn,sx:An}=_i,pl=z(_i,["m","mx","my","mt","mb","ml","mr","me","ms","p","px","py","pt","pb","pl","pr","pe","ps","bd","bdrs","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","w","miw","maw","h","mih","mah","bgsz","bgp","bgr","bga","pos","top","left","bottom","right","inset","display","flex","hiddenFrom","visibleFrom","lightHidden","darkHidden","sx"]);return{styleProps:Kr({m:e,mx:n,my:r,mt:i,mb:s,ml:o,mr:a,me:c,ms:l,p:u,px:f,py:d,pt:h,pb:m,pl:y,pr:b,pe:v,ps:w,bd:x,bg:M,c:P,opacity:A,ff:C,fz:R,fw:j,lts:D,ta:I,lh:L,fs:B,tt:et,td:dt,w:G,miw:X,maw:rt,h:it,mih:E,mah:O,bgsz:U,bgp:H,bgr:ht,bga:wt,pos:_,top:Q,left:N,bottom:W,right:at,inset:mt,display:K,flex:gt,bdrs:T,hiddenFrom:Ct,visibleFrom:yt,lightHidden:Se,darkHidden:Pn,sx:An}),rest:pl}}const Eu={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function ti(t,e){const n=ze({color:t,theme:e});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function Ru(t,e){const n=ze({color:t,theme:e});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:ti(t,e)}function Mu(t,e){if(typeof t=="number")return k(t);if(typeof t=="string"){const[n,r,...i]=t.split(" ").filter(o=>o.trim()!=="");let s=`${k(n)}`;return r&&(s+=` ${r}`),i.length>0&&(s+=` ${ti(i.join(" "),e)}`),s.trim()}return t}const ns={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function ku(t){return typeof t=="string"&&t in ns?ns[t]:t}const ju=["h1","h2","h3","h4","h5","h6"];function Du(t,e){return typeof t=="string"&&t in e.fontSizes?`var(--mantine-font-size-${t})`:typeof t=="string"&&ju.includes(t)?`var(--mantine-${t}-font-size)`:typeof t=="number"||typeof t=="string"?k(t):t}function Vu(t){return t}const Iu=["h1","h2","h3","h4","h5","h6"];function Nu(t,e){return typeof t=="string"&&t in e.lineHeights?`var(--mantine-line-height-${t})`:typeof t=="string"&&Iu.includes(t)?`var(--mantine-${t}-line-height)`:t}function Lu(t,e){return typeof t=="string"&&t in e.radius?`var(--mantine-radius-${t})`:typeof t=="number"||typeof t=="string"?k(t):t}function Bu(t){return typeof t=="number"?k(t):t}function $u(t,e){if(typeof t=="number")return k(t);if(typeof t=="string"){const n=t.replace("-","");if(!(n in e.spacing))return k(t);const r=`--mantine-spacing-${n}`;return t.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return t}const Vn={color:ti,textColor:Ru,fontSize:Du,spacing:$u,radius:Lu,identity:Vu,size:Bu,lineHeight:Nu,fontFamily:ku,border:Mu};function rs(t){return t.replace("(min-width: ","").replace("em)","")}function Ou(n){var r=n,{media:t}=r,e=z(r,["media"]);const s=Object.keys(t).sort((o,a)=>Number(rs(o))-Number(rs(a))).map(o=>({query:o,styles:t[o]}));return V(p({},e),{media:s})}function Fu(t){if(typeof t!="object"||t===null)return!1;const e=Object.keys(t);return!(e.length===1&&e[0]==="base")}function _u(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}function zu(t){return typeof t=="object"&&t!==null?Mt(t).filter(e=>e!=="base"):[]}function Uu(t,e){return typeof t=="object"&&t!==null&&e in t?t[e]:t}function Wu({styleProps:t,data:e,theme:n}){return Ou(Mt(t).reduce((r,i)=>{if(i==="hiddenFrom"||i==="visibleFrom"||i==="sx")return r;const s=e[i],o=Array.isArray(s.property)?s.property:[s.property],a=_u(t[i]);if(!Fu(t[i]))return o.forEach(l=>{r.inlineStyles[l]=Vn[s.type](a,n)}),r;r.hasResponsiveStyles=!0;const c=zu(t[i]);return o.forEach(l=>{a!=null&&(r.styles[l]=Vn[s.type](a,n)),c.forEach(u=>{const f=`(min-width: ${n.breakpoints[u]})`;r.media[f]=V(p({},r.media[f]),{[l]:Vn[s.type](Uu(t[i],u),n)})})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Hu(){return`__m__-${S.useId().replace(/[:«»]/g,"")}`}function da(t){return t.startsWith("data-")?t:`data-${t}`}function Gu(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return r===void 0||r===""||r===!1||r===null||(e[da(n)]=t[n]),e},{})}function ha(t){return t?typeof t=="string"?{[da(t)]:!0}:Array.isArray(t)?[...t].reduce((e,n)=>p(p({},e),ha(n)),{}):Gu(t):null}function Cr(t,e){return Array.isArray(t)?[...t].reduce((n,r)=>p(p({},n),Cr(r,e)),{}):typeof t=="function"?t(e):t==null?{}:t}function qu({theme:t,style:e,vars:n,styleProps:r}){const i=Cr(e,t),s=Cr(n,t);return p(p(p({},i),s),r)}const ma=S.forwardRef((y,m)=>{var b=y,{component:t,style:e,__vars:n,className:r,variant:i,mod:s,size:o,hiddenFrom:a,visibleFrom:c,lightHidden:l,darkHidden:u,renderRoot:f,__size:d}=b,h=z(b,["component","style","__vars","className","variant","mod","size","hiddenFrom","visibleFrom","lightHidden","darkHidden","renderRoot","__size"]);var j;const v=Jt(),w=t||"div",{styleProps:x,rest:T}=Au(h),M=_l(),P=(j=M==null?void 0:M())==null?void 0:j(x.sx),A=Hu(),C=Wu({styleProps:x,theme:v,data:Eu}),R=p(p({ref:m,style:qu({theme:v,style:e,vars:n,styleProps:C.inlineStyles}),className:Zt(r,P,{[A]:C.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":u,[`mantine-hidden-from-${a}`]:a,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":ra(o)?void 0:o||void 0,size:d},ha(s)),T);return g.jsxs(g.Fragment,{children:[C.hasResponsiveStyles&&g.jsx(Pu,{selector:`.${A}`,styles:C.styles,media:C.media}),typeof f=="function"?f(R):g.jsx(w,p({},R))]})});ma.displayName="@mantine/core/Box";const F=ma;function pa(t){return t}function ve(t){const e=S.forwardRef(t);return e.extend=pa,e.withProps=n=>{const r=S.forwardRef((i,s)=>g.jsx(e,V(p(p({},n),i),{ref:s})));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r},e}function Qt(t){const e=S.forwardRef(t);return e.withProps=n=>{const r=S.forwardRef((i,s)=>g.jsx(e,V(p(p({},n),i),{ref:s})));return r.extend=e.extend,r.displayName=`WithProps(${e.displayName})`,r},e.extend=pa,e}var ga={root:"m_87cf2631"};const Ku={__staticSelector:"UnstyledButton"},ei=Qt((t,e)=>{const n=ft("UnstyledButton",Ku,t),h=n,{className:r,component:i="button",__staticSelector:s,unstyled:o,classNames:a,styles:c,style:l,attributes:u}=h,f=z(h,["className","component","__staticSelector","unstyled","classNames","styles","style","attributes"]),d=pt({name:s,props:n,classes:ga,className:r,style:l,classNames:a,styles:c,unstyled:o,attributes:u});return g.jsx(F,p(V(p({},d("root",{focusable:!0})),{component:i,ref:e,type:i==="button"?"button":void 0}),f))});ei.classes=ga;ei.displayName="@mantine/core/UnstyledButton";var ya={root:"m_1b7284a3"};const Yu=(t,{radius:e,shadow:n})=>({root:{"--paper-radius":e===void 0?void 0:_e(e),"--paper-shadow":Ml(n)}}),oe=Qt((t,e)=>{const n=ft("Paper",null,t),v=n,{classNames:r,className:i,style:s,styles:o,unstyled:a,withBorder:c,vars:l,radius:u,shadow:f,variant:d,mod:h,attributes:m}=v,y=z(v,["classNames","className","style","styles","unstyled","withBorder","vars","radius","shadow","variant","mod","attributes"]),b=pt({name:"Paper",props:n,classes:ya,className:i,style:s,classNames:r,styles:o,unstyled:a,attributes:m,vars:l,varsResolver:Yu});return g.jsx(F,p(V(p({ref:e,mod:[{"data-with-border":c},h]},b("root")),{variant:d}),y))});oe.classes=ya;oe.displayName="@mantine/core/Paper";const Re=t=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${t==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),Je={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:V(p({},Re("bottom")),{common:{transformOrigin:"center center"}}),"pop-bottom-left":V(p({},Re("bottom")),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":V(p({},Re("bottom")),{common:{transformOrigin:"bottom right"}}),"pop-top-left":V(p({},Re("top")),{common:{transformOrigin:"top left"}}),"pop-top-right":V(p({},Re("top")),{common:{transformOrigin:"top right"}})},is={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function Xu({transition:t,state:e,duration:n,timingFunction:r}){const i={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof t=="string"?t in Je?p(p(p({transitionProperty:Je[t].transitionProperty},i),Je[t].common),Je[t][is[e]]):{}:p(p(p({transitionProperty:t.transitionProperty},i),t.common),t[is[e]])}function Zu({duration:t,exitDuration:e,timingFunction:n,mounted:r,onEnter:i,onExit:s,onEntered:o,onExited:a,enterDelay:c,exitDelay:l}){const u=Jt(),f=Il(),d=u.respectReducedMotion?f:!1,[h,m]=S.useState(d?0:t),[y,b]=S.useState(r?"entered":"exited"),v=S.useRef(-1),w=S.useRef(-1),x=S.useRef(-1);function T(){window.clearTimeout(v.current),window.clearTimeout(w.current),cancelAnimationFrame(x.current)}const M=A=>{T();const C=A?i:s,R=A?o:a,j=d?0:A?t:e;m(j),j===0?(typeof C=="function"&&C(),typeof R=="function"&&R(),b(A?"entered":"exited")):x.current=requestAnimationFrame(()=>{bl.flushSync(()=>{b(A?"pre-entering":"pre-exiting")}),x.current=requestAnimationFrame(()=>{typeof C=="function"&&C(),b(A?"entering":"exiting"),v.current=window.setTimeout(()=>{typeof R=="function"&&R(),b(A?"entered":"exited")},j)})})},P=A=>{if(T(),typeof(A?c:l)!="number"){M(A);return}w.current=window.setTimeout(()=>{M(A)},A?c:l)};return Vl(()=>{P(r)},[r]),S.useEffect(()=>()=>{T()},[]),{transitionDuration:h,transitionStatus:y,transitionTimingFunction:n||"ease"}}function va({keepMounted:t,transition:e="fade",duration:n=250,exitDuration:r=n,mounted:i,children:s,timingFunction:o="ease",onExit:a,onEntered:c,onEnter:l,onExited:u,enterDelay:f,exitDelay:d}){const h=Ul(),{transitionDuration:m,transitionStatus:y,transitionTimingFunction:b}=Zu({mounted:i,exitDuration:r,duration:n,timingFunction:o,onExit:a,onEntered:c,onEnter:l,onExited:u,enterDelay:f,exitDelay:d});return m===0||h==="test"?i?g.jsx(g.Fragment,{children:s({})}):t?s({display:"none"}):null:y==="exited"?t?s({display:"none"}):null:g.jsx(g.Fragment,{children:s(Xu({transition:e,duration:m,state:y,timingFunction:b}))})}va.displayName="@mantine/core/Transition";var Pt={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const ba=S.forwardRef((r,n)=>{var i=r,{className:t}=i,e=z(i,["className"]);return g.jsxs(F,V(p({component:"span",className:Zt(Pt.barsLoader,t)},e),{ref:n,children:[g.jsx("span",{className:Pt.bar}),g.jsx("span",{className:Pt.bar}),g.jsx("span",{className:Pt.bar})]}))});ba.displayName="@mantine/core/Bars";const xa=S.forwardRef((r,n)=>{var i=r,{className:t}=i,e=z(i,["className"]);return g.jsxs(F,V(p({component:"span",className:Zt(Pt.dotsLoader,t)},e),{ref:n,children:[g.jsx("span",{className:Pt.dot}),g.jsx("span",{className:Pt.dot}),g.jsx("span",{className:Pt.dot})]}))});xa.displayName="@mantine/core/Dots";const wa=S.forwardRef((r,n)=>{var i=r,{className:t}=i,e=z(i,["className"]);return g.jsx(F,V(p({component:"span",className:Zt(Pt.ovalLoader,t)},e),{ref:n}))});wa.displayName="@mantine/core/Oval";const Ca={bars:ba,oval:wa,dots:xa},Ju={loaders:Ca,type:"oval"},Qu=(t,{size:e,color:n})=>({root:{"--loader-size":jt(e,"loader-size"),"--loader-color":n?ln(n,t):void 0}}),pe=ve((t,e)=>{const n=ft("Loader",Ju,t),w=n,{size:r,color:i,type:s,vars:o,className:a,style:c,classNames:l,styles:u,unstyled:f,loaders:d,variant:h,children:m,attributes:y}=w,b=z(w,["size","color","type","vars","className","style","classNames","styles","unstyled","loaders","variant","children","attributes"]),v=pt({name:"Loader",props:n,classes:Pt,className:a,style:c,classNames:l,styles:u,unstyled:f,attributes:y,vars:o,varsResolver:Qu});return m?g.jsx(F,V(p(V(p({},v("root")),{ref:e}),b),{children:m})):g.jsx(F,p(V(p({},v("root")),{ref:e,component:d[s],variant:h,size:r}),b))});pe.defaultLoaders=Ca;pe.classes=Pt;pe.displayName="@mantine/core/Loader";var be={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const ss={orientation:"horizontal"},tf=(t,{borderWidth:e})=>({group:{"--ai-border-width":k(e)}}),ni=ve((t,e)=>{const n=ft("ActionIconGroup",ss,t),b=ft("ActionIconGroup",ss,t),{className:r,style:i,classNames:s,styles:o,unstyled:a,orientation:c,vars:l,borderWidth:u,variant:f,mod:d,attributes:h}=b,m=z(b,["className","style","classNames","styles","unstyled","orientation","vars","borderWidth","variant","mod","attributes"]),y=pt({name:"ActionIconGroup",props:n,classes:be,className:r,style:i,classNames:s,styles:o,unstyled:a,attributes:h,vars:l,varsResolver:tf,rootSelector:"group"});return g.jsx(F,p(V(p({},y("group")),{ref:e,variant:f,mod:[{"data-orientation":c},d],role:"group"}),m))});ni.classes=be;ni.displayName="@mantine/core/ActionIconGroup";const ef=(t,{radius:e,color:n,gradient:r,variant:i,autoContrast:s,size:o})=>{const a=t.variantColorResolver({color:n||t.primaryColor,theme:t,gradient:r,variant:i||"filled",autoContrast:s});return{groupSection:{"--section-height":jt(o,"section-height"),"--section-padding-x":jt(o,"section-padding-x"),"--section-fz":ia(o),"--section-radius":e===void 0?void 0:_e(e),"--section-bg":n||i?a.background:void 0,"--section-color":a.color,"--section-bd":n||i?a.border:void 0}}},ri=ve((t,e)=>{const n=ft("ActionIconGroupSection",null,t),b=n,{className:r,style:i,classNames:s,styles:o,unstyled:a,vars:c,variant:l,gradient:u,radius:f,autoContrast:d,attributes:h}=b,m=z(b,["className","style","classNames","styles","unstyled","vars","variant","gradient","radius","autoContrast","attributes"]),y=pt({name:"ActionIconGroupSection",props:n,classes:be,className:r,style:i,classNames:s,styles:o,unstyled:a,attributes:h,vars:c,varsResolver:ef,rootSelector:"groupSection"});return g.jsx(F,p(V(p({},y("groupSection")),{ref:e,variant:l}),m))});ri.classes=be;ri.displayName="@mantine/core/ActionIconGroupSection";const nf=(t,{size:e,radius:n,variant:r,gradient:i,color:s,autoContrast:o})=>{const a=t.variantColorResolver({color:s||t.primaryColor,theme:t,gradient:i,variant:r||"filled",autoContrast:o});return{root:{"--ai-size":jt(e,"ai-size"),"--ai-radius":n===void 0?void 0:_e(n),"--ai-bg":s||r?a.background:void 0,"--ai-hover":s||r?a.hover:void 0,"--ai-hover-color":s||r?a.hoverColor:void 0,"--ai-color":a.color,"--ai-bd":s||r?a.border:void 0}}},qt=Qt((t,e)=>{const n=ft("ActionIcon",null,t),R=n,{className:r,unstyled:i,variant:s,classNames:o,styles:a,style:c,loading:l,loaderProps:u,size:f,color:d,radius:h,__staticSelector:m,gradient:y,vars:b,children:v,disabled:w,"data-disabled":x,autoContrast:T,mod:M,attributes:P}=R,A=z(R,["className","unstyled","variant","classNames","styles","style","loading","loaderProps","size","color","radius","__staticSelector","gradient","vars","children","disabled","data-disabled","autoContrast","mod","attributes"]),C=pt({name:["ActionIcon",m],props:n,className:r,style:c,classes:be,classNames:o,styles:a,unstyled:i,attributes:P,vars:b,varsResolver:nf});return g.jsxs(ei,V(p(p({},C("root",{active:!w&&!l&&!x})),A),{unstyled:i,variant:s,size:f,disabled:w||l,ref:e,mod:[{loading:l,disabled:w||x},M],children:[typeof l=="boolean"&&g.jsx(va,{mounted:l,transition:"slide-down",duration:150,children:j=>g.jsx(F,V(p({component:"span"},C("loader",{style:j})),{"aria-hidden":!0,children:g.jsx(pe,p({color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)"},u))}))}),g.jsx(F,V(p({component:"span",mod:{loading:l}},C("icon")),{children:v}))]}))});qt.classes=be;qt.displayName="@mantine/core/ActionIcon";qt.Group=ni;qt.GroupSection=ri;function rf(t){return S.Children.toArray(t).filter(Boolean)}var Ta={root:"m_4081bf90"};const sf={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},of=(t,{grow:e,preventGrowOverflow:n,gap:r,align:i,justify:s,wrap:o},{childWidth:a})=>({root:{"--group-child-width":e&&n?a:void 0,"--group-gap":bn(r),"--group-align":i,"--group-justify":s,"--group-wrap":o}}),ot=ve((t,e)=>{const n=ft("Group",sf,t),D=n,{classNames:r,className:i,style:s,styles:o,unstyled:a,children:c,gap:l,align:u,justify:f,wrap:d,grow:h,preventGrowOverflow:m,vars:y,variant:b,__size:v,mod:w,attributes:x}=D,T=z(D,["classNames","className","style","styles","unstyled","children","gap","align","justify","wrap","grow","preventGrowOverflow","vars","variant","__size","mod","attributes"]),M=rf(c),P=M.length,A=bn(l!=null?l:"md"),R={childWidth:`calc(${100/P}% - (${A} - ${A} / ${P}))`},j=pt({name:"Group",props:n,stylesCtx:R,className:i,style:s,classes:Ta,classNames:r,styles:o,unstyled:a,attributes:x,vars:y,varsResolver:of});return g.jsx(F,V(p(V(p({},j("root")),{ref:e,variant:b,mod:[{grow:h},w],size:v}),T),{children:M}))});ot.classes=Ta;ot.displayName="@mantine/core/Group";var Sa={root:"m_b6d8b162"};function af(t){if(t==="start")return"start";if(t==="end"||t)return"end"}const cf={inherit:!1},lf=(t,{variant:e,lineClamp:n,gradient:r,size:i,color:s})=>({root:{"--text-fz":ia(i),"--text-lh":Rl(i),"--text-gradient":e==="gradient"?br(r,t):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":s?ln(s,t):void 0}}),q=Qt((t,e)=>{const n=ft("Text",cf,t),P=n,{lineClamp:r,truncate:i,inline:s,inherit:o,gradient:a,span:c,__staticSelector:l,vars:u,className:f,style:d,classNames:h,styles:m,unstyled:y,variant:b,mod:v,size:w,attributes:x}=P,T=z(P,["lineClamp","truncate","inline","inherit","gradient","span","__staticSelector","vars","className","style","classNames","styles","unstyled","variant","mod","size","attributes"]),M=pt({name:["Text",l],props:n,classes:Sa,className:f,style:d,classNames:h,styles:m,unstyled:y,attributes:x,vars:u,varsResolver:lf});return g.jsx(F,p(V(p({},M("root",{focusable:!0})),{ref:e,component:c?"span":"p",variant:b,mod:[{"data-truncate":af(i),"data-line-clamp":typeof r=="number","data-inline":s,"data-inherit":o},v],size:w}),T))});q.classes=Sa;q.displayName="@mantine/core/Text";const Pa=S.createContext(null),uf=Pa.Provider;function ff(){return{withinGroup:!!S.useContext(Pa)}}var xn={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const df=(t,{spacing:e})=>({group:{"--ag-spacing":bn(e)}}),ii=ve((t,e)=>{const n=ft("AvatarGroup",null,t),h=n,{classNames:r,className:i,style:s,styles:o,unstyled:a,vars:c,spacing:l,attributes:u}=h,f=z(h,["classNames","className","style","styles","unstyled","vars","spacing","attributes"]),d=pt({name:"AvatarGroup",classes:xn,props:n,className:i,style:s,classNames:r,styles:o,unstyled:a,attributes:u,vars:c,varsResolver:df,rootSelector:"group"});return g.jsx(uf,{value:!0,children:g.jsx(F,p(p({ref:e},d("group")),f))})});ii.classes=xn;ii.displayName="@mantine/core/AvatarGroup";function hf(t){return g.jsx("svg",V(p({},t),{"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}))}function mf(t){let e=0;for(let n=0;n<t.length;n+=1){const r=t.charCodeAt(n);e=(e<<5)-e+r,e|=0}return e}const pf=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"];function gf(t,e=pf){const n=mf(t),r=Math.abs(n)%e.length;return e[r]}function yf(t,e=2){const n=t.split(" ");return n.length===1?t.slice(0,e).toUpperCase():n.map(r=>r[0]).slice(0,e).join("").toUpperCase()}const vf=(t,{size:e,radius:n,variant:r,gradient:i,color:s,autoContrast:o,name:a,allowedInitialsColors:c})=>{const l=s==="initials"&&typeof a=="string"?gf(a,c):s,u=t.variantColorResolver({color:l||"gray",theme:t,gradient:i,variant:r||"light",autoContrast:o});return{root:{"--avatar-size":jt(e,"avatar-size"),"--avatar-radius":n===void 0?void 0:_e(n),"--avatar-bg":l||r?u.background:void 0,"--avatar-color":l||r?u.color:void 0,"--avatar-bd":l||r?u.border:void 0}}},Xt=Qt((t,e)=>{const n=ft("Avatar",null,t),j=n,{classNames:r,className:i,style:s,styles:o,unstyled:a,vars:c,src:l,alt:u,radius:f,color:d,gradient:h,imageProps:m,children:y,autoContrast:b,mod:v,name:w,allowedInitialsColors:x,attributes:T}=j,M=z(j,["classNames","className","style","styles","unstyled","vars","src","alt","radius","color","gradient","imageProps","children","autoContrast","mod","name","allowedInitialsColors","attributes"]),P=ff(),[A,C]=S.useState(!l),R=pt({name:"Avatar",props:n,classes:xn,className:i,style:s,classNames:r,styles:o,unstyled:a,attributes:T,vars:c,varsResolver:vf});return S.useEffect(()=>C(!l),[l]),g.jsx(F,V(p(V(p({},R("root")),{mod:[{"within-group":P.withinGroup},v],ref:e}),M),{children:A||!l?g.jsx("span",V(p({},R("placeholder")),{title:u,children:y||typeof w=="string"&&yf(w)||g.jsx(hf,{})})):g.jsx("img",V(p(p({},m),R("image")),{src:l,alt:u,onError:D=>{var I;C(!0),(I=m==null?void 0:m.onError)==null||I.call(m,D)}}))}))});Xt.classes=xn;Xt.displayName="@mantine/core/Avatar";Xt.Group=ii;var Aa={root:"m_4451eb3a"};const si=Qt((t,e)=>{const n=ft("Center",null,t),m=n,{classNames:r,className:i,style:s,styles:o,unstyled:a,vars:c,inline:l,mod:u,attributes:f}=m,d=z(m,["classNames","className","style","styles","unstyled","vars","inline","mod","attributes"]),h=pt({name:"Center",props:n,classes:Aa,className:i,style:s,classNames:r,styles:o,unstyled:a,attributes:f,vars:c});return g.jsx(F,p(p({ref:e,mod:[{inline:l},u]},h("root")),d))});si.classes=Aa;si.displayName="@mantine/core/Center";var Ea={root:"m_9e117634"};const bf=(t,{radius:e,fit:n})=>({root:{"--image-radius":e===void 0?void 0:_e(e),"--image-object-fit":n}}),he=Qt((t,e)=>{const n=ft("Image",null,t),T=n,{classNames:r,className:i,style:s,styles:o,unstyled:a,vars:c,onError:l,src:u,radius:f,fit:d,fallbackSrc:h,mod:m,attributes:y}=T,b=z(T,["classNames","className","style","styles","unstyled","vars","onError","src","radius","fit","fallbackSrc","mod","attributes"]),[v,w]=S.useState(!u);S.useEffect(()=>w(!u),[u]);const x=pt({name:"Image",classes:Ea,props:n,className:i,style:s,classNames:r,styles:o,unstyled:a,attributes:y,vars:c,varsResolver:bf});return v&&h?g.jsx(F,p(V(p({component:"img",ref:e,src:h},x("root")),{onError:l,mod:["fallback",m]}),b)):g.jsx(F,p(V(p({component:"img",ref:e},x("root")),{src:u,onError:M=>{l==null||l(M),w(!0)},mod:m}),b))});he.classes=Ea;he.displayName="@mantine/core/Image";var Ra={root:"m_6d731127"};const xf={gap:"md",align:"stretch",justify:"flex-start"},wf=(t,{gap:e,align:n,justify:r})=>({root:{"--stack-gap":bn(e),"--stack-align":n,"--stack-justify":r}}),Rt=ve((t,e)=>{const n=ft("Stack",xf,t),b=n,{classNames:r,className:i,style:s,styles:o,unstyled:a,vars:c,align:l,justify:u,gap:f,variant:d,attributes:h}=b,m=z(b,["classNames","className","style","styles","unstyled","vars","align","justify","gap","variant","attributes"]),y=pt({name:"Stack",props:n,classes:Ra,className:i,style:s,classNames:r,styles:o,unstyled:a,attributes:h,vars:c,varsResolver:wf});return g.jsx(F,p(V(p({ref:e},y("root")),{variant:d}),m))});Rt.classes=Ra;Rt.displayName="@mantine/core/Stack";const oi=S.createContext({});function ai(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}const ci=typeof window!="undefined",Ma=ci?S.useLayoutEffect:S.useEffect,wn=S.createContext(null);function li(t,e){t.indexOf(e)===-1&&t.push(e)}function ui(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Vt=(t,e,n)=>n>e?e:n<t?t:n;function Tr(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}let xe=()=>{},It=()=>{};process.env.NODE_ENV!=="production"&&(xe=(t,e,n)=>{!t&&typeof console!="undefined"&&console.warn(Tr(e,n))},It=(t,e,n)=>{if(!t)throw new Error(Tr(e,n))});const Nt={},ka=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function ja(t){return typeof t=="object"&&t!==null}const Da=t=>/^0[^.\s]+$/u.test(t);function fi(t){let e;return()=>(e===void 0&&(e=t()),e)}const xt=t=>t,Cf=(t,e)=>n=>e(t(n)),Ue=(...t)=>t.reduce(Cf),Le=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class di{constructor(){this.subscriptions=[]}add(e){return li(this.subscriptions,e),()=>ui(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const At=t=>t*1e3,bt=t=>t/1e3;function Va(t,e){return e?t*(1e3/e):0}const os=new Set;function hi(t,e,n){t||os.has(e)||(console.warn(Tr(e,n)),os.add(e))}const Ia=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Tf=1e-7,Sf=12;function Pf(t,e,n,r,i){let s,o,a=0;do o=e+(n-e)/2,s=Ia(o,r,i)-t,s>0?n=o:e=o;while(Math.abs(s)>Tf&&++a<Sf);return o}function We(t,e,n,r){if(t===e&&n===r)return xt;const i=s=>Pf(s,0,1,t,n);return s=>s===0||s===1?s:Ia(i(s),e,r)}const Na=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,La=t=>e=>1-t(1-e),Ba=We(.33,1.53,.69,.99),mi=La(Ba),$a=Na(mi),Oa=t=>(t*=2)<1?.5*mi(t):.5*(2-Math.pow(2,-10*(t-1))),pi=t=>1-Math.sin(Math.acos(t)),Fa=La(pi),_a=Na(pi),Af=We(.42,0,1,1),Ef=We(0,0,.58,1),za=We(.42,0,.58,1),Rf=t=>Array.isArray(t)&&typeof t[0]!="number",Ua=t=>Array.isArray(t)&&typeof t[0]=="number",as={linear:xt,easeIn:Af,easeInOut:za,easeOut:Ef,circIn:pi,circInOut:_a,circOut:Fa,backIn:mi,backInOut:$a,backOut:Ba,anticipate:Oa},Mf=t=>typeof t=="string",cs=t=>{if(Ua(t)){It(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,n,r,i]=t;return We(e,n,r,i)}else if(Mf(t))return It(as[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),as[t];return t},Qe=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function kf(t,e){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){o.has(u)&&(l.schedule(u),t()),u(a)}const l={schedule:(u,f=!1,d=!1)=>{const m=d&&i?n:r;return f&&o.add(u),m.has(u)||m.add(u),u},cancel:u=>{r.delete(u),o.delete(u)},process:u=>{if(a=u,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),n.clear(),i=!1,s&&(s=!1,l.process(u))}};return l}const jf=40;function Wa(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Qe.reduce((x,T)=>(x[T]=kf(s),x),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:f,preRender:d,render:h,postRender:m}=o,y=()=>{const x=Nt.useManualTiming?i.timestamp:performance.now();n=!1,Nt.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,jf),1)),i.timestamp=x,i.isProcessing=!0,a.process(i),c.process(i),l.process(i),u.process(i),f.process(i),d.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(y))},b=()=>{n=!0,r=!0,i.isProcessing||t(y)};return{schedule:Qe.reduce((x,T)=>{const M=o[T];return x[T]=(P,A=!1,C=!1)=>(n||b(),M.schedule(P,A,C)),x},{}),cancel:x=>{for(let T=0;T<Qe.length;T++)o[Qe[T]].cancel(x)},state:i,steps:o}}const{schedule:Y,cancel:$t,state:st,steps:In}=Wa(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:xt,!0);let sn;function Df(){sn=void 0}const ut={now:()=>(sn===void 0&&ut.set(st.isProcessing||Nt.useManualTiming?st.timestamp:performance.now()),sn),set:t=>{sn=t,queueMicrotask(Df)}},Ha=t=>e=>typeof e=="string"&&e.startsWith(t),Ga=Ha("--"),Vf=Ha("var(--"),gi=t=>Vf(t)?If.test(t.split("/*")[0].trim()):!1,If=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,we={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Be=V(p({},we),{transform:t=>Vt(0,1,t)}),tn=V(p({},we),{default:1}),De=t=>Math.round(t*1e5)/1e5,yi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Nf(t){return t==null}const Lf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vi=(t,e)=>n=>!!(typeof n=="string"&&Lf.test(n)&&n.startsWith(t)||e&&!Nf(n)&&Object.prototype.hasOwnProperty.call(n,e)),qa=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(yi);return{[t]:parseFloat(i),[e]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Bf=t=>Vt(0,255,t),Nn=V(p({},we),{transform:t=>Math.round(Bf(t))}),Ht={test:vi("rgb","red"),parse:qa("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Nn.transform(t)+", "+Nn.transform(e)+", "+Nn.transform(n)+", "+De(Be.transform(r))+")"};function $f(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Sr={test:vi("#"),parse:$f,transform:Ht.transform},He=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Bt=He("deg"),kt=He("%"),$=He("px"),Of=He("vh"),Ff=He("vw"),ls=V(p({},kt),{parse:t=>kt.parse(t)/100,transform:t=>kt.transform(t*100)}),ae={test:vi("hsl","hue"),parse:qa("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+kt.transform(De(e))+", "+kt.transform(De(n))+", "+De(Be.transform(r))+")"},tt={test:t=>Ht.test(t)||Sr.test(t)||ae.test(t),parse:t=>Ht.test(t)?Ht.parse(t):ae.test(t)?ae.parse(t):Sr.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Ht.transform(t):ae.transform(t),getAnimatableNone:t=>{const e=tt.parse(t);return e.alpha=0,tt.transform(e)}},_f=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function zf(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(yi))==null?void 0:e.length)||0)+(((n=t.match(_f))==null?void 0:n.length)||0)>0}const Ka="number",Ya="color",Uf="var",Wf="var(",us="${}",Hf=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function $e(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=e.replace(Hf,c=>(tt.test(c)?(r.color.push(s),i.push(Ya),n.push(tt.parse(c))):c.startsWith(Wf)?(r.var.push(s),i.push(Uf),n.push(c)):(r.number.push(s),i.push(Ka),n.push(parseFloat(c))),++s,us)).split(us);return{values:n,split:a,indexes:r,types:i}}function Xa(t){return $e(t).values}function Za(t){const{split:e,types:n}=$e(t),r=e.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=e[o],i[o]!==void 0){const a=n[o];a===Ka?s+=De(i[o]):a===Ya?s+=tt.transform(i[o]):s+=i[o]}return s}}const Gf=t=>typeof t=="number"?0:tt.test(t)?tt.getAnimatableNone(t):t;function qf(t){const e=Xa(t);return Za(t)(e.map(Gf))}const Ot={test:zf,parse:Xa,createTransformer:Za,getAnimatableNone:qf};function Ln(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Kf({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,s=0,o=0;if(!e)i=s=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=Ln(c,a,t+1/3),s=Ln(c,a,t),o=Ln(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function un(t,e){return n=>n>0?e:t}const J=(t,e,n)=>t+(e-t)*n,Bn=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},Yf=[Sr,Ht,ae],Xf=t=>Yf.find(e=>e.test(t));function fs(t){const e=Xf(t);if(xe(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let n=e.parse(t);return e===ae&&(n=Kf(n)),n}const ds=(t,e)=>{const n=fs(t),r=fs(e);if(!n||!r)return un(t,e);const i=p({},n);return s=>(i.red=Bn(n.red,r.red,s),i.green=Bn(n.green,r.green,s),i.blue=Bn(n.blue,r.blue,s),i.alpha=J(n.alpha,r.alpha,s),Ht.transform(i))},Pr=new Set(["none","hidden"]);function Zf(t,e){return Pr.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Jf(t,e){return n=>J(t,e,n)}function bi(t){return typeof t=="number"?Jf:typeof t=="string"?gi(t)?un:tt.test(t)?ds:ed:Array.isArray(t)?Ja:typeof t=="object"?tt.test(t)?ds:Qf:un}function Ja(t,e){const n=[...t],r=n.length,i=t.map((s,o)=>bi(s)(s,e[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function Qf(t,e){const n=p(p({},t),e),r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=bi(t[i])(t[i],e[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function td(t,e){var i;const n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const o=e.types[s],a=t.indexes[o][r[o]],c=(i=t.values[a])!=null?i:0;n[s]=c,r[o]++}return n}const ed=(t,e)=>{const n=Ot.createTransformer(e),r=$e(t),i=$e(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Pr.has(t)&&!i.values.length||Pr.has(e)&&!r.values.length?Zf(t,e):Ue(Ja(td(r,i),i.values),n):(xe(!0,`Complex values '${t}' and '${e}' 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.`,"complex-values-different"),un(t,e))};function Qa(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?J(t,e,n):bi(t)(t,e)}const nd=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>Y.update(e,n),stop:()=>$t(e),now:()=>st.isProcessing?st.timestamp:ut.now()}},tc=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let s=0;s<i;s++)r+=Math.round(t(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},fn=2e4;function xi(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<fn;)e+=n,r=t.next(e);return e>=fn?1/0:e}function rd(t,e=100,n){const r=n(V(p({},t),{keyframes:[0,e]})),i=Math.min(xi(r),fn);return{type:"keyframes",ease:s=>r.next(i*s).value/e,duration:bt(i)}}const id=5;function ec(t,e,n){const r=Math.max(e-id,0);return Va(n-t(r),e-r)}const Z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},$n=.001;function sd({duration:t=Z.duration,bounce:e=Z.bounce,velocity:n=Z.velocity,mass:r=Z.mass}){let i,s;xe(t<=At(Z.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=Vt(Z.minDamping,Z.maxDamping,o),t=Vt(Z.minDuration,Z.maxDuration,bt(t)),o<1?(i=l=>{const u=l*o,f=u*t,d=u-n,h=Ar(l,o),m=Math.exp(-f);return $n-d/h*m},s=l=>{const f=l*o*t,d=f*n+n,h=Math.pow(o,2)*Math.pow(l,2)*t,m=Math.exp(-f),y=Ar(Math.pow(l,2),o);return(-i(l)+$n>0?-1:1)*((d-h)*m)/y}):(i=l=>{const u=Math.exp(-l*t),f=(l-n)*t+1;return-$n+u*f},s=l=>{const u=Math.exp(-l*t),f=(n-l)*(t*t);return u*f});const a=5/t,c=ad(i,s,a);if(t=At(t),isNaN(c))return{stiffness:Z.stiffness,damping:Z.damping,duration:t};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:o*2*Math.sqrt(r*l),duration:t}}}const od=12;function ad(t,e,n){let r=n;for(let i=1;i<od;i++)r=r-t(r)/e(r);return r}function Ar(t,e){return t*Math.sqrt(1-e*e)}const cd=["duration","bounce"],ld=["stiffness","damping","mass"];function hs(t,e){return e.some(n=>t[n]!==void 0)}function ud(t){let e=p({velocity:Z.velocity,stiffness:Z.stiffness,damping:Z.damping,mass:Z.mass,isResolvedFromDuration:!1},t);if(!hs(t,ld)&&hs(t,cd))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Vt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e=V(p({},e),{mass:Z.mass,stiffness:i,damping:s})}else{const n=sd(t);e=V(p(p({},e),n),{mass:Z.mass}),e.isResolvedFromDuration=!0}return e}function dn(t=Z.visualDuration,e=Z.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:c,damping:l,mass:u,duration:f,velocity:d,isResolvedFromDuration:h}=ud(V(p({},n),{velocity:-bt(n.velocity||0)})),m=d||0,y=l/(2*Math.sqrt(c*u)),b=o-s,v=bt(Math.sqrt(c/u)),w=Math.abs(b)<5;r||(r=w?Z.restSpeed.granular:Z.restSpeed.default),i||(i=w?Z.restDelta.granular:Z.restDelta.default);let x;if(y<1){const M=Ar(v,y);x=P=>{const A=Math.exp(-y*v*P);return o-A*((m+y*v*b)/M*Math.sin(M*P)+b*Math.cos(M*P))}}else if(y===1)x=M=>o-Math.exp(-v*M)*(b+(m+v*b)*M);else{const M=v*Math.sqrt(y*y-1);x=P=>{const A=Math.exp(-y*v*P),C=Math.min(M*P,300);return o-A*((m+y*v*b)*Math.sinh(C)+M*b*Math.cosh(C))/M}}const T={calculatedDuration:h&&f||null,next:M=>{const P=x(M);if(h)a.done=M>=f;else{let A=M===0?m:0;y<1&&(A=M===0?At(m):ec(x,M,P));const C=Math.abs(A)<=r,R=Math.abs(o-P)<=i;a.done=C&&R}return a.value=a.done?o:P,a},toString:()=>{const M=Math.min(xi(T),fn),P=tc(A=>T.next(M*A).value,M,30);return M+"ms "+P},toTransition:()=>{}};return T}dn.applyToOptions=t=>{const e=rd(t,100,dn);return t.ease=e.ease,t.duration=At(e.duration),t.type="keyframes",t};function Er({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const f=t[0],d={done:!1,value:f},h=C=>a!==void 0&&C<a||c!==void 0&&C>c,m=C=>a===void 0?c:c===void 0||Math.abs(a-C)<Math.abs(c-C)?a:c;let y=n*e;const b=f+y,v=o===void 0?b:o(b);v!==b&&(y=v-f);const w=C=>-y*Math.exp(-C/r),x=C=>v+w(C),T=C=>{const R=w(C),j=x(C);d.done=Math.abs(R)<=l,d.value=d.done?v:j};let M,P;const A=C=>{h(d.value)&&(M=C,P=dn({keyframes:[d.value,m(d.value)],velocity:ec(x,C,d.value),damping:i,stiffness:s,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:C=>{let R=!1;return!P&&M===void 0&&(R=!0,T(C),A(C)),M!==void 0&&C>=M?P.next(C-M):(!R&&T(C),d)}}}function fd(t,e,n){const r=[],i=n||Nt.mix||Qa,s=t.length-1;for(let o=0;o<s;o++){let a=i(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||xt:e;a=Ue(c,a)}r.push(a)}return r}function dd(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const s=t.length;if(It(s===e.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>e[0];if(s===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=fd(e,r,i),c=a.length,l=u=>{if(o&&u<t[0])return e[0];let f=0;if(c>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const d=Le(t[f],t[f+1],u);return a[f](d)};return n?u=>l(Vt(t[0],t[s-1],u)):l}function hd(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Le(0,e,r);t.push(J(n,1,i))}}function md(t){const e=[0];return hd(e,t.length-1),e}function pd(t,e){return t.map(n=>n*e)}function gd(t,e){return t.map(()=>e||za).splice(0,t.length-1)}function ce({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Rf(r)?r.map(cs):cs(r),s={done:!1,value:e[0]},o=pd(n&&n.length===e.length?n:md(e),t),a=dd(o,e,{ease:Array.isArray(i)?i:gd(e,i)});return{calculatedDuration:t,next:c=>(s.value=a(c),s.done=c>=t,s)}}const yd=t=>t!==null;function wi(t,{repeat:e,repeatType:n="loop"},r,i=1){const s=t.filter(yd),a=i<0||e&&n!=="loop"&&e%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const vd={decay:Er,inertia:Er,tween:ce,keyframes:ce,spring:dn};function nc(t){typeof t.type=="string"&&(t.type=vd[t.type])}class Ci{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const bd=t=>t/100;class Ti extends Ci{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==ut.now()&&this.tick(ut.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;nc(e);const{type:n=ce,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=e;let{keyframes:a}=e;const c=n||ce;process.env.NODE_ENV!=="production"&&c!==ce&&It(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==ce&&typeof a[0]!="number"&&(this.mixKeyframes=Ue(bd,Qa(a[0],a[1])),a=[0,100]);const l=c(V(p({},e),{keyframes:a}));s==="mirror"&&(this.mirroredGenerator=c(V(p({},e),{keyframes:[...a].reverse(),velocity:-o}))),l.calculatedDuration===null&&(l.calculatedDuration=xi(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:u,repeat:f,repeatType:d,repeatDelay:h,type:m,onUpdate:y,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,T=r;if(f){const C=Math.min(this.currentTime,i)/a;let R=Math.floor(C),j=C%1;!j&&C>=1&&(j=1),j===1&&R--,R=Math.min(R,f+1),!!(R%2)&&(d==="reverse"?(j=1-j,h&&(j-=h/a)):d==="mirror"&&(T=o)),x=Vt(0,1,j)*a}const M=w?{done:!1,value:u[0]}:T.next(x);s&&(M.value=s(M.value));let{done:P}=M;!w&&c!==null&&(P=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return A&&m!==Er&&(M.value=wi(u,this.options,b,this.speed)),y&&y(M.value),A&&this.finish(),M}then(e,n){return this.finished.then(e,n)}get duration(){return bt(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+bt(e)}get time(){return bt(this.currentTime)}set time(e){var n;e=At(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(ut.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=bt(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:e=nd,startTime:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n!=null?n:r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ut.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function xd(t){var e;for(let n=1;n<t.length;n++)(e=t[n])!=null||(t[n]=t[n-1])}const Gt=t=>t*180/Math.PI,Rr=t=>{const e=Gt(Math.atan2(t[1],t[0]));return Mr(e)},wd={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Rr,rotateZ:Rr,skewX:t=>Gt(Math.atan(t[1])),skewY:t=>Gt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Mr=t=>(t=t%360,t<0&&(t+=360),t),ms=Rr,ps=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),gs=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Cd={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ps,scaleY:gs,scale:t=>(ps(t)+gs(t))/2,rotateX:t=>Mr(Gt(Math.atan2(t[6],t[5]))),rotateY:t=>Mr(Gt(Math.atan2(-t[2],t[0]))),rotateZ:ms,rotate:ms,skewX:t=>Gt(Math.atan(t[4])),skewY:t=>Gt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function kr(t){return t.includes("scale")?1:0}function jr(t,e){if(!t||t==="none")return kr(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Cd,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=wd,i=a}if(!i)return kr(e);const s=r[e],o=i[1].split(",").map(Sd);return typeof s=="function"?s(o):o[s]}const Td=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return jr(n,e)};function Sd(t){return parseFloat(t.trim())}const Ce=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Te=new Set(Ce),ys=t=>t===we||t===$,Pd=new Set(["x","y","z"]),Ad=Ce.filter(t=>!Pd.has(t));function Ed(t){const e=[];return Ad.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Kt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>jr(e,"x"),y:(t,{transform:e})=>jr(e,"y")};Kt.translateX=Kt.x;Kt.translateY=Kt.y;const Yt=new Set;let Dr=!1,Vr=!1,Ir=!1;function rc(){if(Vr){const t=Array.from(Yt).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=Ed(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Vr=!1,Dr=!1,Yt.forEach(t=>t.complete(Ir)),Yt.clear()}function ic(){Yt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Vr=!0)})}function Rd(){Ir=!0,ic(),rc(),Ir=!1}class Si{constructor(e,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Yt.add(this),Dr||(Dr=!0,Y.read(ic),Y.resolveKeyframes(rc))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;if(e[0]===null){const s=i==null?void 0:i.get(),o=e[e.length-1];if(s!==void 0)e[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&s===void 0&&i.set(e[0])}xd(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Yt.delete(this)}cancel(){this.state==="scheduled"&&(Yt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Md=t=>t.startsWith("--");function kd(t,e,n){Md(e)?t.style.setProperty(e,n):t.style[e]=n}const jd=fi(()=>window.ScrollTimeline!==void 0),Dd={};function Vd(t,e){const n=fi(t);return()=>{var r;return(r=Dd[e])!=null?r:n()}}const sc=Vd(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),je=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,vs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:je([0,.65,.55,1]),circOut:je([.55,0,1,.45]),backIn:je([.31,.01,.66,-.59]),backOut:je([.33,1.53,.69,.99])};function oc(t,e){if(t)return typeof t=="function"?sc()?tc(t,e):"ease-out":Ua(t)?je(t):Array.isArray(t)?t.map(n=>oc(n,e)||vs.easeOut):vs[t]}function Id(t,e,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[e]:n};c&&(u.offset=c);const f=oc(a,i);Array.isArray(f)&&(u.easing=f);const d={delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return l&&(d.pseudoElement=l),t.animate(u,d)}function ac(t){return typeof t=="function"&&"applyToOptions"in t}function Nd(n){var r=n,{type:t}=r,e=z(r,["type"]);var i,s;return ac(t)&&sc()?t.applyToOptions(e):((i=e.duration)!=null||(e.duration=300),(s=e.ease)!=null||(e.ease="easeOut"),e)}class Ld extends Ci{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=e,It(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=Nd(e);this.animation=Id(n,r,i,l,s),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const u=wi(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):kd(n,r,u),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,r;const e=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return bt(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+bt(e)}get time(){return bt(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=At(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&jd()?(this.animation.timeline=e,xt):n(this)}}const cc={anticipate:Oa,backInOut:$a,circInOut:_a};function Bd(t){return t in cc}function $d(t){typeof t.ease=="string"&&Bd(t.ease)&&(t.ease=cc[t.ease])}const bs=10;class Od extends Ld{constructor(e){$d(e),nc(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){var u;const l=this.options,{motionValue:n,onUpdate:r,onComplete:i,element:s}=l,o=z(l,["motionValue","onUpdate","onComplete","element"]);if(!n)return;if(e!==void 0){n.set(e);return}const a=new Ti(V(p({},o),{autoplay:!1})),c=At((u=this.finishedTime)!=null?u:this.time);n.setWithVelocity(a.sample(c-bs).value,a.sample(c).value,bs),a.stop()}}const xs=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ot.test(t)||t==="0")&&!t.startsWith("url("));function Fd(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function _d(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const s=t[t.length-1],o=xs(i,e),a=xs(s,e);return xe(o===a,`You are trying to animate ${e} from "${i}" to "${s}". "${o?s:i}" is not an animatable value.`,"value-not-animatable"),!o||!a?!1:Fd(t)||(n==="spring"||ac(n))&&r}function Nr(t){t.duration=0,t.type="keyframes"}const zd=new Set(["opacity","clipPath","filter","transform"]),Ud=fi(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Wd(t){var u;const{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=t;if(!(((u=e==null?void 0:e.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=e.owner.getProps();return Ud()&&n&&zd.has(n)&&(n!=="transform"||!l)&&!c&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const Hd=40;class Gd extends Ci{constructor(d){var h=d,{autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:c,motionValue:l,element:u}=h,f=z(h,["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"]);var b;super(),this.stop=()=>{var v,w;this._animation&&(this._animation.stop(),(v=this.stopTimeline)==null||v.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=ut.now();const m=p({autoplay:e,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:c,motionValue:l,element:u},f),y=(u==null?void 0:u.KeyframeResolver)||Si;this.keyframeResolver=new y(a,(v,w,x)=>this.onKeyframesResolved(v,w,m,!x),c,l,u),(b=this.keyframeResolver)==null||b.scheduleResolve()}onKeyframesResolved(e,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:c,isHandoff:l,onUpdate:u}=r;this.resolvedAt=ut.now(),_d(e,s,o,a)||((Nt.instantAnimations||!c)&&(u==null||u(wi(e,r,n))),e[0]=e[e.length-1],Nr(r),r.repeat=0);const f=i?this.resolvedAt?this.resolvedAt-this.createdAt>Hd?this.resolvedAt:this.createdAt:this.createdAt:void 0,d=V(p({startTime:f,finalKeyframe:n},r),{keyframes:e}),h=!l&&Wd(d)?new Od(V(p({},d),{element:d.motionValue.owner.current})):new Ti(d);h.finished.then(()=>this.notifyFinished()).catch(xt),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),Rd()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const qd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Kd(t){const e=qd.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n!=null?n:r}`,i]}const Yd=4;function lc(t,e,n=1){It(n<=Yd,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=Kd(t);if(!r)return;const s=window.getComputedStyle(e).getPropertyValue(r);if(s){const o=s.trim();return ka(o)?parseFloat(o):o}return gi(i)?lc(i,e,n+1):i}function Pi(t,e){var n,r;return(r=(n=t==null?void 0:t[e])!=null?n:t==null?void 0:t.default)!=null?r:t}const uc=new Set(["width","height","top","left","right","bottom",...Ce]),Xd={test:t=>t==="auto",parse:t=>t},fc=t=>e=>e.test(t),dc=[we,$,kt,Bt,Ff,Of,Xd],ws=t=>dc.find(fc(t));function Zd(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Da(t):!0}const Jd=new Set(["brightness","contrast","saturate","opacity"]);function Qd(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(yi)||[];if(!r)return t;const i=n.replace(r,"");let s=Jd.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+i+")"}const th=/\b([a-z-]*)\(.*?\)/gu,Lr=V(p({},Ot),{getAnimatableNone:t=>{const e=t.match(th);return e?e.map(Qd).join(" "):t}}),Cs=V(p({},we),{transform:Math.round}),eh={rotate:Bt,rotateX:Bt,rotateY:Bt,rotateZ:Bt,scale:tn,scaleX:tn,scaleY:tn,scaleZ:tn,skew:Bt,skewX:Bt,skewY:Bt,distance:$,translateX:$,translateY:$,translateZ:$,x:$,y:$,z:$,perspective:$,transformPerspective:$,opacity:Be,originX:ls,originY:ls,originZ:$},Ai=V(p({borderWidth:$,borderTopWidth:$,borderRightWidth:$,borderBottomWidth:$,borderLeftWidth:$,borderRadius:$,radius:$,borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomRightRadius:$,borderBottomLeftRadius:$,width:$,maxWidth:$,height:$,maxHeight:$,top:$,right:$,bottom:$,left:$,padding:$,paddingTop:$,paddingRight:$,paddingBottom:$,paddingLeft:$,margin:$,marginTop:$,marginRight:$,marginBottom:$,marginLeft:$,backgroundPositionX:$,backgroundPositionY:$},eh),{zIndex:Cs,fillOpacity:Be,strokeOpacity:Be,numOctaves:Cs}),nh=V(p({},Ai),{color:tt,backgroundColor:tt,outlineColor:tt,fill:tt,stroke:tt,borderColor:tt,borderTopColor:tt,borderRightColor:tt,borderBottomColor:tt,borderLeftColor:tt,filter:Lr,WebkitFilter:Lr}),hc=t=>nh[t];function mc(t,e){let n=hc(t);return n!==Lr&&(n=Ot),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const rh=new Set(["auto","none","0"]);function ih(t,e,n){let r=0,i;for(;r<t.length&&!i;){const s=t[r];typeof s=="string"&&!rh.has(s)&&$e(s).values.length&&(i=t[r]),r++}if(i&&n)for(const s of e)t[s]=mc(n,i)}class sh extends Si{constructor(e,n,r,i,s){super(e,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let l=e[c];if(typeof l=="string"&&(l=l.trim(),gi(l))){const u=lc(l,n.current);u!==void 0&&(e[c]=u),c===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!uc.has(r)||e.length!==2)return;const[i,s]=e,o=ws(i),a=ws(s);if(o!==a)if(ys(o)&&ys(a))for(let c=0;c<e.length;c++){const l=e[c];typeof l=="string"&&(e[c]=parseFloat(l))}else Kt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)(e[i]===null||Zd(e[i]))&&r.push(i);r.length&&ih(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Kt[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=Kt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([c,l])=>{e.getValue(c).set(l)}),this.resolveNoneKeyframes()}}function oh(t,e,n){var r;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const s=(r=n==null?void 0:n[t])!=null?r:i.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}const pc=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function gc(t){return ja(t)&&"offsetHeight"in t}const Ts=30,ah=t=>!isNaN(parseFloat(t));class ch{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=ut.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=ut.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ah(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&hi(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new di);const r=this.events[e].add(n);return e==="change"?()=>{r(),Y.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=ut.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Ts)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ts);return Va(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ge(t,e){return new ch(t,e)}const{schedule:Ei}=Wa(queueMicrotask,!1),St={x:!1,y:!1};function yc(){return St.x||St.y}function lh(t){return t==="x"||t==="y"?St[t]?null:(St[t]=!0,()=>{St[t]=!1}):St.x||St.y?null:(St.x=St.y=!0,()=>{St.x=St.y=!1})}function vc(t,e){const n=oh(t),r=new AbortController,i=V(p({passive:!0},e),{signal:r.signal});return[n,i,()=>r.abort()]}function Ss(t){return!(t.pointerType==="touch"||yc())}function uh(t,e,n={}){const[r,i,s]=vc(t,n),o=a=>{if(!Ss(a))return;const{target:c}=a,l=e(c,a);if(typeof l!="function"||!c)return;const u=f=>{Ss(f)&&(l(f),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const bc=(t,e)=>e?t===e?!0:bc(t,e.parentElement):!1,Ri=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,fh=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dh(t){return fh.has(t.tagName)||t.tabIndex!==-1}const on=new WeakSet;function Ps(t){return e=>{e.key==="Enter"&&t(e)}}function On(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const hh=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=Ps(()=>{if(on.has(n))return;On(n,"down");const i=Ps(()=>{On(n,"up")}),s=()=>On(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",s,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function As(t){return Ri(t)&&!yc()}function mh(t,e,n={}){const[r,i,s]=vc(t,n),o=a=>{const c=a.currentTarget;if(!As(a))return;on.add(c);const l=e(c,a),u=(h,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),on.has(c)&&on.delete(c),As(h)&&typeof l=="function"&&l(h,{success:m})},f=h=>{u(h,c===window||c===document||n.useGlobalTarget||bc(c,h.target))},d=h=>{u(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),gc(a)&&(a.addEventListener("focus",l=>hh(l,i)),!dh(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function xc(t){return ja(t)&&"ownerSVGElement"in t}function ph(t){return xc(t)&&t.tagName==="svg"}const ct=t=>!!(t&&t.getVelocity),gh=[...dc,tt,Ot],yh=t=>gh.find(fc(t)),Mi=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Es(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function vh(...t){return e=>{let n=!1;const r=t.map(i=>{const s=Es(i,e);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():Es(t[i],null)}}}}function bh(...t){return vn.useCallback(vh(...t),t)}class xh extends vn.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=gc(r)&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function wh({children:t,isPresent:e,anchorX:n,root:r}){const i=S.useId(),s=S.useRef(null),o=S.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=S.useContext(Mi),c=bh(s,t==null?void 0:t.ref);return S.useInsertionEffect(()=>{const{width:l,height:u,top:f,left:d,right:h}=o.current;if(e||!s.current||!l||!u)return;const m=n==="left"?`left: ${d}`:`right: ${h}`;s.current.dataset.motionPopId=i;const y=document.createElement("style");a&&(y.nonce=a);const b=r!=null?r:document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
11
11
|
[data-motion-pop-id="${i}"] {
|
|
12
12
|
position: absolute !important;
|
|
13
13
|
width: ${l}px !important;
|
|
@@ -15,11 +15,11 @@ ${l}`}function ru({color:t,theme:e,autoContrast:n}){return e.autoContrast&&_e({c
|
|
|
15
15
|
${m}px !important;
|
|
16
16
|
top: ${f}px !important;
|
|
17
17
|
}
|
|
18
|
-
`),()=>{b.contains(y)&&b.removeChild(y)}},[e]),g.jsx(xh,{isPresent:e,childRef:s,sizeRef:o,children:yn.cloneElement(t,{ref:c})})}const Ch=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,root:c})=>{const l=oi(Th),u=S.useId();let f=!0,d=S.useMemo(()=>(f=!1,{id:u,initial:e,isPresent:n,custom:i,onExitComplete:h=>{l.set(h,!0);for(const m of l.values())if(!m)return;r&&r()},register:h=>(l.set(h,!1),()=>l.delete(h))}),[n,l,r]);return s&&f&&(d=p({},d)),S.useMemo(()=>{l.forEach((h,m)=>l.set(m,!1))},[n]),yn.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(t=g.jsx(wh,{isPresent:n,anchorX:a,root:c,children:t})),g.jsx(xn.Provider,{value:d,children:t})};function Th(){return new Map}function xc(t=!0){const e=S.useContext(xn);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,s=S.useId();S.useEffect(()=>{if(t)return i(s)},[t]);const o=S.useCallback(()=>t&&r&&r(s),[s,r,t]);return!n&&r?[!1,o]:[!0]}const tn=t=>t.key||"";function Es(t){const e=[];return S.Children.forEach(t,n=>{S.isValidElement(n)&&e.push(n)}),e}const Sh=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",root:c})=>{const[l,u]=xc(o),f=S.useMemo(()=>Es(t),[t]),d=o&&!l?[]:f.map(tn),h=S.useRef(!0),m=S.useRef(f),y=oi(()=>new Map),[b,v]=S.useState(f),[w,x]=S.useState(f);Ra(()=>{h.current=!1,m.current=f;for(let P=0;P<w.length;P++){const A=tn(w[P]);d.includes(A)?y.delete(A):y.get(A)!==!0&&y.set(A,!1)}},[w,d.length,d.join("-")]);const T=[];if(f!==b){let P=[...f];for(let A=0;A<w.length;A++){const C=w[A],R=tn(C);d.includes(R)||(P.splice(A,0,C),T.push(C))}return s==="wait"&&T.length&&(P=T),x(Es(P)),v(f),null}process.env.NODE_ENV!=="production"&&s==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:M}=S.useContext(si);return g.jsx(g.Fragment,{children:w.map(P=>{const A=tn(P),C=o&&!l?!1:f===w||d.includes(A),R=()=>{if(y.has(A))y.set(A,!0);else return;let D=!0;y.forEach(j=>{j||(D=!1)}),D&&(M==null||M(),x(m.current),o&&(u==null||u()),r&&r())};return g.jsx(Ch,{isPresent:C,initial:!h.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:s,root:c,onExitComplete:C?void 0:R,anchorX:a,children:P},A)})})},wc=S.createContext({strict:!1}),Rs={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"]},ge={};for(const t in Rs)ge[t]={isEnabled:e=>Rs[t].some(n=>!!e[n])};function Ph(t){for(const e in t)ge[e]=p(p({},ge[e]),t[e])}const Ah=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function dn(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ah.has(t)}let Cc=t=>!dn(t);function Eh(t){typeof t=="function"&&(Cc=e=>e.startsWith("on")?!dn(e):t(e))}try{Eh(require("@emotion/is-prop-valid").default)}catch(t){}function Rh(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(Cc(i)||n===!0&&dn(i)||!e&&!dn(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const wn=S.createContext({});function Cn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function $e(t){return typeof t=="string"||Array.isArray(t)}const Mi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ki=["initial",...Mi];function Tn(t){return Cn(t.animate)||ki.some(e=>$e(t[e]))}function Tc(t){return!!(Tn(t)||t.variants)}function Mh(t,e){if(Tn(t)){const{initial:n,animate:r}=t;return{initial:n===!1||$e(n)?n:void 0,animate:$e(r)?r:void 0}}return t.inherit!==!1?e:{}}function kh(t){const{initial:e,animate:n}=Mh(t,S.useContext(wn));return S.useMemo(()=>({initial:e,animate:n}),[Ms(e),Ms(n)])}function Ms(t){return Array.isArray(t)?t.join(" "):t}function ks(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Re={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if($.test(t))t=parseFloat(t);else return t;const n=ks(t,e.target.x),r=ks(t,e.target.y);return`${n}% ${r}%`}},Dh={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=$t.parse(t);if(i.length>5)return r;const s=$t.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=c;const l=J(a,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),s(i)}},Lr={borderRadius:V(p({},Re),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Re,borderTopRightRadius:Re,borderBottomLeftRadius:Re,borderBottomRightRadius:Re,boxShadow:Dh};function Sc(t,{layout:e,layoutId:n}){return Ce.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Lr[t]||t==="opacity")}const jh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Vh=we.length;function Ih(t,e,n){let r="",i=!0;for(let s=0;s<Vh;s++){const o=we[s],a=t[o];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(o.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const l=mc(a,Pi[o]);if(!c){i=!1;const u=jh[o]||o;r+=`${u}(${l}) `}n&&(e[o]=l)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function Di(t,e,n){const{style:r,vars:i,transformOrigin:s}=t;let o=!1,a=!1;for(const c in e){const l=e[c];if(Ce.has(c)){o=!0;continue}else if(Ha(c)){i[c]=l;continue}else{const u=mc(l,Pi[c]);c.startsWith("origin")?(a=!0,s[c]=u):r[c]=u}}if(e.transform||(o||n?r.transform=Ih(e,t.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=s;r.transformOrigin=`${c} ${l} ${u}`}}const ji=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Pc(t,e,n){for(const r in e)!at(e[r])&&!Sc(r,n)&&(t[r]=e[r])}function Nh({transformTemplate:t},e){return S.useMemo(()=>{const n=ji();return Di(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Lh(t,e){const n=t.style||{},r={};return Pc(r,n,t),Object.assign(r,Nh(t,e)),r}function Bh(t,e){const n={},r=Lh(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const $h={offset:"stroke-dashoffset",array:"stroke-dasharray"},Oh={offset:"strokeDashoffset",array:"strokeDasharray"};function Fh(t,e,n=1,r=0,i=!0){t.pathLength=1;const s=i?$h:Oh;t[s.offset]=$.transform(-r);const o=$.transform(e),a=$.transform(n);t[s.array]=`${o} ${a}`}function Ac(t,f,c,l,u){var d=f,{attrX:e,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0}=d,a=W(d,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]);var y,b;if(Di(t,a,l),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:m}=t;h.transform&&(m.transform=h.transform,delete h.transform),(m.transform||h.transformOrigin)&&(m.transformOrigin=(y=h.transformOrigin)!=null?y:"50% 50%",delete h.transformOrigin),m.transform&&(m.transformBox=(b=u==null?void 0:u.transformBox)!=null?b:"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),i!==void 0&&Fh(h,i,s,o,!1)}const Ec=()=>V(p({},ji()),{attrs:{}}),Rc=t=>typeof t=="string"&&t.toLowerCase()==="svg";function _h(t,e,n,r){const i=S.useMemo(()=>{const s=Ec();return Ac(s,e,Rc(r),t.transformTemplate,t.style),V(p({},s.attrs),{style:p({},s.style)})},[e]);if(t.style){const s={};Pc(s,t.style,t),i.style=p(p({},s),i.style)}return i}const Uh=["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 Vi(t){return typeof t!="string"||t.includes("-")?!1:!!(Uh.indexOf(t)>-1||/[A-Z]/u.test(t))}function zh(t,e,n,{latestValues:r},i,s=!1){const a=(Vi(t)?_h:Bh)(e,r,i,t),c=Rh(e,typeof t=="string",s),l=t!==S.Fragment?V(p(p({},c),a),{ref:n}):{},{children:u}=e,f=S.useMemo(()=>at(u)?u.get():u,[u]);return S.createElement(t,V(p({},l),{children:f}))}function Ds(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function Ii(t,e,n,r){if(typeof e=="function"){const[i,s]=Ds(r);e=e(n!==void 0?n:t.custom,i,s)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,s]=Ds(r);e=e(n!==void 0?n:t.custom,i,s)}return e}function on(t){return at(t)?t.get():t}function Wh({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,i){return{latestValues:Hh(n,r,i,t),renderState:e()}}function Hh(t,e,n,r){const i={},s=r(t,{});for(const h in s)i[h]=on(s[h]);let{initial:o,animate:a}=t;const c=Tn(t),l=Tc(t);e&&l&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const f=u?a:o;if(f&&typeof f!="boolean"&&!Cn(f)){const h=Array.isArray(f)?f:[f];for(let m=0;m<h.length;m++){const y=Ii(t,h[m]);if(y){const d=y,{transitionEnd:b,transition:v}=d,w=W(d,["transitionEnd","transition"]);for(const x in w){let T=w[x];if(Array.isArray(T)){const M=u?T.length-1:0;T=T[M]}T!==null&&(i[x]=T)}for(const x in b)i[x]=b[x]}}}return i}const Mc=t=>(e,n)=>{const r=S.useContext(wn),i=S.useContext(xn),s=()=>Wh(t,e,r,i);return n?s():oi(s)};function Ni(t,e,n){var s;const{style:r}=t,i={};for(const o in r)(at(r[o])||e.style&&at(e.style[o])||Sc(o,t)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const Gh=Mc({scrapeMotionValuesFromProps:Ni,createRenderState:ji});function kc(t,e,n){const r=Ni(t,e,n);for(const i in t)if(at(t[i])||at(e[i])){const s=we.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=t[i]}return r}const qh=Mc({scrapeMotionValuesFromProps:kc,createRenderState:Ec}),Kh=Symbol.for("motionComponentSymbol");function ae(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Yh(t,e,n){return S.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):ae(n)&&(n.current=r))},[e])}const Li=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Xh="framerAppearId",Dc="data-"+Li(Xh),jc=S.createContext({});function Zh(t,e,n,r,i){var y,b;const{visualElement:s}=S.useContext(wn),o=S.useContext(wc),a=S.useContext(xn),c=S.useContext(Ri).reducedMotion,l=S.useRef(null);r=r||o.renderer,!l.current&&r&&(l.current=r(t,{visualState:e,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const u=l.current,f=S.useContext(jc);u&&!u.projection&&i&&(u.type==="html"||u.type==="svg")&&Jh(l.current,n,i,f);const d=S.useRef(!1);S.useInsertionEffect(()=>{u&&d.current&&u.update(n,a)});const h=n[Dc],m=S.useRef(!!h&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,h))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,h)));return Ra(()=>{u&&(d.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),m.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(!m.current&&u.animationState&&u.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)==null||v.call(window,h)}),m.current=!1),u.enteringChildren=void 0)}),u}function Jh(t,e,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Vc(t.parent)),t.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&ae(a),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function Vc(t){if(t)return t.options.allowProjection!==!1?t.projection:Vc(t.parent)}function On(t,{forwardMotionProps:e=!1}={},n,r){var a,c;n&&Ph(n);const i=Vi(t)?qh:Gh;function s(l,u){let f;const d=V(p(p({},S.useContext(Ri)),l),{layoutId:Qh(l)}),{isStatic:h}=d,m=kh(l),y=i(l,h);if(!h&&ai){tm(d,n);const b=em(d);f=b.MeasureLayout,m.visualElement=Zh(t,y,d,r,b.ProjectionNode)}return g.jsxs(wn.Provider,{value:m,children:[f&&m.visualElement?g.jsx(f,p({visualElement:m.visualElement},d)):null,zh(t,l,Yh(y,m.visualElement,u),y,h,e)]})}s.displayName=`motion.${typeof t=="string"?t:`create(${(c=(a=t.displayName)!=null?a:t.name)!=null?c:""})`}`;const o=S.forwardRef(s);return o[Kh]=t,o}function Qh({layoutId:t}){const e=S.useContext(si).id;return e&&t!==void 0?e+"-"+t:t}function tm(t,e){const n=S.useContext(wc).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?be(!1,r,"lazy-strict-mode"):Vt(!1,r,"lazy-strict-mode")}}function em(t){const{drag:e,layout:n}=ge;if(!e&&!n)return{};const r=p(p({},e),n);return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function nm(t,e){if(typeof Proxy=="undefined")return On;const n=new Map,r=(s,o)=>On(s,o,t,e),i=(s,o)=>(process.env.NODE_ENV!=="production"&&di(!1,"motion() is deprecated. Use motion.create() instead."),r(s,o));return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,On(o,void 0,t,e)),n.get(o))})}function Ic({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function rm({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function im(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Fn(t){return t===void 0||t===1}function Br({scale:t,scaleX:e,scaleY:n}){return!Fn(t)||!Fn(e)||!Fn(n)}function zt(t){return Br(t)||Nc(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Nc(t){return js(t.x)||js(t.y)}function js(t){return t&&t!=="0%"}function hn(t,e,n){const r=t-n,i=e*r;return n+i}function Vs(t,e,n,r,i){return i!==void 0&&(t=hn(t,i,r)),hn(t,n,r)+e}function $r(t,e=0,n=1,r,i){t.min=Vs(t.min,e,n,r,i),t.max=Vs(t.max,e,n,r,i)}function Lc(t,{x:e,y:n}){$r(t.x,e.translate,e.scale,e.originPoint),$r(t.y,n.translate,n.scale,n.originPoint)}const Is=.999999999999,Ns=1.0000000000001;function sm(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&le(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Lc(t,o)),r&&zt(s.latestValues)&&le(t,s.latestValues))}e.x<Ns&&e.x>Is&&(e.x=1),e.y<Ns&&e.y>Is&&(e.y=1)}function ce(t,e){t.min=t.min+e,t.max=t.max+e}function Ls(t,e,n,r,i=.5){const s=J(t.min,t.max,i);$r(t,e,n,s,r)}function le(t,e){Ls(t.x,e.x,e.scaleX,e.scale,e.originX),Ls(t.y,e.y,e.scaleY,e.scale,e.originY)}function Bc(t,e){return Ic(im(t.getBoundingClientRect(),e))}function om(t,e,n){const r=Bc(t,n),{scroll:i}=e;return i&&(ce(r.x,i.offset.x),ce(r.y,i.offset.y)),r}const Bs=()=>({translate:0,scale:1,origin:0,originPoint:0}),ue=()=>({x:Bs(),y:Bs()}),$s=()=>({min:0,max:0}),nt=()=>({x:$s(),y:$s()}),Or={current:null},$c={current:!1};function am(){if($c.current=!0,!!ai)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Or.current=t.matches;t.addEventListener("change",e),e()}else Or.current=!1}const cm=new WeakMap;function lm(t,e,n){for(const r in e){const i=e[r],s=n[r];if(at(i))t.addValue(r,i);else if(at(s))t.addValue(r,pe(i,{owner:t}));else if(s!==i)if(t.hasValue(r)){const o=t.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(r);t.addValue(r,pe(o!==void 0?o:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Os=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class um{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ti,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.renderScheduledAt=0,this.scheduleRender=()=>{const h=ut.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,X.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget=p({},c),this.initialValues=n.initial?p({},c):{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Tn(n),this.isVariantNode=Tc(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const d=this.scrapeMotionValuesFromProps(n,{},this),{willChange:u}=d,f=W(d,["willChange"]);for(const h in f){const m=f[h];c[h]!==void 0&&at(m)&&m.set(c[h])}}mount(e){var n;this.current=e,cm.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((r,i)=>this.bindToMotionValue(i,r)),$c.current||am(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Or.current,process.env.NODE_ENV!=="production"&&di(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),Bt(this.notifyUpdate),Bt(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(e){var n;this.children.add(e),(n=this.enteringChildren)!=null||(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Ce.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&X.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ge){const n=ge[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Os.length;r++){const i=Os[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=e[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=lm(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),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}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=pe(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var i;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!=null?i:this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(Ma(r)||Da(r))?r=parseFloat(r):!yh(r)&&$t.test(n)&&(r=hc(e,n)),this.setBaseTarget(e,at(r)?r.get():r)),at(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Ii(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[e])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!at(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new fi),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Ai.render(this.render)}}class Oc extends um{constructor(){super(...arguments),this.KeyframeResolver=sh}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;at(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Fc(t,{style:e,vars:n},r,i){const s=t.style;let o;for(o in e)s[o]=e[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function fm(t){return window.getComputedStyle(t)}class dm extends Oc{constructor(){super(...arguments),this.type="html",this.renderInstance=Fc}readValueFromInstance(e,n){var r;if(Ce.has(n))return(r=this.projection)!=null&&r.isProjecting?Mr(n):Td(e,n);{const i=fm(e),s=(Ha(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Bc(e,n)}build(e,n,r){Di(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return Ni(e,n,r)}}const _c=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function hm(t,e,n,r){Fc(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(_c.has(i)?i:Li(i),e.attrs[i])}class mm extends Oc{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nt}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ce.has(n)){const r=dc(n);return r&&r.default||0}return n=_c.has(n)?n:Li(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return kc(e,n,r)}build(e,n,r){Ac(e,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,n,r,i){hm(e,n,r,i)}mount(e){this.isSVGTag=Rc(e.tagName),super.mount(e)}}const pm=(t,e)=>Vi(t)?new mm(e):new dm(e,{allowProjection:t!==S.Fragment});function de(t,e,n){const r=t.getProps();return Ii(r,e,n!==void 0?n:r.custom,t)}const Fr=t=>Array.isArray(t);function gm(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,pe(n))}function ym(t){return Fr(t)?t[t.length-1]||0:t}function vm(t,e){let o=de(t,e)||{},{transitionEnd:r={},transition:i={}}=o,s=W(o,["transitionEnd","transition"]);s=p(p({},s),r);for(const a in s){const c=ym(s[a]);gm(t,a,c)}}function bm(t){return!!(at(t)&&t.add)}function _r(t,e){const n=t.getValue("willChange");if(bm(n))return n.add(e);if(!n&&It.WillChange){const r=new It.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function Uc(t){return t.props[Dc]}const xm=t=>t!==null;function wm(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(xm),s=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[s]}const Cm={type:"spring",stiffness:500,damping:25,restSpeed:10},Tm=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Sm={type:"keyframes",duration:.8},Pm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Am=(t,{keyframes:e})=>e.length>2?Sm:Ce.has(t)?t.startsWith("scale")?Tm(e[1]):Cm:Pm;function Em(f){var d=f,{when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:c,elapsed:l}=d,u=W(d,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(u).length}const Bi=(t,e,n,r={},i,s)=>o=>{const a=Si(r,t)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-St(c);const u=V(p({keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity()},a),{delay:-l,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:i});Em(a)||Object.assign(u,Am(t,u)),u.duration&&(u.duration=St(u.duration)),u.repeatDelay&&(u.repeatDelay=St(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Ir(u),u.delay===0&&(f=!0)),(It.instantAnimations||It.skipAnimations)&&(f=!0,Ir(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!s&&e.get()!==void 0){const d=wm(u.keyframes,a);if(d!==void 0){X.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new Ci(u):new Gd(u)};function Rm({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function zc(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var f;let u=e,{transition:s=t.getDefaultTransition(),transitionEnd:o}=u,a=W(u,["transition","transitionEnd"]);r&&(s=r);const c=[],l=i&&t.animationState&&t.animationState.getState()[i];for(const d in a){const h=t.getValue(d,(f=t.latestValues[d])!=null?f:null),m=a[d];if(m===void 0||l&&Rm(l,d))continue;const y=p({delay:n},Si(s||{},d)),b=h.get();if(b!==void 0&&!h.isAnimating&&!Array.isArray(m)&&m===b&&!y.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const x=Uc(t);if(x){const T=window.MotionHandoffAnimation(x,d,X);T!==null&&(y.startTime=T,v=!0)}}_r(t,d),h.start(Bi(d,h,m,t.shouldReduceMotion&&lc.has(d)?{type:!1}:y,t,v));const w=h.animation;w&&c.push(w)}return o&&Promise.all(c).then(()=>{X.update(()=>{o&&vm(t,o)})}),c}function Wc(t,e,n,r=0,i=1){const s=Array.from(t).sort((l,u)=>l.sortNodePosition(u)).indexOf(e),o=t.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}function Ur(t,e,n={}){var c;const r=de(t,e,n.type==="exit"?(c=t.presenceContext)==null?void 0:c.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(zc(t,r,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=i;return Mm(t,e,l,u,f,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>u())}else return Promise.all([s(),o(n.delay)])}function Mm(t,e,n=0,r=0,i=0,s=1,o){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(Ur(c,e,V(p({},o),{delay:n+(typeof r=="function"?0:r)+Wc(t.variantChildren,c,r,i,s)})).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function km(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(s=>Ur(t,s,n));r=Promise.all(i)}else if(typeof e=="string")r=Ur(t,e,n);else{const i=typeof e=="function"?de(t,e,n.custom):e;r=Promise.all(zc(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}function Hc(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const Dm=ki.length;function Gc(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Gc(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Dm;n++){const r=ki[n],i=t.props[r];($e(i)||i===!1)&&(e[r]=i)}return e}const jm=[...Mi].reverse(),Vm=Mi.length;function Im(t){return e=>Promise.all(e.map(({animation:n,options:r})=>km(t,n,r)))}function Nm(t){let e=Im(t),n=Fs(),r=!0;const i=c=>(l,u)=>{var d;const f=de(t,u,c==="exit"?(d=t.presenceContext)==null?void 0:d.custom:void 0);if(f){const h=f,{transition:m,transitionEnd:y}=h,b=W(h,["transition","transitionEnd"]);l=p(p(p({},l),b),y)}return l};function s(c){e=c(t)}function o(c){const{props:l}=t,u=Gc(t.parent)||{},f=[],d=new Set;let h={},m=1/0;for(let b=0;b<Vm;b++){const v=jm[b],w=n[v],x=l[v]!==void 0?l[v]:u[v],T=$e(x),M=v===c?w.isActive:null;M===!1&&(m=b);let P=x===u[v]&&x!==l[v]&&T;if(P&&r&&t.manuallyAnimateOnMount&&(P=!1),w.protectedKeys=p({},h),!w.isActive&&M===null||!x&&!w.prevProp||Cn(x)||typeof x=="boolean")continue;const A=Lm(w.prevProp,x);let C=A||v===c&&w.isActive&&!P&&T||b>m&&T,R=!1;const D=Array.isArray(x)?x:[x];let j=D.reduce(i(v),{});M===!1&&(j={});const{prevResolvedValues:I={}}=w,L=p(p({},I),j),B=H=>{C=!0,d.has(H)&&(R=!0,d.delete(H)),w.needsAnimating[H]=!0;const K=t.getValue(H);K&&(K.liveStyle=!1)};for(const H in L){const K=j[H],it=I[H];if(h.hasOwnProperty(H))continue;let rt=!1;Fr(K)&&Fr(it)?rt=!Hc(K,it):rt=K!==it,rt?K!=null?B(H):d.add(H):K!==void 0&&d.has(H)?B(H):w.protectedKeys[H]=!0}w.prevProp=x,w.prevResolvedValues=j,w.isActive&&(h=p(p({},h),j)),r&&t.blockInitialAnimation&&(C=!1);const et=P&&A;C&&(!et||R)&&f.push(...D.map(H=>{const K={type:v};if(typeof H=="string"&&r&&!et&&t.manuallyAnimateOnMount&&t.parent){const{parent:it}=t,rt=de(it,H);if(it.enteringChildren&&rt){const{delayChildren:E}=rt.transition||{};K.delay=Wc(it.enteringChildren,t,E)}}return{animation:H,options:K}}))}if(d.size){const b={};if(typeof l.initial!="boolean"){const v=de(t,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(b.transition=v.transition)}d.forEach(v=>{const w=t.getBaseTarget(v),x=t.getValue(v);x&&(x.liveStyle=!0),b[v]=w!=null?w:null}),f.push({animation:b})}let y=!!f.length;return r&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(y=!1),r=!1,y?e(f):Promise.resolve()}function a(c,l){var f;if(n[c].isActive===l)return Promise.resolve();(f=t.variantChildren)==null||f.forEach(d=>{var h;return(h=d.animationState)==null?void 0:h.setActive(c,l)}),n[c].isActive=l;const u=o(c);for(const d in n)n[d].protectedKeys={};return u}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Fs()}}}function Lm(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Hc(e,t):!1}function Ut(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fs(){return{animate:Ut(!0),whileInView:Ut(),whileHover:Ut(),whileTap:Ut(),whileDrag:Ut(),whileFocus:Ut(),exit:Ut()}}class Ft{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Bm extends Ft{constructor(e){super(e),e.animationState||(e.animationState=Nm(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Cn(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let $m=0;class Om extends Ft{constructor(){super(...arguments),this.id=$m++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Fm={animation:{Feature:Bm},exit:{Feature:Om}};function Oe(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function He(t){return{point:{x:t.pageX,y:t.pageY}}}const _m=t=>e=>Ei(e)&&t(e,He(e));function je(t,e,n,r){return Oe(t,e,_m(n),r)}const qc=1e-4,Um=1-qc,zm=1+qc,Kc=.01,Wm=0-Kc,Hm=0+Kc;function ct(t){return t.max-t.min}function Gm(t,e,n){return Math.abs(t-e)<=n}function _s(t,e,n,r=.5){t.origin=r,t.originPoint=J(e.min,e.max,t.origin),t.scale=ct(n)/ct(e),t.translate=J(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Um&&t.scale<=zm||isNaN(t.scale))&&(t.scale=1),(t.translate>=Wm&&t.translate<=Hm||isNaN(t.translate))&&(t.translate=0)}function Ve(t,e,n,r){_s(t.x,e.x,n.x,r?r.originX:void 0),_s(t.y,e.y,n.y,r?r.originY:void 0)}function Us(t,e,n){t.min=n.min+e.min,t.max=t.min+ct(e)}function qm(t,e,n){Us(t.x,e.x,n.x),Us(t.y,e.y,n.y)}function zs(t,e,n){t.min=e.min-n.min,t.max=t.min+ct(e)}function mn(t,e,n){zs(t.x,e.x,n.x),zs(t.y,e.y,n.y)}function yt(t){return[t("x"),t("y")]}const Yc=({current:t})=>t?t.ownerDocument.defaultView:null,Ws=(t,e)=>Math.abs(t-e);function Km(t,e){const n=Ws(t.x,e.x),r=Ws(t.y,e.y);return Math.sqrt(qe(n,2)+qe(r,2))}class Xc{constructor(e,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Un(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=Km(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!m)return;const{point:y}=d,{timestamp:b}=st;this.history.push(V(p({},y),{timestamp:b}));const{onStart:v,onMove:w}=this.handlers;h||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=_n(h,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Un(d.type==="pointercancel"?this.lastMoveEventInfo:_n(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,v),y&&y(d,v)},!Ei(e))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const a=He(e),c=_n(a,this.transformPagePoint),{point:l}=c,{timestamp:u}=st;this.history=[V(p({},l),{timestamp:u})];const{onSessionStart:f}=n;f&&f(e,Un(c,this.history)),this.removeListeners=Ue(je(this.contextWindow,"pointermove",this.handlePointerMove),je(this.contextWindow,"pointerup",this.handlePointerUp),je(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Bt(this.updatePoint)}}function _n(t,e){return e?{point:e(t.point)}:t}function Hs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Un({point:t},e){return{point:t,delta:Hs(t,Zc(e)),offset:Hs(t,Ym(e)),velocity:Xm(e,.1)}}function Ym(t){return t[0]}function Zc(t){return t[t.length-1]}function Xm(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=Zc(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>St(e)));)n--;if(!r)return{x:0,y:0};const s=vt(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Zm(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?J(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?J(n,t,r.max):Math.min(t,n)),t}function Gs(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Jm(t,{top:e,left:n,bottom:r,right:i}){return{x:Gs(t.x,n,i),y:Gs(t.y,e,r)}}function qs(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function Qm(t,e){return{x:qs(t.x,e.x),y:qs(t.y,e.y)}}function tp(t,e){let n=.5;const r=ct(t),i=ct(e);return i>r?n=Ne(e.min,e.max-r,t.min):r>i&&(n=Ne(t.min,t.max-i,e.min)),jt(0,1,n)}function ep(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const zr=.35;function np(t=zr){return t===!1?t=0:t===!0&&(t=zr),{x:Ks(t,"left","right"),y:Ks(t,"top","bottom")}}function Ks(t,e,n){return{min:Ys(t,e),max:Ys(t,n)}}function Ys(t,e){return typeof t=="number"?t:t[e]||0}const rp=new WeakMap;class ip{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=f=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(He(f).point)},o=(f,d)=>{const{drag:h,dragPropagation:m,onDragStart:y}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=lh(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),yt(v=>{let w=this.getAxisMotionValue(v).get()||0;if(Mt.test(w)){const{projection:x}=this.visualElement;if(x&&x.layout){const T=x.layout.layoutBox[v];T&&(w=ct(T)*(parseFloat(w)/100))}}this.originPoint[v]=w}),y&&X.postRender(()=>y(f,d)),_r(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:y,onDrag:b}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=d;if(m&&this.currentDirection===null){this.currentDirection=sp(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,v),this.updateAxis("y",d.point,v),this.visualElement.render(),b&&b(f,d)},c=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>yt(f=>{var d;return this.getAnimationState(f)==="paused"&&((d=this.getAxisMotionValue(f).animation)==null?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Xc(e,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Yc(this.visualElement)})}stop(e,n){const r=e||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&X.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!en(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=Zm(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;e&&ae(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=Jm(r.layoutBox,e):this.constraints=!1,this.elastic=np(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&yt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=ep(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ae(e))return!1;const r=e.current;Vt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=om(r,i.root,this.visualElement.getTransformPagePoint());let o=Qm(i.layout.layoutBox,s);if(n){const a=n(rm(o));this.hasMutatedConstraints=!!a,a&&(o=Ic(a))}return o}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=yt(u=>{if(!en(u,n,this.currentDirection))return;let f=c&&c[u]||{};o&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,m=p(p({type:"inertia",velocity:r?e[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10},s),f);return this.startAxisValueAnimation(u,m)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return _r(this.visualElement,e),r.start(Bi(e,r,0,n,this.visualElement,!1))}stopAnimation(){yt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){yt(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){yt(n=>{const{drag:r}=this.getProps();if(!en(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(e[n]-J(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ae(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};yt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();i[o]=tp({min:c,max:c},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),yt(o=>{if(!en(o,e,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(J(c,l,i[o]))})}addListeners(){if(!this.visualElement.current)return;rp.set(this.visualElement,this);const e=this.visualElement.current,n=je(e,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();ae(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),X.read(r);const o=Oe(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(yt(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())}));return()=>{o(),n(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=zr,dragMomentum:a=!0}=e;return V(p({},e),{drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a})}}function en(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function sp(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class op extends Ft{constructor(e){super(e),this.removeGroupControls=bt,this.removeListeners=bt,this.controls=new ip(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Xs=t=>(e,n)=>{t&&X.postRender(()=>t(e,n))};class ap extends Ft{constructor(){super(...arguments),this.removePointerDownListener=bt}onPointerDown(e){this.session=new Xc(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Yc(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Xs(e),onStart:Xs(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&X.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=je(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const an={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let zn=!1;class cp extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=e;s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),zn&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions(V(p({},s.options),{onExitComplete:()=>this.safeToRemove()}))),an.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,zn=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==s?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||X.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ai.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;zn=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Jc(t){const[e,n]=xc(),r=S.useContext(si);return g.jsx(cp,V(p({},t),{layoutGroup:r,switchLayoutGroup:S.useContext(jc),isPresent:e,safeToRemove:n}))}function lp(t,e,n){const r=at(t)?t:pe(t);return r.start(Bi("",r,e,n)),r.animation}const up=(t,e)=>t.depth-e.depth;class fp{constructor(){this.children=[],this.isDirty=!1}add(e){ci(this.children,e),this.isDirty=!0}remove(e){li(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(up),this.isDirty=!1,this.children.forEach(e)}}function dp(t,e){const n=ut.now(),r=({timestamp:i})=>{const s=i-n;s>=e&&(Bt(r),t(s-e))};return X.setup(r,!0),()=>Bt(r)}const Qc=["TopLeft","TopRight","BottomLeft","BottomRight"],hp=Qc.length,Zs=t=>typeof t=="string"?parseFloat(t):t,Js=t=>typeof t=="number"||$.test(t);function mp(t,e,n,r,i,s){var o,a,c,l;i?(t.opacity=J(0,(o=n.opacity)!=null?o:1,pp(r)),t.opacityExit=J((a=e.opacity)!=null?a:1,0,gp(r))):s&&(t.opacity=J((c=e.opacity)!=null?c:1,(l=n.opacity)!=null?l:1,r));for(let u=0;u<hp;u++){const f=`border${Qc[u]}Radius`;let d=Qs(e,f),h=Qs(n,f);if(d===void 0&&h===void 0)continue;d||(d=0),h||(h=0),d===0||h===0||Js(d)===Js(h)?(t[f]=Math.max(J(Zs(d),Zs(h),r),0),(Mt.test(h)||Mt.test(d))&&(t[f]+="%")):t[f]=h}(e.rotate||n.rotate)&&(t.rotate=J(e.rotate||0,n.rotate||0,r))}function Qs(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const pp=tl(0,.5,Oa),gp=tl(.5,.95,bt);function tl(t,e,n){return r=>r<t?0:r>e?1:n(Ne(t,e,r))}function to(t,e){t.min=e.min,t.max=e.max}function wt(t,e){to(t.x,e.x),to(t.y,e.y)}function eo(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function no(t,e,n,r,i){return t-=e,t=hn(t,1/n,r),i!==void 0&&(t=hn(t,1/i,r)),t}function yp(t,e=0,n=1,r=.5,i,s=t,o=t){if(Mt.test(e)&&(e=parseFloat(e),e=J(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=J(s.min,s.max,r);t===s&&(a-=e),t.min=no(t.min,e,n,a,i),t.max=no(t.max,e,n,a,i)}function ro(t,e,[n,r,i],s,o){yp(t,e[n],e[r],e[i],e.scale,s,o)}const vp=["x","scaleX","originX"],bp=["y","scaleY","originY"];function io(t,e,n,r){ro(t.x,e,vp,n?n.x:void 0,r?r.x:void 0),ro(t.y,e,bp,n?n.y:void 0,r?r.y:void 0)}function so(t){return t.translate===0&&t.scale===1}function el(t){return so(t.x)&&so(t.y)}function oo(t,e){return t.min===e.min&&t.max===e.max}function xp(t,e){return oo(t.x,e.x)&&oo(t.y,e.y)}function ao(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nl(t,e){return ao(t.x,e.x)&&ao(t.y,e.y)}function co(t){return ct(t.x)/ct(t.y)}function lo(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class wp{constructor(){this.members=[]}add(e){ci(this.members,e),e.scheduleRender()}remove(e){if(li(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(e,n){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,n&&(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:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.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 Cp(t,e,n){let r="";const i=t.x.translate/e.x,s=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:f,rotateY:d,skewX:h,skewY:m}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),h&&(r+=`skewX(${h}deg) `),m&&(r+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const Wn=["","X","Y","Z"],Tp=1e3;let Sp=0;function Hn(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function rl(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Uc(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",X,!(i||s))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&rl(r)}function il({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=Sp++,this.animationId=0,this.animationCommitId=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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Ep),this.nodes.forEach(Dp),this.nodes.forEach(jp),this.nodes.forEach(Rp)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new fp)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new fi),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const c=this.eventHandlers.get(o);c&&c.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=bc(o)&&!ph(o),this.instance=o;const{layoutId:a,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let u,f=0;const d=()=>this.root.updateBlockedByResize=!1;X.read(()=>{f=window.innerWidth}),t(o,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,u&&u(),u=dp(d,250),an.hasAnimatedSinceResize&&(an.hasAnimatedSinceResize=!1,this.nodes.forEach(ho)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||l.getDefaultTransition()||Bp,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=l.getProps(),v=!this.targetLayout||!nl(this.targetLayout,h),w=!f&&d;if(this.options.layoutRoot||this.resumeFrom||w||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x=V(p({},Si(m,"layout")),{onPlay:y,onComplete:b});(l.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,w)}else f||ho(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Bt(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(Vp),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&rl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(uo);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(fo);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(kp),this.nodes.forEach(Pp),this.nodes.forEach(Ap)):this.nodes.forEach(fo),this.clearAllSnapshots();const a=ut.now();st.delta=jt(0,1e3/60,a-st.timestamp),st.timestamp=a,st.isProcessing=!0,Vn.update.process(st),Vn.preRender.process(st),Vn.render.process(st),st.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ai.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Mp),this.sharedNodes.forEach(Ip)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ct(this.snapshot.measuredBox.x)&&!ct(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=nt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!el(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;o&&this.instance&&(a||zt(this.latestValues)||u)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return o&&(c=this.removeTransform(c)),$p(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:o}=this.options;if(!o)return nt();const a=o.measureViewportBox();if(!(((l=this.scroll)==null?void 0:l.wasRoot)||this.path.some(Op))){const{scroll:u}=this.root;u&&(ce(a.x,u.offset.x),ce(a.y,u.offset.y))}return a}removeElementScroll(o){var c;const a=nt();if(wt(a,o),(c=this.scroll)!=null&&c.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:f,options:d}=u;u!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&wt(a,o),ce(a.x,f.offset.x),ce(a.y,f.offset.y))}return a}applyTransform(o,a=!1){const c=nt();wt(c,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&le(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),zt(u.latestValues)&&le(c,u.latestValues)}return zt(this.latestValues)&&le(c,this.latestValues),c}removeTransform(o){const a=nt();wt(a,o);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!zt(l.latestValues))continue;Br(l.latestValues)&&l.updateSnapshot();const u=nt(),f=l.measurePageBox();wt(u,f),io(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return zt(this.latestValues)&&io(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options=V(p(p({},this.options),o),{crossfade:o.crossfade!==void 0?o.crossfade:!0})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==st.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var h;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!this.layout||!(u||f))return;this.resolvedRelativeTargetAt=st.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=nt(),this.targetWithTransforms=nt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qm(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):wt(this.target,this.layout.layoutBox),Lc(this.target,this.targetDelta)):wt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Br(this.parent.latestValues)||Nc(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,c){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nt(),this.relativeTargetOrigin=nt(),mn(this.relativeTargetOrigin,a,c),wt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var m;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===st.timestamp&&(c=!1),c)return;const{layout:l,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||u))return;wt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;sm(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=nt());const{target:h}=o;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(eo(this.prevProjectionDelta.x,this.projectionDelta.x),eo(this.prevProjectionDelta.y,this.projectionDelta.y)),Ve(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!lo(this.projectionDelta.x,this.prevProjectionDelta.x)||!lo(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ue(),this.projectionDelta=ue(),this.projectionDeltaWithTransform=ue()}setAnimationOrigin(o,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u=p({},this.latestValues),f=ue();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=nt(),h=c?c.source:void 0,m=this.layout?this.layout.source:void 0,y=h!==m,b=this.getStack(),v=!b||b.members.length<=1,w=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(Lp));this.animationProgress=0;let x;this.mixTargetDelta=T=>{const M=T/1e3;mo(f.x,o.x,M),mo(f.y,o.y,M),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(mn(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Np(this.relativeTarget,this.relativeTargetOrigin,d,M),x&&xp(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=nt()),wt(x,this.relativeTarget)),y&&(this.animationValues=u,mp(u,l,this.latestValues,M,w,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,c,l;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(l=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||l.stop(),this.pendingAnimation&&(Bt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{an.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=pe(0)),this.currentAnimation=lp(this.motionValue,[0,1e3],V(p({},o),{velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Tp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&sl(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||nt();const f=ct(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+f;const d=ct(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+d}wt(a,c),le(a,u),Ve(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new wp),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Hn("z",o,l,this.animationValues);for(let u=0;u<Wn.length;u++)Hn(`rotate${Wn[u]}`,o,l,this.animationValues),Hn(`skew${Wn[u]}`,o,l,this.animationValues);o.render();for(const u in l)o.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);o.scheduleRender()}applyProjectionStyles(o,a){var m,y;if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=on(a==null?void 0:a.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=on(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!zt(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let f=Cp(this.projectionDeltaWithTransform,this.treeScale,u);c&&(f=c(u,f)),o.transform=f;const{x:d,y:h}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${h.origin*100}% 0`,l.animationValues?o.opacity=l===this?(y=(m=u.opacity)!=null?m:this.latestValues.opacity)!=null?y:1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=l===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const b in Lr){if(u[b]===void 0)continue;const{correct:v,applyTo:w,isCSSVariable:x}=Lr[b],T=f==="none"?u[b]:v(u[b],l);if(w){const M=w.length;for(let P=0;P<M;P++)o[w[P]]=T}else x?this.options.visualElement.renderState.vars[b]=T:o[b]=T}this.options.layoutId&&(o.pointerEvents=l===this?on(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(uo),this.root.sharedNodes.clear()}}}function Pp(t){t.updateLayout()}function Ap(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;s==="size"?yt(f=>{const d=o?e.measuredBox[f]:e.layoutBox[f],h=ct(d);d.min=r[f].min,d.max=d.min+h}):sl(s,e.layoutBox,r)&&yt(f=>{const d=o?e.measuredBox[f]:e.layoutBox[f],h=ct(r[f]);d.max=d.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+h)});const a=ue();Ve(a,r,e.layoutBox);const c=ue();o?Ve(c,t.applyTransform(i,!0),e.measuredBox):Ve(c,r,e.layoutBox);const l=!el(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const m=nt();mn(m,e.layoutBox,d.layoutBox);const y=nt();mn(y,r,h.layoutBox),nl(m,y)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=m,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function Ep(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Rp(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Mp(t){t.clearSnapshot()}function uo(t){t.clearMeasurements()}function fo(t){t.isLayoutDirty=!1}function kp(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ho(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Dp(t){t.resolveTargetDelta()}function jp(t){t.calcProjection()}function Vp(t){t.resetSkewAndRotation()}function Ip(t){t.removeLeadSnapshot()}function mo(t,e,n){t.translate=J(e.translate,0,n),t.scale=J(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function po(t,e,n,r){t.min=J(e.min,n.min,r),t.max=J(e.max,n.max,r)}function Np(t,e,n,r){po(t.x,e.x,n.x,r),po(t.y,e.y,n.y,r)}function Lp(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Bp={duration:.45,ease:[.4,0,.1,1]},go=t=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),yo=go("applewebkit/")&&!go("chrome/")?Math.round:bt;function vo(t){t.min=yo(t.min),t.max=yo(t.max)}function $p(t){vo(t.x),vo(t.y)}function sl(t,e,n){return t==="position"||t==="preserve-aspect"&&!Gm(co(e),co(n),.2)}function Op(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const Fp=il({attachResizeListener:(t,e)=>Oe(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Gn={current:void 0},ol=il({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Gn.current){const t=new Fp({});t.mount(window),t.setOptions({layoutScroll:!0}),Gn.current=t}return Gn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),_p={pan:{Feature:ap},drag:{Feature:op,ProjectionNode:ol,MeasureLayout:Jc}};function bo(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&X.postRender(()=>s(e,He(e)))}class Up extends Ft{mount(){const{current:e}=this.node;e&&(this.unmount=uh(e,(n,r)=>(bo(this.node,r,"Start"),i=>bo(this.node,i,"End"))))}unmount(){}}class zp extends Ft{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(n){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=Ue(Oe(this.node.current,"focus",()=>this.onFocus()),Oe(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xo(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&X.postRender(()=>s(e,He(e)))}class Wp extends Ft{mount(){const{current:e}=this.node;e&&(this.unmount=mh(e,(n,r)=>(xo(this.node,r,"Start"),(i,{success:s})=>xo(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Wr=new WeakMap,qn=new WeakMap,Hp=t=>{const e=Wr.get(t.target);e&&e(t)},Gp=t=>{t.forEach(Hp)};function qp(n){var r=n,{root:t}=r,e=W(r,["root"]);const i=t||document;qn.has(i)||qn.set(i,{});const s=qn.get(i),o=JSON.stringify(e);return s[o]||(s[o]=new IntersectionObserver(Gp,p({root:t},e))),s[o]}function Kp(t,e,n){const r=qp(e);return Wr.set(t,n),r.observe(t),()=>{Wr.delete(t),r.unobserve(t)}}const Yp={some:0,all:1};class Xp extends Ft{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=e,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Yp[i]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,s&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=l?u:f;d&&d(c)};return Kp(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver=="undefined")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Zp(e,n))&&this.startObserver()}unmount(){}}function Zp({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Jp={inView:{Feature:Xp},tap:{Feature:Wp},focus:{Feature:zp},hover:{Feature:Up}},Qp={layout:{ProjectionNode:ol,MeasureLayout:Jc}},t0=p(p(p(p({},Fm),Jp),_p),Qp),e0=nm(t0,pm);var al={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},wo=S.createContext&&S.createContext(al),n0=["attr","size","title"];function r0(t,e){if(t==null)return{};var n=i0(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function i0(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function pn(){return pn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},pn.apply(this,arguments)}function Co(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function gn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Co(Object(n),!0).forEach(function(r){s0(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Co(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function s0(t,e,n){return e=o0(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o0(t){var e=a0(t,"string");return typeof e=="symbol"?e:e+""}function a0(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function cl(t){return t&&t.map((e,n)=>S.createElement(e.tag,gn({key:n},e.attr),cl(e.child)))}function $i(t){return e=>S.createElement(c0,pn({attr:gn({},t.attr)},e),cl(t.child))}function c0(t){var e=n=>{var{attr:r,size:i,title:s}=t,o=r0(t,n0),a=i||n.size||"1em",c;return n.className&&(c=n.className),t.className&&(c=(c?c+" ":"")+t.className),S.createElement("svg",pn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:c,style:gn(gn({color:t.color||n.color},n.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),s&&S.createElement("title",null,s),t.children)};return wo!==void 0?S.createElement(wo.Consumer,null,n=>e(n)):e(al)}function l0(t){return $i({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m184 112 144 144-144 144"},child:[]}]})(t)}function u0(t){return $i({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"336",height:"336",x:"128",y:"128",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"57",ry:"57"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m383.5 128 .5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24"},child:[]}]})(t)}function f0(t){return $i({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M248 64C146.39 64 64 146.39 64 248s82.39 184 184 184 184-82.39 184-184S349.61 64 248 64z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M220 220h32v116"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M208 340h88"},child:[]},{tag:"path",attr:{d:"M248 130a26 26 0 1 0 26 26 26 26 0 0 0-26-26z"},child:[]}]})(t)}const To={primary:"#2563eb",mainBackground:"#ffffff",innerBackground:"#f9fafb",cardBackground:"#ffffff",primaryText:"#000000",secondaryText:"#6b7280",descriptionText:"#6b7280",amountText:"#000000",subtitleText:"#6b7280",cardText:"#000000",cardSecondaryText:"#6b7280",usdText:"#6b7280",footerText:"#6b7280",qrAddressBackground:"#e5e7eb",qrAddressText:"#000000",qrInstructionsBackground:"#e5e7eb",qrInstructionsText:"#6b7280",qrCardBackground:"#ffffff",qrCardText:"#000000",danger:"#dc2626",success:"#16a34a",warning:"#ca8a04",borderColor:"#e5e7eb",info:"#dbeafe",fontFamily:"Inter, system-ui, sans-serif",fontSizeBase:"14px",fontSizeSmall:"12px",fontSizeLarge:"32px",fontWeightNormal:"400",spacingUnit:"4px",borderRadius:"8px",buttonRadius:"6px"},So={default:To,night:V(p({},To),{primary:"#0085FF",mainBackground:"#14171D",innerBackground:"#1a1d24",cardBackground:"#1f222a",primaryText:"#C9CED8",secondaryText:"#8C99AD",descriptionText:"#8C99AD",amountText:"#C9CED8",subtitleText:"#8C99AD",cardText:"#C9CED8",cardSecondaryText:"#8C99AD",usdText:"#8C99AD",footerText:"#8C99AD",qrAddressBackground:"#2B3039",qrAddressText:"#C9CED8",qrInstructionsBackground:"#2B3039",qrInstructionsText:"#8C99AD",qrCardBackground:"#1f222a",qrCardText:"#C9CED8",danger:"#F23154",borderColor:"#2B3039",info:"#1e3a5f"})},d0=(t="default",e)=>{const n=So[t]||So.default,r=p(p({},n),e==null?void 0:e.variables),i={};return Object.entries(r).forEach(([s,o])=>{i[`--w3-${s}`]=o}),i},h0=({id:t,name:e,description:n,iconUrl:r,icon:i,fallbackText:s,avatarColor:o="blue",onClick:a,disabled:c=!1})=>{const[l,u]=S.useState(!1);return g.jsxs(ot,{justify:"space-between",w:"100%",p:"sm",style:{backgroundColor:"var(--w3-cardBackground)",border:"1px solid var(--w3-borderColor)",borderRadius:"12px",cursor:c?"not-allowed":"pointer",opacity:c?.4:1,transition:"all 200ms ease",position:"relative",overflow:"hidden",color:"var(--w3-cardText)"},onClick:c?void 0:a,onMouseEnter:()=>!c&&u(!0),onMouseLeave:()=>u(!1),className:"payment-method-row",children:[g.jsxs(ot,{gap:"md",style:{flexShrink:0},children:[g.jsx(F,{style:{width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 200ms ease",transform:l?"scale(1.1)":"scale(1)"},children:i||(r?g.jsx(Kt,{size:32,src:r,radius:"lg"}):g.jsx(Kt,{size:32,color:o,radius:"lg",children:s}))}),g.jsxs(F,{style:{minWidth:0},children:[g.jsx(G,{fw:700,size:"xs",tt:"capitalize",style:{letterSpacing:"-0.02em",color:"var(--w3-cardText)"},children:e}),g.jsx(G,{size:"xs",fw:500,style:{letterSpacing:"-0.01em",fontSize:"11px",color:"var(--w3-cardSecondaryText)"},children:n})]})]}),g.jsx(ot,{gap:"sm",align:"center",children:g.jsx(F,{style:{opacity:l?1:0,transform:l?"translateX(0)":"translateX(-8px)",transition:"all 200ms ease",color:"var(--w3-cardText)"},children:g.jsx(l0,{size:16})})})]},t)},m0="data:image/svg+xml,%3csvg%20width='24'%20height='23.5'%20viewBox='0%200%2048%2047'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M43.972%200H3.56125C1.75696%200%200.294922%201.46203%200.294922%203.26633V43.677C0.294922%2045.4813%201.75696%2046.9434%203.56125%2046.9434H43.972C45.7763%2046.9434%2047.2383%2045.4813%2047.2383%2043.677V3.26633C47.2383%201.46203%2045.7763%200%2043.972%200ZM39.7896%2030.1883C39.7896%2035.0097%2035.8685%2038.9309%2031.0471%2038.9309C28.3506%2038.9309%2025.9349%2037.7023%2024.3304%2035.7773C22.726%2037.7023%2020.3104%2038.9309%2017.6138%2038.9309C12.7924%2038.9309%208.87127%2035.0097%208.87127%2030.1883V10.0384C8.87127%208.92059%209.77737%208.0125%2010.8971%208.0125C12.0169%208.0125%2012.923%208.91861%2012.923%2010.0384V30.1903C12.923%2032.7781%2015.028%2034.8831%2017.6158%2034.8831C20.2035%2034.8831%2022.3085%2032.7781%2022.3085%2030.1903V22.1897C22.3085%2021.0719%2023.2146%2020.1638%2024.3344%2020.1638C25.4542%2020.1638%2026.3603%2021.0699%2026.3603%2022.1897V30.1903C26.3603%2032.7781%2028.4653%2034.8831%2031.053%2034.8831C33.6408%2034.8831%2035.7458%2032.7781%2035.7458%2030.1903V10.0384C35.7458%208.92059%2036.6519%208.0125%2037.7717%208.0125C38.8914%208.0125%2039.7975%208.91861%2039.7975%2010.0384V30.1903L39.7896%2030.1883Z'%20fill='white'%20class='group-hover:fill-[%23BF1B1B]'%3e%3c/path%3e%3c/svg%3e",p0="data:image/svg+xml,%3csvg%20width='24'%20height='23.5'%20viewBox='0%200%2048%2047'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M43.9654%200H3.55466C1.75037%200%200.28833%201.46203%200.28833%203.26633V43.677C0.28833%2045.4813%201.75037%2046.9434%203.55466%2046.9434H43.9654C45.7697%2046.9434%2047.2317%2045.4813%2047.2317%2043.677V3.26633C47.2317%201.46203%2045.7697%200%2043.9654%200ZM39.785%2030.1883C39.785%2035.0097%2035.8638%2038.9309%2031.0425%2038.9309H10.8906C9.77276%2038.9309%208.86468%2038.0248%208.86468%2036.905C8.86468%2035.7852%209.77078%2034.8791%2010.8906%2034.8791H31.0425C33.6302%2034.8791%2035.7352%2032.7741%2035.7352%2030.1864C35.7352%2027.5986%2033.6302%2025.4936%2031.0425%2025.4936H23.0419C21.9241%2025.4936%2021.016%2024.5875%2021.016%2023.4677C21.016%2022.348%2021.9221%2021.4419%2023.0419%2021.4419H31.0425C33.6302%2021.4419%2035.7352%2019.3368%2035.7352%2016.7491C35.7352%2014.1614%2033.6302%2012.0563%2031.0425%2012.0563H10.8906C9.77276%2012.0563%208.86468%2011.1502%208.86468%2010.0305C8.86468%208.9107%209.77078%208.00459%2010.8906%208.00459H31.0425C35.8638%208.00459%2039.785%2011.9258%2039.785%2016.7471C39.785%2019.4437%2038.5564%2021.8593%2036.6315%2023.4638C38.5564%2025.0683%2039.785%2027.4839%2039.785%2030.1804V30.1883Z'%20fill='white'%20class='group-hover:fill-[%23FF3223]'%3e%3c/path%3e%3c/svg%3e",g0="data:image/svg+xml,%3csvg%20width='14.5'%20height='11'%20viewBox='0%200%2029%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.4597%205.22243C16.6803%203.79799%2016.2708%204.07496%2018.1384%202.86616C18.6825%202.60897%2018.8744%202.06096%2018.7141%201.47535C18.5539%200.889747%2017.9129%200.632558%2017.4658%200.816549C15.6714%201.691%2014.8523%202.698%2014.2608%203.44781C13.9066%203.87515%2013.7939%204.52802%2014.1144%205.00283C14.4349%205.47963%2015.0422%205.58844%2015.4597%205.22243Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M28.2084%2010.9678C28.1055%2010.3169%2027.4586%2010.123%2027.0412%2010.2694C26.6257%2010.4158%2026.3685%2010.8926%2026.3685%2011.4782C26.3685%2012.687%2026.1449%2013.969%2025.7275%2015.1759C25.0232%2017.0811%2023.5176%2019.0575%2022.4295%2019.3127C22.3979%2019.2395%2022.3346%2018.9467%2022.3346%2018.5807C22.3346%2016.8239%2023.3594%2013.4547%2025.9194%209.97664C26.2716%209.53744%2026.2083%208.84302%2025.7908%208.43943C25.407%208.03584%2024.7996%208.10904%2024.4455%208.58583C23.8401%209.41082%2023.306%2010.2398%2022.8351%2011.0588C22.8054%2011.0747%2022.7777%2011.0925%2022.748%2011.1122C15.7702%2015.9831%2012.1241%2019.2791%209.72427%2019.2791C9.72427%2019.1683%209.75592%2018.9863%209.97948%2018.3631L13.3091%209.72143C13.5327%209.17144%2013.3091%208.51263%2012.8284%208.29303C12.3476%208.03584%2011.7719%208.29303%2011.58%208.84302L8.09012%2017.8863C7.44912%2019.5343%207.99318%2021.5107%209.72229%2021.5107C12.1221%2021.5107%2015.3706%2018.9506%2021.0862%2014.8969C20.6391%2016.2442%2020.4096%2017.4985%2020.4096%2018.5827C20.4096%2019.9003%2020.9536%2021.5127%2022.3623%2021.5127C24.1863%2021.5127%2026.5228%2018.8042%2027.516%2015.9831C27.7395%2015.3242%2028.0126%2014.1708%2028.0759%2013.6782C28.1392%2013.1856%2028.3054%2011.6207%2028.2025%2010.9698L28.2084%2010.9678Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M1.16597%2019.376C0.576406%2019.376%200.0996094%2019.8528%200.0996094%2020.4423C0.0996094%2021.0319%200.576406%2021.5087%201.16597%2021.5087C1.75553%2021.5087%202.23232%2021.0319%202.23232%2020.4423C2.23232%2019.8528%201.75553%2019.376%201.16597%2019.376Z'%20fill='white'%3e%3c/path%3e%3c/svg%3e",y0=({style:t})=>g.jsx(ot,{justify:"center",py:"md",px:"md",style:p({backgroundColor:"var(--w3-mainBackground)",borderBottomLeftRadius:"var(--mantine-radius-xl)",borderBottomRightRadius:"var(--mantine-radius-xl)",flexShrink:0,height:"60px",minHeight:"60px"},t),children:g.jsxs(ot,{gap:"xs",align:"center",style:{opacity:.9,cursor:"pointer",transition:"opacity 200ms ease"},onClick:()=>window.open("https://w3.io","_blank"),onMouseEnter:e=>e.currentTarget.style.opacity="1",onMouseLeave:e=>e.currentTarget.style.opacity="0.9",children:[g.jsxs(ot,{gap:"1px",align:"center",wrap:"nowrap",children:[g.jsx(fe,{src:m0,alt:"W",w:12,h:12,style:{display:"block",filter:"brightness(0) saturate(100%) invert(13%) sepia(100%) saturate(7463%) hue-rotate(3deg) brightness(80%)"}}),g.jsx(fe,{src:p0,alt:"3",w:12,h:12,style:{display:"block",filter:"brightness(0) saturate(100%) invert(13%) sepia(100%) saturate(7463%) hue-rotate(3deg) brightness(80%)"}}),g.jsx(fe,{src:g0,alt:"io",w:12,h:12,style:{display:"block",filter:"brightness(0) saturate(100%) invert(13%) sepia(100%) saturate(7463%) hue-rotate(3deg) brightness(80%)"}})]}),g.jsx(G,{size:"xs",fw:700,style:{color:"var(--w3-footerText)"},children:"Payments"})]})}),Hr={BTC:{name:"Bitcoin",decimals:8,color:"#f7931a",symbol:"₿"},ETH:{name:"Ethereum",decimals:18,color:"#627eea",symbol:"Ξ"},USDC:{name:"USD Coin",decimals:6,color:"#2775ca",symbol:"USDC"},USDT:{name:"Tether",decimals:6,color:"#26a17b",symbol:"USDT"},SOL:{name:"Solana",decimals:9,color:"#9945ff",symbol:"◎"},ADA:{name:"Cardano",decimals:6,color:"#0033ad",symbol:"₳"},USD:{name:"US Dollar",decimals:2,color:"#22c55e",symbol:"$"},EUR:{name:"Euro",decimals:2,color:"#3b82f6",symbol:"€"},GBP:{name:"British Pound",decimals:2,color:"#7c3aed",symbol:"£"},PHP:{name:"Philippine Peso",decimals:2,color:"#f59e0b",symbol:"₱"}},Po=r=>{var i=r,{currency:t,size:e=24}=i,n=W(i,["currency","size"]);const s=Hr[t];return g.jsx(Kt,V(p({size:e,color:s.color},n),{children:s.symbol}))},v0={coinbase:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIGZpbGw9IiMwMDUyRkYiLz4KPHJlY3QgeD0iOSIgeT0iOSIgd2lkdGg9IjYiIGhlaWdodD0iNiIgcng9IjEiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg==",kraken:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIGZpbGw9IiM1NzQxOUEiLz4KPHBhdGggZD0iTTggN0wxNiA5VjE3TDggMTVWN1oiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg==",binance:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIGZpbGw9IiNGM0JBMkYiLz4KPHBhdGggZD0iTTEyIDZMMTUgOVYxNUwxMiAxOEw5IDE1VjlMMTIgNloiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg=="},b0=r=>{var i=r,{exchange:t,size:e=24}=i,n=W(i,["exchange","size"]);const s=v0[t];return g.jsx(Kt,p({size:e,src:s,alt:t},n))};var re={},Kn,Ao;function x0(){return Ao||(Ao=1,Kn=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Kn}var Yn={},Nt={},Eo;function Jt(){if(Eo)return Nt;Eo=1;let t;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Nt.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},Nt.getSymbolTotalCodewords=function(r){return e[r]},Nt.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},Nt.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');t=r},Nt.isKanjiModeEnabled=function(){return typeof t!="undefined"},Nt.toSJIS=function(r){return t(r)},Nt}var Xn={},Ro;function Oi(){return Ro||(Ro=1,(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+n)}}t.isValid=function(r){return r&&typeof r.bit!="undefined"&&r.bit>=0&&r.bit<4},t.from=function(r,i){if(t.isValid(r))return r;try{return e(r)}catch(s){return i}}})(Xn)),Xn}var Zn,Mo;function w0(){if(Mo)return Zn;Mo=1;function t(){this.buffer=[],this.length=0}return t.prototype={get:function(e){const n=Math.floor(e/8);return(this.buffer[n]>>>7-e%8&1)===1},put:function(e,n){for(let r=0;r<n;r++)this.putBit((e>>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length++}},Zn=t,Zn}var Jn,ko;function C0(){if(ko)return Jn;ko=1;function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return t.prototype.set=function(e,n,r,i){const s=e*this.size+n;this.data[s]=r,i&&(this.reservedBit[s]=!0)},t.prototype.get=function(e,n){return this.data[e*this.size+n]},t.prototype.xor=function(e,n,r){this.data[e*this.size+n]^=r},t.prototype.isReserved=function(e,n){return this.reservedBit[e*this.size+n]},Jn=t,Jn}var Qn={},Do;function T0(){return Do||(Do=1,(function(t){const e=Jt().getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,s=e(r),o=s===145?26:Math.ceil((s-13)/(2*i-2))*2,a=[s-7];for(let c=1;c<i-1;c++)a[c]=a[c-1]-o;return a.push(6),a.reverse()},t.getPositions=function(r){const i=[],s=t.getRowColCoords(r),o=s.length;for(let a=0;a<o;a++)for(let c=0;c<o;c++)a===0&&c===0||a===0&&c===o-1||a===o-1&&c===0||i.push([s[a],s[c]]);return i}})(Qn)),Qn}var tr={},jo;function S0(){if(jo)return tr;jo=1;const t=Jt().getSymbolSize,e=7;return tr.getPositions=function(r){const i=t(r);return[[0,0],[i-e,0],[0,i-e]]},tr}var er={},Vo;function P0(){return Vo||(Vo=1,(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},t.from=function(i){return t.isValid(i)?parseInt(i,10):void 0},t.getPenaltyN1=function(i){const s=i.size;let o=0,a=0,c=0,l=null,u=null;for(let f=0;f<s;f++){a=c=0,l=u=null;for(let d=0;d<s;d++){let h=i.get(f,d);h===l?a++:(a>=5&&(o+=e.N1+(a-5)),l=h,a=1),h=i.get(d,f),h===u?c++:(c>=5&&(o+=e.N1+(c-5)),u=h,c=1)}a>=5&&(o+=e.N1+(a-5)),c>=5&&(o+=e.N1+(c-5))}return o},t.getPenaltyN2=function(i){const s=i.size;let o=0;for(let a=0;a<s-1;a++)for(let c=0;c<s-1;c++){const l=i.get(a,c)+i.get(a,c+1)+i.get(a+1,c)+i.get(a+1,c+1);(l===4||l===0)&&o++}return o*e.N2},t.getPenaltyN3=function(i){const s=i.size;let o=0,a=0,c=0;for(let l=0;l<s;l++){a=c=0;for(let u=0;u<s;u++)a=a<<1&2047|i.get(l,u),u>=10&&(a===1488||a===93)&&o++,c=c<<1&2047|i.get(u,l),u>=10&&(c===1488||c===93)&&o++}return o*e.N3},t.getPenaltyN4=function(i){let s=0;const o=i.data.length;for(let c=0;c<o;c++)s+=i.data[c];return Math.abs(Math.ceil(s*100/o/5)-10)*e.N4};function n(r,i,s){switch(r){case t.Patterns.PATTERN000:return(i+s)%2===0;case t.Patterns.PATTERN001:return i%2===0;case t.Patterns.PATTERN010:return s%3===0;case t.Patterns.PATTERN011:return(i+s)%3===0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(s/3))%2===0;case t.Patterns.PATTERN101:return i*s%2+i*s%3===0;case t.Patterns.PATTERN110:return(i*s%2+i*s%3)%2===0;case t.Patterns.PATTERN111:return(i*s%3+(i+s)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(i,s){const o=s.size;for(let a=0;a<o;a++)for(let c=0;c<o;c++)s.isReserved(c,a)||s.xor(c,a,n(i,c,a))},t.getBestMask=function(i,s){const o=Object.keys(t.Patterns).length;let a=0,c=1/0;for(let l=0;l<o;l++){s(l),t.applyMask(l,i);const u=t.getPenaltyN1(i)+t.getPenaltyN2(i)+t.getPenaltyN3(i)+t.getPenaltyN4(i);t.applyMask(l,i),u<c&&(c=u,a=l)}return a}})(er)),er}var nn={},Io;function ll(){if(Io)return nn;Io=1;const t=Oi(),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return nn.getBlocksCount=function(i,s){switch(s){case t.L:return e[(i-1)*4+0];case t.M:return e[(i-1)*4+1];case t.Q:return e[(i-1)*4+2];case t.H:return e[(i-1)*4+3];default:return}},nn.getTotalCodewordsCount=function(i,s){switch(s){case t.L:return n[(i-1)*4+0];case t.M:return n[(i-1)*4+1];case t.Q:return n[(i-1)*4+2];case t.H:return n[(i-1)*4+3];default:return}},nn}var nr={},Me={},No;function A0(){if(No)return Me;No=1;const t=new Uint8Array(512),e=new Uint8Array(256);return(function(){let r=1;for(let i=0;i<255;i++)t[i]=r,e[r]=i,r<<=1,r&256&&(r^=285);for(let i=255;i<512;i++)t[i]=t[i-255]})(),Me.log=function(r){if(r<1)throw new Error("log("+r+")");return e[r]},Me.exp=function(r){return t[r]},Me.mul=function(r,i){return r===0||i===0?0:t[e[r]+e[i]]},Me}var Lo;function E0(){return Lo||(Lo=1,(function(t){const e=A0();t.mul=function(r,i){const s=new Uint8Array(r.length+i.length-1);for(let o=0;o<r.length;o++)for(let a=0;a<i.length;a++)s[o+a]^=e.mul(r[o],i[a]);return s},t.mod=function(r,i){let s=new Uint8Array(r);for(;s.length-i.length>=0;){const o=s[0];for(let c=0;c<i.length;c++)s[c]^=e.mul(i[c],o);let a=0;for(;a<s.length&&s[a]===0;)a++;s=s.slice(a)}return s},t.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let s=0;s<r;s++)i=t.mul(i,new Uint8Array([1,e.exp(s)]));return i}})(nr)),nr}var rr,Bo;function R0(){if(Bo)return rr;Bo=1;const t=E0();function e(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return e.prototype.initialize=function(r){this.degree=r,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(r){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(r.length+this.degree);i.set(r);const s=t.mod(i,this.genPoly),o=this.degree-s.length;if(o>0){const a=new Uint8Array(this.degree);return a.set(s,o),a}return s},rr=e,rr}var ir={},sr={},or={},$o;function ul(){return $o||($o=1,or.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),or}var At={},Oo;function fl(){if(Oo)return At;Oo=1;const t="[0-9]+",e="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r
|
|
19
|
-
]))+`;
|
|
20
|
-
Make sure your charset is UTF-8`);s=(s>>>8&255)*192+(s&255),r.put(s,13)}},
|
|
21
|
-
Suggested mode is: `+e.toString(T));switch(x===e.KANJI&&!a.isKanjiModeEnabled()&&(x=e.BYTE),x){case e.NUMERIC:return new n(v);case e.ALPHANUMERIC:return new r(v);case e.KANJI:return new s(v);case e.BYTE:return new i(v)}}t.fromArray=function(w){return w.reduce(function(x,T){return typeof T=="string"?x.push(b(T,null)):T.data&&x.push(b(T.data,T.mode)),x},[])},t.fromString=function(w,x){const T=f(w,a.isKanjiModeEnabled()),M=m(T),P=y(M,x),A=c.find_path(P.map,"start","end"),C=[];for(let R=1;R<A.length-1;R++)C.push(P.table[A[R]].node);return t.fromArray(h(C))},t.rawSplit=function(w){return t.fromArray(f(w,a.isKanjiModeEnabled()))}})(
|
|
18
|
+
`),()=>{b.contains(y)&&b.removeChild(y)}},[e]),g.jsx(xh,{isPresent:e,childRef:s,sizeRef:o,children:vn.cloneElement(t,{ref:c})})}const Ch=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,root:c})=>{const l=ai(Th),u=S.useId();let f=!0,d=S.useMemo(()=>(f=!1,{id:u,initial:e,isPresent:n,custom:i,onExitComplete:h=>{l.set(h,!0);for(const m of l.values())if(!m)return;r&&r()},register:h=>(l.set(h,!1),()=>l.delete(h))}),[n,l,r]);return s&&f&&(d=p({},d)),S.useMemo(()=>{l.forEach((h,m)=>l.set(m,!1))},[n]),vn.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(t=g.jsx(wh,{isPresent:n,anchorX:a,root:c,children:t})),g.jsx(wn.Provider,{value:d,children:t})};function Th(){return new Map}function wc(t=!0){const e=S.useContext(wn);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,s=S.useId();S.useEffect(()=>{if(t)return i(s)},[t]);const o=S.useCallback(()=>t&&r&&r(s),[s,r,t]);return!n&&r?[!1,o]:[!0]}const en=t=>t.key||"";function Rs(t){const e=[];return S.Children.forEach(t,n=>{S.isValidElement(n)&&e.push(n)}),e}const Sh=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",root:c})=>{const[l,u]=wc(o),f=S.useMemo(()=>Rs(t),[t]),d=o&&!l?[]:f.map(en),h=S.useRef(!0),m=S.useRef(f),y=ai(()=>new Map),[b,v]=S.useState(f),[w,x]=S.useState(f);Ma(()=>{h.current=!1,m.current=f;for(let P=0;P<w.length;P++){const A=en(w[P]);d.includes(A)?y.delete(A):y.get(A)!==!0&&y.set(A,!1)}},[w,d.length,d.join("-")]);const T=[];if(f!==b){let P=[...f];for(let A=0;A<w.length;A++){const C=w[A],R=en(C);d.includes(R)||(P.splice(A,0,C),T.push(C))}return s==="wait"&&T.length&&(P=T),x(Rs(P)),v(f),null}process.env.NODE_ENV!=="production"&&s==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:M}=S.useContext(oi);return g.jsx(g.Fragment,{children:w.map(P=>{const A=en(P),C=o&&!l?!1:f===w||d.includes(A),R=()=>{if(y.has(A))y.set(A,!0);else return;let j=!0;y.forEach(D=>{D||(j=!1)}),j&&(M==null||M(),x(m.current),o&&(u==null||u()),r&&r())};return g.jsx(Ch,{isPresent:C,initial:!h.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:s,root:c,onExitComplete:C?void 0:R,anchorX:a,children:P},A)})})},Cc=S.createContext({strict:!1}),Ms={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"]},ye={};for(const t in Ms)ye[t]={isEnabled:e=>Ms[t].some(n=>!!e[n])};function Ph(t){for(const e in t)ye[e]=p(p({},ye[e]),t[e])}const Ah=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function hn(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ah.has(t)}let Tc=t=>!hn(t);function Eh(t){typeof t=="function"&&(Tc=e=>e.startsWith("on")?!hn(e):t(e))}try{Eh(require("@emotion/is-prop-valid").default)}catch(t){}function Rh(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(Tc(i)||n===!0&&hn(i)||!e&&!hn(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const Cn=S.createContext({});function Tn(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Oe(t){return typeof t=="string"||Array.isArray(t)}const ki=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ji=["initial",...ki];function Sn(t){return Tn(t.animate)||ji.some(e=>Oe(t[e]))}function Sc(t){return!!(Sn(t)||t.variants)}function Mh(t,e){if(Sn(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Oe(n)?n:void 0,animate:Oe(r)?r:void 0}}return t.inherit!==!1?e:{}}function kh(t){const{initial:e,animate:n}=Mh(t,S.useContext(Cn));return S.useMemo(()=>({initial:e,animate:n}),[ks(e),ks(n)])}function ks(t){return Array.isArray(t)?t.join(" "):t}function js(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Me={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if($.test(t))t=parseFloat(t);else return t;const n=js(t,e.target.x),r=js(t,e.target.y);return`${n}% ${r}%`}},jh={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Ot.parse(t);if(i.length>5)return r;const s=Ot.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=c;const l=J(a,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),s(i)}},Br={borderRadius:V(p({},Me),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Me,borderTopRightRadius:Me,borderBottomLeftRadius:Me,borderBottomRightRadius:Me,boxShadow:jh};function Pc(t,{layout:e,layoutId:n}){return Te.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Br[t]||t==="opacity")}const Dh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Vh=Ce.length;function Ih(t,e,n){let r="",i=!0;for(let s=0;s<Vh;s++){const o=Ce[s],a=t[o];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(o.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const l=pc(a,Ai[o]);if(!c){i=!1;const u=Dh[o]||o;r+=`${u}(${l}) `}n&&(e[o]=l)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function Di(t,e,n){const{style:r,vars:i,transformOrigin:s}=t;let o=!1,a=!1;for(const c in e){const l=e[c];if(Te.has(c)){o=!0;continue}else if(Ga(c)){i[c]=l;continue}else{const u=pc(l,Ai[c]);c.startsWith("origin")?(a=!0,s[c]=u):r[c]=u}}if(e.transform||(o||n?r.transform=Ih(e,t.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=s;r.transformOrigin=`${c} ${l} ${u}`}}const Vi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ac(t,e,n){for(const r in e)!ct(e[r])&&!Pc(r,n)&&(t[r]=e[r])}function Nh({transformTemplate:t},e){return S.useMemo(()=>{const n=Vi();return Di(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Lh(t,e){const n=t.style||{},r={};return Ac(r,n,t),Object.assign(r,Nh(t,e)),r}function Bh(t,e){const n={},r=Lh(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const $h={offset:"stroke-dashoffset",array:"stroke-dasharray"},Oh={offset:"strokeDashoffset",array:"strokeDasharray"};function Fh(t,e,n=1,r=0,i=!0){t.pathLength=1;const s=i?$h:Oh;t[s.offset]=$.transform(-r);const o=$.transform(e),a=$.transform(n);t[s.array]=`${o} ${a}`}function Ec(t,f,c,l,u){var d=f,{attrX:e,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0}=d,a=z(d,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]);var y,b;if(Di(t,a,l),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:m}=t;h.transform&&(m.transform=h.transform,delete h.transform),(m.transform||h.transformOrigin)&&(m.transformOrigin=(y=h.transformOrigin)!=null?y:"50% 50%",delete h.transformOrigin),m.transform&&(m.transformBox=(b=u==null?void 0:u.transformBox)!=null?b:"fill-box",delete h.transformBox),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),i!==void 0&&Fh(h,i,s,o,!1)}const Rc=()=>V(p({},Vi()),{attrs:{}}),Mc=t=>typeof t=="string"&&t.toLowerCase()==="svg";function _h(t,e,n,r){const i=S.useMemo(()=>{const s=Rc();return Ec(s,e,Mc(r),t.transformTemplate,t.style),V(p({},s.attrs),{style:p({},s.style)})},[e]);if(t.style){const s={};Ac(s,t.style,t),i.style=p(p({},s),i.style)}return i}const zh=["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 Ii(t){return typeof t!="string"||t.includes("-")?!1:!!(zh.indexOf(t)>-1||/[A-Z]/u.test(t))}function Uh(t,e,n,{latestValues:r},i,s=!1){const a=(Ii(t)?_h:Bh)(e,r,i,t),c=Rh(e,typeof t=="string",s),l=t!==S.Fragment?V(p(p({},c),a),{ref:n}):{},{children:u}=e,f=S.useMemo(()=>ct(u)?u.get():u,[u]);return S.createElement(t,V(p({},l),{children:f}))}function Ds(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function Ni(t,e,n,r){if(typeof e=="function"){const[i,s]=Ds(r);e=e(n!==void 0?n:t.custom,i,s)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,s]=Ds(r);e=e(n!==void 0?n:t.custom,i,s)}return e}function an(t){return ct(t)?t.get():t}function Wh({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,i){return{latestValues:Hh(n,r,i,t),renderState:e()}}function Hh(t,e,n,r){const i={},s=r(t,{});for(const h in s)i[h]=an(s[h]);let{initial:o,animate:a}=t;const c=Sn(t),l=Sc(t);e&&l&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const f=u?a:o;if(f&&typeof f!="boolean"&&!Tn(f)){const h=Array.isArray(f)?f:[f];for(let m=0;m<h.length;m++){const y=Ni(t,h[m]);if(y){const d=y,{transitionEnd:b,transition:v}=d,w=z(d,["transitionEnd","transition"]);for(const x in w){let T=w[x];if(Array.isArray(T)){const M=u?T.length-1:0;T=T[M]}T!==null&&(i[x]=T)}for(const x in b)i[x]=b[x]}}}return i}const kc=t=>(e,n)=>{const r=S.useContext(Cn),i=S.useContext(wn),s=()=>Wh(t,e,r,i);return n?s():ai(s)};function Li(t,e,n){var s;const{style:r}=t,i={};for(const o in r)(ct(r[o])||e.style&&ct(e.style[o])||Pc(o,t)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const Gh=kc({scrapeMotionValuesFromProps:Li,createRenderState:Vi});function jc(t,e,n){const r=Li(t,e,n);for(const i in t)if(ct(t[i])||ct(e[i])){const s=Ce.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=t[i]}return r}const qh=kc({scrapeMotionValuesFromProps:jc,createRenderState:Rc}),Kh=Symbol.for("motionComponentSymbol");function le(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Yh(t,e,n){return S.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):le(n)&&(n.current=r))},[e])}const Bi=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Xh="framerAppearId",Dc="data-"+Bi(Xh),Vc=S.createContext({});function Zh(t,e,n,r,i){var y,b;const{visualElement:s}=S.useContext(Cn),o=S.useContext(Cc),a=S.useContext(wn),c=S.useContext(Mi).reducedMotion,l=S.useRef(null);r=r||o.renderer,!l.current&&r&&(l.current=r(t,{visualState:e,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const u=l.current,f=S.useContext(Vc);u&&!u.projection&&i&&(u.type==="html"||u.type==="svg")&&Jh(l.current,n,i,f);const d=S.useRef(!1);S.useInsertionEffect(()=>{u&&d.current&&u.update(n,a)});const h=n[Dc],m=S.useRef(!!h&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,h))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,h)));return Ma(()=>{u&&(d.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),m.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(!m.current&&u.animationState&&u.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)==null||v.call(window,h)}),m.current=!1),u.enteringChildren=void 0)}),u}function Jh(t,e,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ic(t.parent)),t.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&le(a),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function Ic(t){if(t)return t.options.allowProjection!==!1?t.projection:Ic(t.parent)}function Fn(t,{forwardMotionProps:e=!1}={},n,r){var a,c;n&&Ph(n);const i=Ii(t)?qh:Gh;function s(l,u){let f;const d=V(p(p({},S.useContext(Mi)),l),{layoutId:Qh(l)}),{isStatic:h}=d,m=kh(l),y=i(l,h);if(!h&&ci){tm(d,n);const b=em(d);f=b.MeasureLayout,m.visualElement=Zh(t,y,d,r,b.ProjectionNode)}return g.jsxs(Cn.Provider,{value:m,children:[f&&m.visualElement?g.jsx(f,p({visualElement:m.visualElement},d)):null,Uh(t,l,Yh(y,m.visualElement,u),y,h,e)]})}s.displayName=`motion.${typeof t=="string"?t:`create(${(c=(a=t.displayName)!=null?a:t.name)!=null?c:""})`}`;const o=S.forwardRef(s);return o[Kh]=t,o}function Qh({layoutId:t}){const e=S.useContext(oi).id;return e&&t!==void 0?e+"-"+t:t}function tm(t,e){const n=S.useContext(Cc).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?xe(!1,r,"lazy-strict-mode"):It(!1,r,"lazy-strict-mode")}}function em(t){const{drag:e,layout:n}=ye;if(!e&&!n)return{};const r=p(p({},e),n);return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function nm(t,e){if(typeof Proxy=="undefined")return Fn;const n=new Map,r=(s,o)=>Fn(s,o,t,e),i=(s,o)=>(process.env.NODE_ENV!=="production"&&hi(!1,"motion() is deprecated. Use motion.create() instead."),r(s,o));return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,Fn(o,void 0,t,e)),n.get(o))})}function Nc({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function rm({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function im(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function _n(t){return t===void 0||t===1}function $r({scale:t,scaleX:e,scaleY:n}){return!_n(t)||!_n(e)||!_n(n)}function Wt(t){return $r(t)||Lc(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Lc(t){return Vs(t.x)||Vs(t.y)}function Vs(t){return t&&t!=="0%"}function mn(t,e,n){const r=t-n,i=e*r;return n+i}function Is(t,e,n,r,i){return i!==void 0&&(t=mn(t,i,r)),mn(t,n,r)+e}function Or(t,e=0,n=1,r,i){t.min=Is(t.min,e,n,r,i),t.max=Is(t.max,e,n,r,i)}function Bc(t,{x:e,y:n}){Or(t.x,e.translate,e.scale,e.originPoint),Or(t.y,n.translate,n.scale,n.originPoint)}const Ns=.999999999999,Ls=1.0000000000001;function sm(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&fe(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Bc(t,o)),r&&Wt(s.latestValues)&&fe(t,s.latestValues))}e.x<Ls&&e.x>Ns&&(e.x=1),e.y<Ls&&e.y>Ns&&(e.y=1)}function ue(t,e){t.min=t.min+e,t.max=t.max+e}function Bs(t,e,n,r,i=.5){const s=J(t.min,t.max,i);Or(t,e,n,s,r)}function fe(t,e){Bs(t.x,e.x,e.scaleX,e.scale,e.originX),Bs(t.y,e.y,e.scaleY,e.scale,e.originY)}function $c(t,e){return Nc(im(t.getBoundingClientRect(),e))}function om(t,e,n){const r=$c(t,n),{scroll:i}=e;return i&&(ue(r.x,i.offset.x),ue(r.y,i.offset.y)),r}const $s=()=>({translate:0,scale:1,origin:0,originPoint:0}),de=()=>({x:$s(),y:$s()}),Os=()=>({min:0,max:0}),nt=()=>({x:Os(),y:Os()}),Fr={current:null},Oc={current:!1};function am(){if(Oc.current=!0,!!ci)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Fr.current=t.matches;t.addEventListener("change",e),e()}else Fr.current=!1}const cm=new WeakMap;function lm(t,e,n){for(const r in e){const i=e[r],s=n[r];if(ct(i))t.addValue(r,i);else if(ct(s))t.addValue(r,ge(i,{owner:t}));else if(s!==i)if(t.hasValue(r)){const o=t.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(r);t.addValue(r,ge(o!==void 0?o:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Fs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class um{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Si,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.renderScheduledAt=0,this.scheduleRender=()=>{const h=ut.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Y.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget=p({},c),this.initialValues=n.initial?p({},c):{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Sn(n),this.isVariantNode=Sc(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const d=this.scrapeMotionValuesFromProps(n,{},this),{willChange:u}=d,f=z(d,["willChange"]);for(const h in f){const m=f[h];c[h]!==void 0&&ct(m)&&m.set(c[h])}}mount(e){var n;this.current=e,cm.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((r,i)=>this.bindToMotionValue(i,r)),Oc.current||am(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Fr.current,process.env.NODE_ENV!=="production"&&hi(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),$t(this.notifyUpdate),$t(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(e){var n;this.children.add(e),(n=this.enteringChildren)!=null||(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Te.has(e);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Y.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ye){const n=ye[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Fs.length;r++){const i=Fs[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=e[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=lm(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),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}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=ge(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var i;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!=null?i:this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(ka(r)||Da(r))?r=parseFloat(r):!yh(r)&&Ot.test(n)&&(r=mc(e,n)),this.setBaseTarget(e,ct(r)?r.get():r)),ct(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Ni(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[e])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!ct(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new di),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Ei.render(this.render)}}class Fc extends um{constructor(){super(...arguments),this.KeyframeResolver=sh}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ct(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function _c(t,{style:e,vars:n},r,i){const s=t.style;let o;for(o in e)s[o]=e[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function fm(t){return window.getComputedStyle(t)}class dm extends Fc{constructor(){super(...arguments),this.type="html",this.renderInstance=_c}readValueFromInstance(e,n){var r;if(Te.has(n))return(r=this.projection)!=null&&r.isProjecting?kr(n):Td(e,n);{const i=fm(e),s=(Ga(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return $c(e,n)}build(e,n,r){Di(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return Li(e,n,r)}}const zc=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 hm(t,e,n,r){_c(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(zc.has(i)?i:Bi(i),e.attrs[i])}class mm extends Fc{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=nt}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Te.has(n)){const r=hc(n);return r&&r.default||0}return n=zc.has(n)?n:Bi(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return jc(e,n,r)}build(e,n,r){Ec(e,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,n,r,i){hm(e,n,r,i)}mount(e){this.isSVGTag=Mc(e.tagName),super.mount(e)}}const pm=(t,e)=>Ii(t)?new mm(e):new dm(e,{allowProjection:t!==S.Fragment});function me(t,e,n){const r=t.getProps();return Ni(r,e,n!==void 0?n:r.custom,t)}const _r=t=>Array.isArray(t);function gm(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ge(n))}function ym(t){return _r(t)?t[t.length-1]||0:t}function vm(t,e){let o=me(t,e)||{},{transitionEnd:r={},transition:i={}}=o,s=z(o,["transitionEnd","transition"]);s=p(p({},s),r);for(const a in s){const c=ym(s[a]);gm(t,a,c)}}function bm(t){return!!(ct(t)&&t.add)}function zr(t,e){const n=t.getValue("willChange");if(bm(n))return n.add(e);if(!n&&Nt.WillChange){const r=new Nt.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function Uc(t){return t.props[Dc]}const xm=t=>t!==null;function wm(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(xm),s=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[s]}const Cm={type:"spring",stiffness:500,damping:25,restSpeed:10},Tm=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Sm={type:"keyframes",duration:.8},Pm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Am=(t,{keyframes:e})=>e.length>2?Sm:Te.has(t)?t.startsWith("scale")?Tm(e[1]):Cm:Pm;function Em(f){var d=f,{when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:c,elapsed:l}=d,u=z(d,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(u).length}const $i=(t,e,n,r={},i,s)=>o=>{const a=Pi(r,t)||{},c=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-At(c);const u=V(p({keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity()},a),{delay:-l,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:i});Em(a)||Object.assign(u,Am(t,u)),u.duration&&(u.duration=At(u.duration)),u.repeatDelay&&(u.repeatDelay=At(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Nr(u),u.delay===0&&(f=!0)),(Nt.instantAnimations||Nt.skipAnimations)&&(f=!0,Nr(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!s&&e.get()!==void 0){const d=wm(u.keyframes,a);if(d!==void 0){Y.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new Ti(u):new Gd(u)};function Rm({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function Wc(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var f;let u=e,{transition:s=t.getDefaultTransition(),transitionEnd:o}=u,a=z(u,["transition","transitionEnd"]);r&&(s=r);const c=[],l=i&&t.animationState&&t.animationState.getState()[i];for(const d in a){const h=t.getValue(d,(f=t.latestValues[d])!=null?f:null),m=a[d];if(m===void 0||l&&Rm(l,d))continue;const y=p({delay:n},Pi(s||{},d)),b=h.get();if(b!==void 0&&!h.isAnimating&&!Array.isArray(m)&&m===b&&!y.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const x=Uc(t);if(x){const T=window.MotionHandoffAnimation(x,d,Y);T!==null&&(y.startTime=T,v=!0)}}zr(t,d),h.start($i(d,h,m,t.shouldReduceMotion&&uc.has(d)?{type:!1}:y,t,v));const w=h.animation;w&&c.push(w)}return o&&Promise.all(c).then(()=>{Y.update(()=>{o&&vm(t,o)})}),c}function Hc(t,e,n,r=0,i=1){const s=Array.from(t).sort((l,u)=>l.sortNodePosition(u)).indexOf(e),o=t.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}function Ur(t,e,n={}){var c;const r=me(t,e,n.type==="exit"?(c=t.presenceContext)==null?void 0:c.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Wc(t,r,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=i;return Mm(t,e,l,u,f,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>u())}else return Promise.all([s(),o(n.delay)])}function Mm(t,e,n=0,r=0,i=0,s=1,o){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(Ur(c,e,V(p({},o),{delay:n+(typeof r=="function"?0:r)+Hc(t.variantChildren,c,r,i,s)})).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function km(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(s=>Ur(t,s,n));r=Promise.all(i)}else if(typeof e=="string")r=Ur(t,e,n);else{const i=typeof e=="function"?me(t,e,n.custom):e;r=Promise.all(Wc(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}function Gc(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const jm=ji.length;function qc(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?qc(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<jm;n++){const r=ji[n],i=t.props[r];(Oe(i)||i===!1)&&(e[r]=i)}return e}const Dm=[...ki].reverse(),Vm=ki.length;function Im(t){return e=>Promise.all(e.map(({animation:n,options:r})=>km(t,n,r)))}function Nm(t){let e=Im(t),n=_s(),r=!0;const i=c=>(l,u)=>{var d;const f=me(t,u,c==="exit"?(d=t.presenceContext)==null?void 0:d.custom:void 0);if(f){const h=f,{transition:m,transitionEnd:y}=h,b=z(h,["transition","transitionEnd"]);l=p(p(p({},l),b),y)}return l};function s(c){e=c(t)}function o(c){const{props:l}=t,u=qc(t.parent)||{},f=[],d=new Set;let h={},m=1/0;for(let b=0;b<Vm;b++){const v=Dm[b],w=n[v],x=l[v]!==void 0?l[v]:u[v],T=Oe(x),M=v===c?w.isActive:null;M===!1&&(m=b);let P=x===u[v]&&x!==l[v]&&T;if(P&&r&&t.manuallyAnimateOnMount&&(P=!1),w.protectedKeys=p({},h),!w.isActive&&M===null||!x&&!w.prevProp||Tn(x)||typeof x=="boolean")continue;const A=Lm(w.prevProp,x);let C=A||v===c&&w.isActive&&!P&&T||b>m&&T,R=!1;const j=Array.isArray(x)?x:[x];let D=j.reduce(i(v),{});M===!1&&(D={});const{prevResolvedValues:I={}}=w,L=p(p({},I),D),B=G=>{C=!0,d.has(G)&&(R=!0,d.delete(G)),w.needsAnimating[G]=!0;const X=t.getValue(G);X&&(X.liveStyle=!1)};for(const G in L){const X=D[G],rt=I[G];if(h.hasOwnProperty(G))continue;let it=!1;_r(X)&&_r(rt)?it=!Gc(X,rt):it=X!==rt,it?X!=null?B(G):d.add(G):X!==void 0&&d.has(G)?B(G):w.protectedKeys[G]=!0}w.prevProp=x,w.prevResolvedValues=D,w.isActive&&(h=p(p({},h),D)),r&&t.blockInitialAnimation&&(C=!1);const et=P&&A;C&&(!et||R)&&f.push(...j.map(G=>{const X={type:v};if(typeof G=="string"&&r&&!et&&t.manuallyAnimateOnMount&&t.parent){const{parent:rt}=t,it=me(rt,G);if(rt.enteringChildren&&it){const{delayChildren:E}=it.transition||{};X.delay=Hc(rt.enteringChildren,t,E)}}return{animation:G,options:X}}))}if(d.size){const b={};if(typeof l.initial!="boolean"){const v=me(t,Array.isArray(l.initial)?l.initial[0]:l.initial);v&&v.transition&&(b.transition=v.transition)}d.forEach(v=>{const w=t.getBaseTarget(v),x=t.getValue(v);x&&(x.liveStyle=!0),b[v]=w!=null?w:null}),f.push({animation:b})}let y=!!f.length;return r&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(y=!1),r=!1,y?e(f):Promise.resolve()}function a(c,l){var f;if(n[c].isActive===l)return Promise.resolve();(f=t.variantChildren)==null||f.forEach(d=>{var h;return(h=d.animationState)==null?void 0:h.setActive(c,l)}),n[c].isActive=l;const u=o(c);for(const d in n)n[d].protectedKeys={};return u}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=_s()}}}function Lm(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Gc(e,t):!1}function Ut(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _s(){return{animate:Ut(!0),whileInView:Ut(),whileHover:Ut(),whileTap:Ut(),whileDrag:Ut(),whileFocus:Ut(),exit:Ut()}}class _t{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Bm extends _t{constructor(e){super(e),e.animationState||(e.animationState=Nm(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Tn(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let $m=0;class Om extends _t{constructor(){super(...arguments),this.id=$m++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Fm={animation:{Feature:Bm},exit:{Feature:Om}};function Fe(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function Ge(t){return{point:{x:t.pageX,y:t.pageY}}}const _m=t=>e=>Ri(e)&&t(e,Ge(e));function Ve(t,e,n,r){return Fe(t,e,_m(n),r)}const Kc=1e-4,zm=1-Kc,Um=1+Kc,Yc=.01,Wm=0-Yc,Hm=0+Yc;function lt(t){return t.max-t.min}function Gm(t,e,n){return Math.abs(t-e)<=n}function zs(t,e,n,r=.5){t.origin=r,t.originPoint=J(e.min,e.max,t.origin),t.scale=lt(n)/lt(e),t.translate=J(n.min,n.max,t.origin)-t.originPoint,(t.scale>=zm&&t.scale<=Um||isNaN(t.scale))&&(t.scale=1),(t.translate>=Wm&&t.translate<=Hm||isNaN(t.translate))&&(t.translate=0)}function Ie(t,e,n,r){zs(t.x,e.x,n.x,r?r.originX:void 0),zs(t.y,e.y,n.y,r?r.originY:void 0)}function Us(t,e,n){t.min=n.min+e.min,t.max=t.min+lt(e)}function qm(t,e,n){Us(t.x,e.x,n.x),Us(t.y,e.y,n.y)}function Ws(t,e,n){t.min=e.min-n.min,t.max=t.min+lt(e)}function pn(t,e,n){Ws(t.x,e.x,n.x),Ws(t.y,e.y,n.y)}function vt(t){return[t("x"),t("y")]}const Xc=({current:t})=>t?t.ownerDocument.defaultView:null,Hs=(t,e)=>Math.abs(t-e);function Km(t,e){const n=Hs(t.x,e.x),r=Hs(t.y,e.y);return Math.sqrt(Ke(n,2)+Ke(r,2))}class Zc{constructor(e,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Un(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=Km(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!m)return;const{point:y}=d,{timestamp:b}=st;this.history.push(V(p({},y),{timestamp:b}));const{onStart:v,onMove:w}=this.handlers;h||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=zn(h,this.transformPagePoint),Y.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Un(d.type==="pointercancel"?this.lastMoveEventInfo:zn(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,v),y&&y(d,v)},!Ri(e))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const a=Ge(e),c=zn(a,this.transformPagePoint),{point:l}=c,{timestamp:u}=st;this.history=[V(p({},l),{timestamp:u})];const{onSessionStart:f}=n;f&&f(e,Un(c,this.history)),this.removeListeners=Ue(Ve(this.contextWindow,"pointermove",this.handlePointerMove),Ve(this.contextWindow,"pointerup",this.handlePointerUp),Ve(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),$t(this.updatePoint)}}function zn(t,e){return e?{point:e(t.point)}:t}function Gs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Un({point:t},e){return{point:t,delta:Gs(t,Jc(e)),offset:Gs(t,Ym(e)),velocity:Xm(e,.1)}}function Ym(t){return t[0]}function Jc(t){return t[t.length-1]}function Xm(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=Jc(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>At(e)));)n--;if(!r)return{x:0,y:0};const s=bt(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Zm(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?J(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?J(n,t,r.max):Math.min(t,n)),t}function qs(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Jm(t,{top:e,left:n,bottom:r,right:i}){return{x:qs(t.x,n,i),y:qs(t.y,e,r)}}function Ks(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function Qm(t,e){return{x:Ks(t.x,e.x),y:Ks(t.y,e.y)}}function tp(t,e){let n=.5;const r=lt(t),i=lt(e);return i>r?n=Le(e.min,e.max-r,t.min):r>i&&(n=Le(t.min,t.max-i,e.min)),Vt(0,1,n)}function ep(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Wr=.35;function np(t=Wr){return t===!1?t=0:t===!0&&(t=Wr),{x:Ys(t,"left","right"),y:Ys(t,"top","bottom")}}function Ys(t,e,n){return{min:Xs(t,e),max:Xs(t,n)}}function Xs(t,e){return typeof t=="number"?t:t[e]||0}const rp=new WeakMap;class ip{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=f=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ge(f).point)},o=(f,d)=>{const{drag:h,dragPropagation:m,onDragStart:y}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=lh(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),vt(v=>{let w=this.getAxisMotionValue(v).get()||0;if(kt.test(w)){const{projection:x}=this.visualElement;if(x&&x.layout){const T=x.layout.layoutBox[v];T&&(w=lt(T)*(parseFloat(w)/100))}}this.originPoint[v]=w}),y&&Y.postRender(()=>y(f,d)),zr(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d;const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:y,onDrag:b}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=d;if(m&&this.currentDirection===null){this.currentDirection=sp(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,v),this.updateAxis("y",d.point,v),this.visualElement.render(),b&&b(f,d)},c=(f,d)=>{this.latestPointerEvent=f,this.latestPanInfo=d,this.stop(f,d),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>vt(f=>{var d;return this.getAnimationState(f)==="paused"&&((d=this.getAxisMotionValue(f).animation)==null?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Zc(e,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:Xc(this.visualElement)})}stop(e,n){const r=e||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&Y.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!nn(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=Zm(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;e&&le(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=Jm(r.layoutBox,e):this.constraints=!1,this.elastic=np(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&vt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=ep(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!le(e))return!1;const r=e.current;It(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=om(r,i.root,this.visualElement.getTransformPagePoint());let o=Qm(i.layout.layoutBox,s);if(n){const a=n(rm(o));this.hasMutatedConstraints=!!a,a&&(o=Nc(a))}return o}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=vt(u=>{if(!nn(u,n,this.currentDirection))return;let f=c&&c[u]||{};o&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,m=p(p({type:"inertia",velocity:r?e[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10},s),f);return this.startAxisValueAnimation(u,m)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return zr(this.visualElement,e),r.start($i(e,r,0,n,this.visualElement,!1))}stopAnimation(){vt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){vt(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){vt(n=>{const{drag:r}=this.getProps();if(!nn(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(e[n]-J(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!le(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};vt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();i[o]=tp({min:c,max:c},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),vt(o=>{if(!nn(o,e,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(J(c,l,i[o]))})}addListeners(){if(!this.visualElement.current)return;rp.set(this.visualElement,this);const e=this.visualElement.current,n=Ve(e,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();le(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Y.read(r);const o=Fe(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(vt(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())}));return()=>{o(),n(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Wr,dragMomentum:a=!0}=e;return V(p({},e),{drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a})}}function nn(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function sp(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class op extends _t{constructor(e){super(e),this.removeGroupControls=xt,this.removeListeners=xt,this.controls=new ip(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||xt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Zs=t=>(e,n)=>{t&&Y.postRender(()=>t(e,n))};class ap extends _t{constructor(){super(...arguments),this.removePointerDownListener=xt}onPointerDown(e){this.session=new Zc(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xc(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Zs(e),onStart:Zs(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&Y.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Ve(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const cn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Wn=!1;class cp extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=e;s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),Wn&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions(V(p({},s.options),{onExitComplete:()=>this.safeToRemove()}))),cn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,Wn=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==s?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||Y.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ei.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;Wn=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Qc(t){const[e,n]=wc(),r=S.useContext(oi);return g.jsx(cp,V(p({},t),{layoutGroup:r,switchLayoutGroup:S.useContext(Vc),isPresent:e,safeToRemove:n}))}function lp(t,e,n){const r=ct(t)?t:ge(t);return r.start($i("",r,e,n)),r.animation}const up=(t,e)=>t.depth-e.depth;class fp{constructor(){this.children=[],this.isDirty=!1}add(e){li(this.children,e),this.isDirty=!0}remove(e){ui(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(up),this.isDirty=!1,this.children.forEach(e)}}function dp(t,e){const n=ut.now(),r=({timestamp:i})=>{const s=i-n;s>=e&&($t(r),t(s-e))};return Y.setup(r,!0),()=>$t(r)}const tl=["TopLeft","TopRight","BottomLeft","BottomRight"],hp=tl.length,Js=t=>typeof t=="string"?parseFloat(t):t,Qs=t=>typeof t=="number"||$.test(t);function mp(t,e,n,r,i,s){var o,a,c,l;i?(t.opacity=J(0,(o=n.opacity)!=null?o:1,pp(r)),t.opacityExit=J((a=e.opacity)!=null?a:1,0,gp(r))):s&&(t.opacity=J((c=e.opacity)!=null?c:1,(l=n.opacity)!=null?l:1,r));for(let u=0;u<hp;u++){const f=`border${tl[u]}Radius`;let d=to(e,f),h=to(n,f);if(d===void 0&&h===void 0)continue;d||(d=0),h||(h=0),d===0||h===0||Qs(d)===Qs(h)?(t[f]=Math.max(J(Js(d),Js(h),r),0),(kt.test(h)||kt.test(d))&&(t[f]+="%")):t[f]=h}(e.rotate||n.rotate)&&(t.rotate=J(e.rotate||0,n.rotate||0,r))}function to(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const pp=el(0,.5,Fa),gp=el(.5,.95,xt);function el(t,e,n){return r=>r<t?0:r>e?1:n(Le(t,e,r))}function eo(t,e){t.min=e.min,t.max=e.max}function Tt(t,e){eo(t.x,e.x),eo(t.y,e.y)}function no(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ro(t,e,n,r,i){return t-=e,t=mn(t,1/n,r),i!==void 0&&(t=mn(t,1/i,r)),t}function yp(t,e=0,n=1,r=.5,i,s=t,o=t){if(kt.test(e)&&(e=parseFloat(e),e=J(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=J(s.min,s.max,r);t===s&&(a-=e),t.min=ro(t.min,e,n,a,i),t.max=ro(t.max,e,n,a,i)}function io(t,e,[n,r,i],s,o){yp(t,e[n],e[r],e[i],e.scale,s,o)}const vp=["x","scaleX","originX"],bp=["y","scaleY","originY"];function so(t,e,n,r){io(t.x,e,vp,n?n.x:void 0,r?r.x:void 0),io(t.y,e,bp,n?n.y:void 0,r?r.y:void 0)}function oo(t){return t.translate===0&&t.scale===1}function nl(t){return oo(t.x)&&oo(t.y)}function ao(t,e){return t.min===e.min&&t.max===e.max}function xp(t,e){return ao(t.x,e.x)&&ao(t.y,e.y)}function co(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rl(t,e){return co(t.x,e.x)&&co(t.y,e.y)}function lo(t){return lt(t.x)/lt(t.y)}function uo(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class wp{constructor(){this.members=[]}add(e){li(this.members,e),e.scheduleRender()}remove(e){if(ui(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(e,n){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,n&&(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:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.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 Cp(t,e,n){let r="";const i=t.x.translate/e.x,s=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:f,rotateY:d,skewX:h,skewY:m}=n;l&&(r=`perspective(${l}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),h&&(r+=`skewX(${h}deg) `),m&&(r+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const Hn=["","X","Y","Z"],Tp=1e3;let Sp=0;function Gn(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function il(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Uc(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Y,!(i||s))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&il(r)}function sl({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=Sp++,this.animationId=0,this.animationCommitId=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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Ep),this.nodes.forEach(jp),this.nodes.forEach(Dp),this.nodes.forEach(Rp)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new fp)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new di),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const c=this.eventHandlers.get(o);c&&c.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=xc(o)&&!ph(o),this.instance=o;const{layoutId:a,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let u,f=0;const d=()=>this.root.updateBlockedByResize=!1;Y.read(()=>{f=window.innerWidth}),t(o,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,u&&u(),u=dp(d,250),cn.hasAnimatedSinceResize&&(cn.hasAnimatedSinceResize=!1,this.nodes.forEach(mo)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||l.getDefaultTransition()||Bp,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=l.getProps(),v=!this.targetLayout||!rl(this.targetLayout,h),w=!f&&d;if(this.options.layoutRoot||this.resumeFrom||w||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x=V(p({},Pi(m,"layout")),{onPlay:y,onComplete:b});(l.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,w)}else f||mo(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$t(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(Vp),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&il(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(fo);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ho);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(kp),this.nodes.forEach(Pp),this.nodes.forEach(Ap)):this.nodes.forEach(ho),this.clearAllSnapshots();const a=ut.now();st.delta=Vt(0,1e3/60,a-st.timestamp),st.timestamp=a,st.isProcessing=!0,In.update.process(st),In.preRender.process(st),In.render.process(st),st.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ei.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Mp),this.sharedNodes.forEach(Ip)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Y.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Y.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!lt(this.snapshot.measuredBox.x)&&!lt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=nt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!nl(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;o&&this.instance&&(a||Wt(this.latestValues)||u)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return o&&(c=this.removeTransform(c)),$p(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:o}=this.options;if(!o)return nt();const a=o.measureViewportBox();if(!(((l=this.scroll)==null?void 0:l.wasRoot)||this.path.some(Op))){const{scroll:u}=this.root;u&&(ue(a.x,u.offset.x),ue(a.y,u.offset.y))}return a}removeElementScroll(o){var c;const a=nt();if(Tt(a,o),(c=this.scroll)!=null&&c.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:f,options:d}=u;u!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&Tt(a,o),ue(a.x,f.offset.x),ue(a.y,f.offset.y))}return a}applyTransform(o,a=!1){const c=nt();Tt(c,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&fe(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Wt(u.latestValues)&&fe(c,u.latestValues)}return Wt(this.latestValues)&&fe(c,this.latestValues),c}removeTransform(o){const a=nt();Tt(a,o);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!Wt(l.latestValues))continue;$r(l.latestValues)&&l.updateSnapshot();const u=nt(),f=l.measurePageBox();Tt(u,f),so(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return Wt(this.latestValues)&&so(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options=V(p(p({},this.options),o),{crossfade:o.crossfade!==void 0?o.crossfade:!0})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==st.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var h;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!this.layout||!(u||f))return;this.resolvedRelativeTargetAt=st.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=nt(),this.targetWithTransforms=nt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qm(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Tt(this.target,this.layout.layoutBox),Bc(this.target,this.targetDelta)):Tt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||$r(this.parent.latestValues)||Lc(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,c){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nt(),this.relativeTargetOrigin=nt(),pn(this.relativeTargetOrigin,a,c),Tt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var m;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===st.timestamp&&(c=!1),c)return;const{layout:l,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||u))return;Tt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;sm(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=nt());const{target:h}=o;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(no(this.prevProjectionDelta.x,this.projectionDelta.x),no(this.prevProjectionDelta.y,this.projectionDelta.y)),Ie(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==d||!uo(this.projectionDelta.x,this.prevProjectionDelta.x)||!uo(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=de(),this.projectionDelta=de(),this.projectionDeltaWithTransform=de()}setAnimationOrigin(o,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u=p({},this.latestValues),f=de();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=nt(),h=c?c.source:void 0,m=this.layout?this.layout.source:void 0,y=h!==m,b=this.getStack(),v=!b||b.members.length<=1,w=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(Lp));this.animationProgress=0;let x;this.mixTargetDelta=T=>{const M=T/1e3;po(f.x,o.x,M),po(f.y,o.y,M),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pn(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Np(this.relativeTarget,this.relativeTargetOrigin,d,M),x&&xp(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=nt()),Tt(x,this.relativeTarget)),y&&(this.animationValues=u,mp(u,l,this.latestValues,M,w,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,c,l;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(l=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||l.stop(),this.pendingAnimation&&($t(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Y.update(()=>{cn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ge(0)),this.currentAnimation=lp(this.motionValue,[0,1e3],V(p({},o),{velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Tp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&ol(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||nt();const f=lt(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+f;const d=lt(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+d}Tt(a,c),fe(a,u),Ie(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new wp),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Gn("z",o,l,this.animationValues);for(let u=0;u<Hn.length;u++)Gn(`rotate${Hn[u]}`,o,l,this.animationValues),Gn(`skew${Hn[u]}`,o,l,this.animationValues);o.render();for(const u in l)o.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);o.scheduleRender()}applyProjectionStyles(o,a){var m,y;if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=an(a==null?void 0:a.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=an(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Wt(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let f=Cp(this.projectionDeltaWithTransform,this.treeScale,u);c&&(f=c(u,f)),o.transform=f;const{x:d,y:h}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${h.origin*100}% 0`,l.animationValues?o.opacity=l===this?(y=(m=u.opacity)!=null?m:this.latestValues.opacity)!=null?y:1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=l===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const b in Br){if(u[b]===void 0)continue;const{correct:v,applyTo:w,isCSSVariable:x}=Br[b],T=f==="none"?u[b]:v(u[b],l);if(w){const M=w.length;for(let P=0;P<M;P++)o[w[P]]=T}else x?this.options.visualElement.renderState.vars[b]=T:o[b]=T}this.options.layoutId&&(o.pointerEvents=l===this?an(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(fo),this.root.sharedNodes.clear()}}}function Pp(t){t.updateLayout()}function Ap(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:s}=t.options,o=e.source!==t.layout.source;s==="size"?vt(f=>{const d=o?e.measuredBox[f]:e.layoutBox[f],h=lt(d);d.min=r[f].min,d.max=d.min+h}):ol(s,e.layoutBox,r)&&vt(f=>{const d=o?e.measuredBox[f]:e.layoutBox[f],h=lt(r[f]);d.max=d.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+h)});const a=de();Ie(a,r,e.layoutBox);const c=de();o?Ie(c,t.applyTransform(i,!0),e.measuredBox):Ie(c,r,e.layoutBox);const l=!nl(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const m=nt();pn(m,e.layoutBox,d.layoutBox);const y=nt();pn(y,r,h.layoutBox),rl(m,y)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=m,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:e,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function Ep(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Rp(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Mp(t){t.clearSnapshot()}function fo(t){t.clearMeasurements()}function ho(t){t.isLayoutDirty=!1}function kp(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function mo(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function jp(t){t.resolveTargetDelta()}function Dp(t){t.calcProjection()}function Vp(t){t.resetSkewAndRotation()}function Ip(t){t.removeLeadSnapshot()}function po(t,e,n){t.translate=J(e.translate,0,n),t.scale=J(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function go(t,e,n,r){t.min=J(e.min,n.min,r),t.max=J(e.max,n.max,r)}function Np(t,e,n,r){go(t.x,e.x,n.x,r),go(t.y,e.y,n.y,r)}function Lp(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Bp={duration:.45,ease:[.4,0,.1,1]},yo=t=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),vo=yo("applewebkit/")&&!yo("chrome/")?Math.round:xt;function bo(t){t.min=vo(t.min),t.max=vo(t.max)}function $p(t){bo(t.x),bo(t.y)}function ol(t,e,n){return t==="position"||t==="preserve-aspect"&&!Gm(lo(e),lo(n),.2)}function Op(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const Fp=sl({attachResizeListener:(t,e)=>Fe(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qn={current:void 0},al=sl({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!qn.current){const t=new Fp({});t.mount(window),t.setOptions({layoutScroll:!0}),qn.current=t}return qn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),_p={pan:{Feature:ap},drag:{Feature:op,ProjectionNode:al,MeasureLayout:Qc}};function xo(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&Y.postRender(()=>s(e,Ge(e)))}class zp extends _t{mount(){const{current:e}=this.node;e&&(this.unmount=uh(e,(n,r)=>(xo(this.node,r,"Start"),i=>xo(this.node,i,"End"))))}unmount(){}}class Up extends _t{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(n){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=Ue(Fe(this.node.current,"focus",()=>this.onFocus()),Fe(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function wo(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&Y.postRender(()=>s(e,Ge(e)))}class Wp extends _t{mount(){const{current:e}=this.node;e&&(this.unmount=mh(e,(n,r)=>(wo(this.node,r,"Start"),(i,{success:s})=>wo(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Hr=new WeakMap,Kn=new WeakMap,Hp=t=>{const e=Hr.get(t.target);e&&e(t)},Gp=t=>{t.forEach(Hp)};function qp(n){var r=n,{root:t}=r,e=z(r,["root"]);const i=t||document;Kn.has(i)||Kn.set(i,{});const s=Kn.get(i),o=JSON.stringify(e);return s[o]||(s[o]=new IntersectionObserver(Gp,p({root:t},e))),s[o]}function Kp(t,e,n){const r=qp(e);return Hr.set(t,n),r.observe(t),()=>{Hr.delete(t),r.unobserve(t)}}const Yp={some:0,all:1};class Xp extends _t{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=e,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Yp[i]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,s&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),d=l?u:f;d&&d(c)};return Kp(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver=="undefined")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Zp(e,n))&&this.startObserver()}unmount(){}}function Zp({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Jp={inView:{Feature:Xp},tap:{Feature:Wp},focus:{Feature:Up},hover:{Feature:zp}},Qp={layout:{ProjectionNode:al,MeasureLayout:Qc}},t0=p(p(p(p({},Fm),Jp),_p),Qp),e0=nm(t0,pm);var cl={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Co=S.createContext&&S.createContext(cl),n0=["attr","size","title"];function r0(t,e){if(t==null)return{};var n=i0(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function i0(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function gn(){return gn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},gn.apply(this,arguments)}function To(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function yn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?To(Object(n),!0).forEach(function(r){s0(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function s0(t,e,n){return e=o0(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o0(t){var e=a0(t,"string");return typeof e=="symbol"?e:e+""}function a0(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ll(t){return t&&t.map((e,n)=>S.createElement(e.tag,yn({key:n},e.attr),ll(e.child)))}function Oi(t){return e=>S.createElement(c0,gn({attr:yn({},t.attr)},e),ll(t.child))}function c0(t){var e=n=>{var{attr:r,size:i,title:s}=t,o=r0(t,n0),a=i||n.size||"1em",c;return n.className&&(c=n.className),t.className&&(c=(c?c+" ":"")+t.className),S.createElement("svg",gn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:c,style:yn(yn({color:t.color||n.color},n.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),s&&S.createElement("title",null,s),t.children)};return Co!==void 0?S.createElement(Co.Consumer,null,n=>e(n)):e(cl)}function l0(t){return Oi({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m184 112 144 144-144 144"},child:[]}]})(t)}function u0(t){return Oi({attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"336",height:"336",x:"128",y:"128",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"57",ry:"57"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m383.5 128 .5-24a56.16 56.16 0 0 0-56-56H112a64.19 64.19 0 0 0-64 64v216a56.16 56.16 0 0 0 56 56h24"},child:[]}]})(t)}function f0(t){return Oi({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M248 64C146.39 64 64 146.39 64 248s82.39 184 184 184 184-82.39 184-184S349.61 64 248 64z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M220 220h32v116"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M208 340h88"},child:[]},{tag:"path",attr:{d:"M248 130a26 26 0 1 0 26 26 26 26 0 0 0-26-26z"},child:[]}]})(t)}const So={primary:"#2563eb",mainBackground:"#ffffff",innerBackground:"#f9fafb",cardBackground:"#ffffff",primaryText:"#000000",secondaryText:"#6b7280",descriptionText:"#6b7280",amountText:"#000000",subtitleText:"#6b7280",cardText:"#000000",cardSecondaryText:"#6b7280",usdText:"#6b7280",footerText:"#6b7280",qrAddressBackground:"#e5e7eb",qrAddressText:"#000000",qrInstructionsBackground:"#e5e7eb",qrInstructionsText:"#6b7280",qrCardBackground:"#ffffff",qrCardText:"#000000",danger:"#dc2626",success:"#16a34a",warning:"#ca8a04",borderColor:"#e5e7eb",info:"#dbeafe",fontFamily:"Inter, system-ui, sans-serif",fontSizeBase:"14px",fontSizeSmall:"12px",fontSizeLarge:"32px",fontWeightNormal:"400",spacingUnit:"4px",borderRadius:"8px",buttonRadius:"6px"},Po={default:So,night:V(p({},So),{primary:"#0085FF",mainBackground:"#14171D",innerBackground:"#1a1d24",cardBackground:"#1f222a",primaryText:"#C9CED8",secondaryText:"#8C99AD",descriptionText:"#8C99AD",amountText:"#C9CED8",subtitleText:"#8C99AD",cardText:"#C9CED8",cardSecondaryText:"#8C99AD",usdText:"#8C99AD",footerText:"#8C99AD",qrAddressBackground:"#2B3039",qrAddressText:"#C9CED8",qrInstructionsBackground:"#2B3039",qrInstructionsText:"#8C99AD",qrCardBackground:"#1f222a",qrCardText:"#C9CED8",danger:"#F23154",borderColor:"#2B3039",info:"#1e3a5f"})},d0=(t="default",e)=>{const n=Po[t]||Po.default,r=p(p({},n),e==null?void 0:e.variables),i={};return Object.entries(r).forEach(([s,o])=>{i[`--w3-${s}`]=o}),i},h0=({id:t,name:e,description:n,iconUrl:r,icon:i,fallbackText:s,avatarColor:o="blue",onClick:a,disabled:c=!1})=>{const[l,u]=S.useState(!1);return g.jsxs(ot,{justify:"space-between",w:"100%",p:"sm",style:{backgroundColor:"var(--w3-cardBackground)",border:"1px solid var(--w3-borderColor)",borderRadius:"12px",cursor:c?"not-allowed":"pointer",opacity:c?.4:1,transition:"all 200ms ease",position:"relative",overflow:"hidden",color:"var(--w3-cardText)"},onClick:c?void 0:a,onMouseEnter:()=>!c&&u(!0),onMouseLeave:()=>u(!1),className:"payment-method-row",children:[g.jsxs(ot,{gap:"md",style:{flexShrink:0},children:[g.jsx(F,{style:{width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 200ms ease",transform:l?"scale(1.1)":"scale(1)"},children:i||(r?g.jsx(Xt,{size:32,src:r,radius:"lg"}):g.jsx(Xt,{size:32,color:o,radius:"lg",children:s}))}),g.jsxs(F,{style:{minWidth:0},children:[g.jsx(q,{fw:700,size:"xs",tt:"capitalize",style:{letterSpacing:"-0.02em",color:"var(--w3-cardText)"},children:e}),g.jsx(q,{size:"xs",fw:500,style:{letterSpacing:"-0.01em",fontSize:"11px",color:"var(--w3-cardSecondaryText)"},children:n})]})]}),g.jsx(ot,{gap:"sm",align:"center",children:g.jsx(F,{style:{opacity:l?1:0,transform:l?"translateX(0)":"translateX(-8px)",transition:"all 200ms ease",color:"var(--w3-cardText)"},children:g.jsx(l0,{size:16})})})]},t)},m0="data:image/svg+xml,%3csvg%20width='24'%20height='23.5'%20viewBox='0%200%2048%2047'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M43.972%200H3.56125C1.75696%200%200.294922%201.46203%200.294922%203.26633V43.677C0.294922%2045.4813%201.75696%2046.9434%203.56125%2046.9434H43.972C45.7763%2046.9434%2047.2383%2045.4813%2047.2383%2043.677V3.26633C47.2383%201.46203%2045.7763%200%2043.972%200ZM39.7896%2030.1883C39.7896%2035.0097%2035.8685%2038.9309%2031.0471%2038.9309C28.3506%2038.9309%2025.9349%2037.7023%2024.3304%2035.7773C22.726%2037.7023%2020.3104%2038.9309%2017.6138%2038.9309C12.7924%2038.9309%208.87127%2035.0097%208.87127%2030.1883V10.0384C8.87127%208.92059%209.77737%208.0125%2010.8971%208.0125C12.0169%208.0125%2012.923%208.91861%2012.923%2010.0384V30.1903C12.923%2032.7781%2015.028%2034.8831%2017.6158%2034.8831C20.2035%2034.8831%2022.3085%2032.7781%2022.3085%2030.1903V22.1897C22.3085%2021.0719%2023.2146%2020.1638%2024.3344%2020.1638C25.4542%2020.1638%2026.3603%2021.0699%2026.3603%2022.1897V30.1903C26.3603%2032.7781%2028.4653%2034.8831%2031.053%2034.8831C33.6408%2034.8831%2035.7458%2032.7781%2035.7458%2030.1903V10.0384C35.7458%208.92059%2036.6519%208.0125%2037.7717%208.0125C38.8914%208.0125%2039.7975%208.91861%2039.7975%2010.0384V30.1903L39.7896%2030.1883Z'%20fill='white'%20class='group-hover:fill-[%23BF1B1B]'%3e%3c/path%3e%3c/svg%3e",p0="data:image/svg+xml,%3csvg%20width='24'%20height='23.5'%20viewBox='0%200%2048%2047'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M43.9654%200H3.55466C1.75037%200%200.28833%201.46203%200.28833%203.26633V43.677C0.28833%2045.4813%201.75037%2046.9434%203.55466%2046.9434H43.9654C45.7697%2046.9434%2047.2317%2045.4813%2047.2317%2043.677V3.26633C47.2317%201.46203%2045.7697%200%2043.9654%200ZM39.785%2030.1883C39.785%2035.0097%2035.8638%2038.9309%2031.0425%2038.9309H10.8906C9.77276%2038.9309%208.86468%2038.0248%208.86468%2036.905C8.86468%2035.7852%209.77078%2034.8791%2010.8906%2034.8791H31.0425C33.6302%2034.8791%2035.7352%2032.7741%2035.7352%2030.1864C35.7352%2027.5986%2033.6302%2025.4936%2031.0425%2025.4936H23.0419C21.9241%2025.4936%2021.016%2024.5875%2021.016%2023.4677C21.016%2022.348%2021.9221%2021.4419%2023.0419%2021.4419H31.0425C33.6302%2021.4419%2035.7352%2019.3368%2035.7352%2016.7491C35.7352%2014.1614%2033.6302%2012.0563%2031.0425%2012.0563H10.8906C9.77276%2012.0563%208.86468%2011.1502%208.86468%2010.0305C8.86468%208.9107%209.77078%208.00459%2010.8906%208.00459H31.0425C35.8638%208.00459%2039.785%2011.9258%2039.785%2016.7471C39.785%2019.4437%2038.5564%2021.8593%2036.6315%2023.4638C38.5564%2025.0683%2039.785%2027.4839%2039.785%2030.1804V30.1883Z'%20fill='white'%20class='group-hover:fill-[%23FF3223]'%3e%3c/path%3e%3c/svg%3e",g0="data:image/svg+xml,%3csvg%20width='14.5'%20height='11'%20viewBox='0%200%2029%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.4597%205.22243C16.6803%203.79799%2016.2708%204.07496%2018.1384%202.86616C18.6825%202.60897%2018.8744%202.06096%2018.7141%201.47535C18.5539%200.889747%2017.9129%200.632558%2017.4658%200.816549C15.6714%201.691%2014.8523%202.698%2014.2608%203.44781C13.9066%203.87515%2013.7939%204.52802%2014.1144%205.00283C14.4349%205.47963%2015.0422%205.58844%2015.4597%205.22243Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M28.2084%2010.9678C28.1055%2010.3169%2027.4586%2010.123%2027.0412%2010.2694C26.6257%2010.4158%2026.3685%2010.8926%2026.3685%2011.4782C26.3685%2012.687%2026.1449%2013.969%2025.7275%2015.1759C25.0232%2017.0811%2023.5176%2019.0575%2022.4295%2019.3127C22.3979%2019.2395%2022.3346%2018.9467%2022.3346%2018.5807C22.3346%2016.8239%2023.3594%2013.4547%2025.9194%209.97664C26.2716%209.53744%2026.2083%208.84302%2025.7908%208.43943C25.407%208.03584%2024.7996%208.10904%2024.4455%208.58583C23.8401%209.41082%2023.306%2010.2398%2022.8351%2011.0588C22.8054%2011.0747%2022.7777%2011.0925%2022.748%2011.1122C15.7702%2015.9831%2012.1241%2019.2791%209.72427%2019.2791C9.72427%2019.1683%209.75592%2018.9863%209.97948%2018.3631L13.3091%209.72143C13.5327%209.17144%2013.3091%208.51263%2012.8284%208.29303C12.3476%208.03584%2011.7719%208.29303%2011.58%208.84302L8.09012%2017.8863C7.44912%2019.5343%207.99318%2021.5107%209.72229%2021.5107C12.1221%2021.5107%2015.3706%2018.9506%2021.0862%2014.8969C20.6391%2016.2442%2020.4096%2017.4985%2020.4096%2018.5827C20.4096%2019.9003%2020.9536%2021.5127%2022.3623%2021.5127C24.1863%2021.5127%2026.5228%2018.8042%2027.516%2015.9831C27.7395%2015.3242%2028.0126%2014.1708%2028.0759%2013.6782C28.1392%2013.1856%2028.3054%2011.6207%2028.2025%2010.9698L28.2084%2010.9678Z'%20fill='white'%3e%3c/path%3e%3cpath%20d='M1.16597%2019.376C0.576406%2019.376%200.0996094%2019.8528%200.0996094%2020.4423C0.0996094%2021.0319%200.576406%2021.5087%201.16597%2021.5087C1.75553%2021.5087%202.23232%2021.0319%202.23232%2020.4423C2.23232%2019.8528%201.75553%2019.376%201.16597%2019.376Z'%20fill='white'%3e%3c/path%3e%3c/svg%3e",y0=({style:t})=>g.jsx(ot,{justify:"center",py:"md",px:"md",style:p({backgroundColor:"var(--w3-mainBackground)",borderBottomLeftRadius:"var(--mantine-radius-xl)",borderBottomRightRadius:"var(--mantine-radius-xl)",flexShrink:0,height:"60px",minHeight:"60px"},t),children:g.jsxs(ot,{gap:"xs",align:"center",style:{opacity:.9,cursor:"pointer",transition:"opacity 200ms ease"},onClick:()=>window.open("https://w3.io","_blank"),onMouseEnter:e=>e.currentTarget.style.opacity="1",onMouseLeave:e=>e.currentTarget.style.opacity="0.9",children:[g.jsxs(ot,{gap:"1px",align:"center",wrap:"nowrap",children:[g.jsx(he,{src:m0,alt:"W",w:12,h:12,style:{display:"block",filter:"brightness(0) saturate(100%) invert(13%) sepia(100%) saturate(7463%) hue-rotate(3deg) brightness(80%)"}}),g.jsx(he,{src:p0,alt:"3",w:12,h:12,style:{display:"block",filter:"brightness(0) saturate(100%) invert(13%) sepia(100%) saturate(7463%) hue-rotate(3deg) brightness(80%)"}}),g.jsx(he,{src:g0,alt:"io",w:12,h:12,style:{display:"block",filter:"brightness(0) saturate(100%) invert(13%) sepia(100%) saturate(7463%) hue-rotate(3deg) brightness(80%)"}})]}),g.jsx(q,{size:"xs",fw:700,style:{color:"var(--w3-footerText)"},children:"Payments"})]})}),Gr={BTC:{name:"Bitcoin",decimals:8,color:"#f7931a",symbol:"₿"},ETH:{name:"Ethereum",decimals:18,color:"#627eea",symbol:"Ξ"},USDC:{name:"USD Coin",decimals:6,color:"#2775ca",symbol:"USDC"},USDT:{name:"Tether",decimals:6,color:"#26a17b",symbol:"USDT"},SOL:{name:"Solana",decimals:9,color:"#9945ff",symbol:"◎"},ADA:{name:"Cardano",decimals:6,color:"#0033ad",symbol:"₳"},USD:{name:"US Dollar",decimals:2,color:"#22c55e",symbol:"$"},EUR:{name:"Euro",decimals:2,color:"#3b82f6",symbol:"€"},GBP:{name:"British Pound",decimals:2,color:"#7c3aed",symbol:"£"},PHP:{name:"Philippine Peso",decimals:2,color:"#f59e0b",symbol:"₱"}},Ao=r=>{var i=r,{currency:t,size:e=24}=i,n=z(i,["currency","size"]);const s=Gr[t];return g.jsx(Xt,V(p({size:e,color:s.color},n),{children:s.symbol}))},v0={coinbase:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIGZpbGw9IiMwMDUyRkYiLz4KPHJlY3QgeD0iOSIgeT0iOSIgd2lkdGg9IjYiIGhlaWdodD0iNiIgcng9IjEiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg==",kraken:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIGZpbGw9IiM1NzQxOUEiLz4KPHBhdGggZD0iTTggN0wxNiA5VjE3TDggMTVWN1oiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg==",binance:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIGZpbGw9IiNGM0JBMkYiLz4KPHBhdGggZD0iTTEyIDZMMTUgOVYxNUwxMiAxOEw5IDE1VjlMMTIgNloiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg=="},b0=r=>{var i=r,{exchange:t,size:e=24}=i,n=z(i,["exchange","size"]);const s=v0[t];return g.jsx(Xt,p({size:e,src:s,alt:t},n))};var se={},Yn,Eo;function x0(){return Eo||(Eo=1,Yn=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Yn}var Xn={},Lt={},Ro;function te(){if(Ro)return Lt;Ro=1;let t;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Lt.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},Lt.getSymbolTotalCodewords=function(r){return e[r]},Lt.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},Lt.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');t=r},Lt.isKanjiModeEnabled=function(){return typeof t!="undefined"},Lt.toSJIS=function(r){return t(r)},Lt}var Zn={},Mo;function Fi(){return Mo||(Mo=1,(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+n)}}t.isValid=function(r){return r&&typeof r.bit!="undefined"&&r.bit>=0&&r.bit<4},t.from=function(r,i){if(t.isValid(r))return r;try{return e(r)}catch(s){return i}}})(Zn)),Zn}var Jn,ko;function w0(){if(ko)return Jn;ko=1;function t(){this.buffer=[],this.length=0}return t.prototype={get:function(e){const n=Math.floor(e/8);return(this.buffer[n]>>>7-e%8&1)===1},put:function(e,n){for(let r=0;r<n;r++)this.putBit((e>>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length++}},Jn=t,Jn}var Qn,jo;function C0(){if(jo)return Qn;jo=1;function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return t.prototype.set=function(e,n,r,i){const s=e*this.size+n;this.data[s]=r,i&&(this.reservedBit[s]=!0)},t.prototype.get=function(e,n){return this.data[e*this.size+n]},t.prototype.xor=function(e,n,r){this.data[e*this.size+n]^=r},t.prototype.isReserved=function(e,n){return this.reservedBit[e*this.size+n]},Qn=t,Qn}var tr={},Do;function T0(){return Do||(Do=1,(function(t){const e=te().getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,s=e(r),o=s===145?26:Math.ceil((s-13)/(2*i-2))*2,a=[s-7];for(let c=1;c<i-1;c++)a[c]=a[c-1]-o;return a.push(6),a.reverse()},t.getPositions=function(r){const i=[],s=t.getRowColCoords(r),o=s.length;for(let a=0;a<o;a++)for(let c=0;c<o;c++)a===0&&c===0||a===0&&c===o-1||a===o-1&&c===0||i.push([s[a],s[c]]);return i}})(tr)),tr}var er={},Vo;function S0(){if(Vo)return er;Vo=1;const t=te().getSymbolSize,e=7;return er.getPositions=function(r){const i=t(r);return[[0,0],[i-e,0],[0,i-e]]},er}var nr={},Io;function P0(){return Io||(Io=1,(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},t.from=function(i){return t.isValid(i)?parseInt(i,10):void 0},t.getPenaltyN1=function(i){const s=i.size;let o=0,a=0,c=0,l=null,u=null;for(let f=0;f<s;f++){a=c=0,l=u=null;for(let d=0;d<s;d++){let h=i.get(f,d);h===l?a++:(a>=5&&(o+=e.N1+(a-5)),l=h,a=1),h=i.get(d,f),h===u?c++:(c>=5&&(o+=e.N1+(c-5)),u=h,c=1)}a>=5&&(o+=e.N1+(a-5)),c>=5&&(o+=e.N1+(c-5))}return o},t.getPenaltyN2=function(i){const s=i.size;let o=0;for(let a=0;a<s-1;a++)for(let c=0;c<s-1;c++){const l=i.get(a,c)+i.get(a,c+1)+i.get(a+1,c)+i.get(a+1,c+1);(l===4||l===0)&&o++}return o*e.N2},t.getPenaltyN3=function(i){const s=i.size;let o=0,a=0,c=0;for(let l=0;l<s;l++){a=c=0;for(let u=0;u<s;u++)a=a<<1&2047|i.get(l,u),u>=10&&(a===1488||a===93)&&o++,c=c<<1&2047|i.get(u,l),u>=10&&(c===1488||c===93)&&o++}return o*e.N3},t.getPenaltyN4=function(i){let s=0;const o=i.data.length;for(let c=0;c<o;c++)s+=i.data[c];return Math.abs(Math.ceil(s*100/o/5)-10)*e.N4};function n(r,i,s){switch(r){case t.Patterns.PATTERN000:return(i+s)%2===0;case t.Patterns.PATTERN001:return i%2===0;case t.Patterns.PATTERN010:return s%3===0;case t.Patterns.PATTERN011:return(i+s)%3===0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(s/3))%2===0;case t.Patterns.PATTERN101:return i*s%2+i*s%3===0;case t.Patterns.PATTERN110:return(i*s%2+i*s%3)%2===0;case t.Patterns.PATTERN111:return(i*s%3+(i+s)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(i,s){const o=s.size;for(let a=0;a<o;a++)for(let c=0;c<o;c++)s.isReserved(c,a)||s.xor(c,a,n(i,c,a))},t.getBestMask=function(i,s){const o=Object.keys(t.Patterns).length;let a=0,c=1/0;for(let l=0;l<o;l++){s(l),t.applyMask(l,i);const u=t.getPenaltyN1(i)+t.getPenaltyN2(i)+t.getPenaltyN3(i)+t.getPenaltyN4(i);t.applyMask(l,i),u<c&&(c=u,a=l)}return a}})(nr)),nr}var rn={},No;function ul(){if(No)return rn;No=1;const t=Fi(),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return rn.getBlocksCount=function(i,s){switch(s){case t.L:return e[(i-1)*4+0];case t.M:return e[(i-1)*4+1];case t.Q:return e[(i-1)*4+2];case t.H:return e[(i-1)*4+3];default:return}},rn.getTotalCodewordsCount=function(i,s){switch(s){case t.L:return n[(i-1)*4+0];case t.M:return n[(i-1)*4+1];case t.Q:return n[(i-1)*4+2];case t.H:return n[(i-1)*4+3];default:return}},rn}var rr={},ke={},Lo;function A0(){if(Lo)return ke;Lo=1;const t=new Uint8Array(512),e=new Uint8Array(256);return(function(){let r=1;for(let i=0;i<255;i++)t[i]=r,e[r]=i,r<<=1,r&256&&(r^=285);for(let i=255;i<512;i++)t[i]=t[i-255]})(),ke.log=function(r){if(r<1)throw new Error("log("+r+")");return e[r]},ke.exp=function(r){return t[r]},ke.mul=function(r,i){return r===0||i===0?0:t[e[r]+e[i]]},ke}var Bo;function E0(){return Bo||(Bo=1,(function(t){const e=A0();t.mul=function(r,i){const s=new Uint8Array(r.length+i.length-1);for(let o=0;o<r.length;o++)for(let a=0;a<i.length;a++)s[o+a]^=e.mul(r[o],i[a]);return s},t.mod=function(r,i){let s=new Uint8Array(r);for(;s.length-i.length>=0;){const o=s[0];for(let c=0;c<i.length;c++)s[c]^=e.mul(i[c],o);let a=0;for(;a<s.length&&s[a]===0;)a++;s=s.slice(a)}return s},t.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let s=0;s<r;s++)i=t.mul(i,new Uint8Array([1,e.exp(s)]));return i}})(rr)),rr}var ir,$o;function R0(){if($o)return ir;$o=1;const t=E0();function e(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return e.prototype.initialize=function(r){this.degree=r,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(r){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(r.length+this.degree);i.set(r);const s=t.mod(i,this.genPoly),o=this.degree-s.length;if(o>0){const a=new Uint8Array(this.degree);return a.set(s,o),a}return s},ir=e,ir}var sr={},or={},ar={},Oo;function fl(){return Oo||(Oo=1,ar.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),ar}var Et={},Fo;function dl(){if(Fo)return Et;Fo=1;const t="[0-9]+",e="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r
|
|
19
|
+
]))+`;Et.KANJI=new RegExp(n,"g"),Et.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Et.BYTE=new RegExp(r,"g"),Et.NUMERIC=new RegExp(t,"g"),Et.ALPHANUMERIC=new RegExp(e,"g");const i=new RegExp("^"+n+"$"),s=new RegExp("^"+t+"$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Et.testKanji=function(c){return i.test(c)},Et.testNumeric=function(c){return s.test(c)},Et.testAlphanumeric=function(c){return o.test(c)},Et}var _o;function ee(){return _o||(_o=1,(function(t){const e=fl(),n=dl();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(s,o){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!e.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?s.ccBits[0]:o<27?s.ccBits[1]:s.ccBits[2]},t.getBestModeForData=function(s){return n.testNumeric(s)?t.NUMERIC:n.testAlphanumeric(s)?t.ALPHANUMERIC:n.testKanji(s)?t.KANJI:t.BYTE},t.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},t.isValid=function(s){return s&&s.bit&&s.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+i)}}t.from=function(s,o){if(t.isValid(s))return s;try{return r(s)}catch(a){return o}}})(or)),or}var zo;function M0(){return zo||(zo=1,(function(t){const e=te(),n=ul(),r=Fi(),i=ee(),s=fl(),o=7973,a=e.getBCHDigit(o);function c(d,h,m){for(let y=1;y<=40;y++)if(h<=t.getCapacity(y,m,d))return y}function l(d,h){return i.getCharCountIndicator(d,h)+4}function u(d,h){let m=0;return d.forEach(function(y){const b=l(y.mode,h);m+=b+y.getBitsLength()}),m}function f(d,h){for(let m=1;m<=40;m++)if(u(d,m)<=t.getCapacity(m,h,i.MIXED))return m}t.from=function(h,m){return s.isValid(h)?parseInt(h,10):m},t.getCapacity=function(h,m,y){if(!s.isValid(h))throw new Error("Invalid QR Code version");typeof y=="undefined"&&(y=i.BYTE);const b=e.getSymbolTotalCodewords(h),v=n.getTotalCodewordsCount(h,m),w=(b-v)*8;if(y===i.MIXED)return w;const x=w-l(y,h);switch(y){case i.NUMERIC:return Math.floor(x/10*3);case i.ALPHANUMERIC:return Math.floor(x/11*2);case i.KANJI:return Math.floor(x/13);case i.BYTE:default:return Math.floor(x/8)}},t.getBestVersionForData=function(h,m){let y;const b=r.from(m,r.M);if(Array.isArray(h)){if(h.length>1)return f(h,b);if(h.length===0)return 1;y=h[0]}else y=h;return c(y.mode,y.getLength(),b)},t.getEncodedBits=function(h){if(!s.isValid(h)||h<7)throw new Error("Invalid QR Code version");let m=h<<12;for(;e.getBCHDigit(m)-a>=0;)m^=o<<e.getBCHDigit(m)-a;return h<<12|m}})(sr)),sr}var cr={},Uo;function k0(){if(Uo)return cr;Uo=1;const t=te(),e=1335,n=21522,r=t.getBCHDigit(e);return cr.getEncodedBits=function(s,o){const a=s.bit<<3|o;let c=a<<10;for(;t.getBCHDigit(c)-r>=0;)c^=e<<t.getBCHDigit(c)-r;return(a<<10|c)^n},cr}var lr={},ur,Wo;function j0(){if(Wo)return ur;Wo=1;const t=ee();function e(n){this.mode=t.NUMERIC,this.data=n.toString()}return e.getBitsLength=function(r){return 10*Math.floor(r/3)+(r%3?r%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(r){let i,s,o;for(i=0;i+3<=this.data.length;i+=3)s=this.data.substr(i,3),o=parseInt(s,10),r.put(o,10);const a=this.data.length-i;a>0&&(s=this.data.substr(i),o=parseInt(s,10),r.put(o,a*3+1))},ur=e,ur}var fr,Ho;function D0(){if(Ho)return fr;Ho=1;const t=ee(),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(r){this.mode=t.ALPHANUMERIC,this.data=r}return n.getBitsLength=function(i){return 11*Math.floor(i/2)+6*(i%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(i){let s;for(s=0;s+2<=this.data.length;s+=2){let o=e.indexOf(this.data[s])*45;o+=e.indexOf(this.data[s+1]),i.put(o,11)}this.data.length%2&&i.put(e.indexOf(this.data[s]),6)},fr=n,fr}var dr,Go;function V0(){if(Go)return dr;Go=1;const t=ee();function e(n){this.mode=t.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}return e.getBitsLength=function(r){return r*8},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(n){for(let r=0,i=this.data.length;r<i;r++)n.put(this.data[r],8)},dr=e,dr}var hr,qo;function I0(){if(qo)return hr;qo=1;const t=ee(),e=te();function n(r){this.mode=t.KANJI,this.data=r}return n.getBitsLength=function(i){return i*13},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(r){let i;for(i=0;i<this.data.length;i++){let s=e.toSJIS(this.data[i]);if(s>=33088&&s<=40956)s-=33088;else if(s>=57408&&s<=60351)s-=49472;else throw new Error("Invalid SJIS character: "+this.data[i]+`
|
|
20
|
+
Make sure your charset is UTF-8`);s=(s>>>8&255)*192+(s&255),r.put(s,13)}},hr=n,hr}var mr={exports:{}},Ko;function N0(){return Ko||(Ko=1,(function(t){var e={single_source_shortest_paths:function(n,r,i){var s={},o={};o[r]=0;var a=e.PriorityQueue.make();a.push(r,0);for(var c,l,u,f,d,h,m,y,b;!a.empty();){c=a.pop(),l=c.value,f=c.cost,d=n[l]||{};for(u in d)d.hasOwnProperty(u)&&(h=d[u],m=f+h,y=o[u],b=typeof o[u]=="undefined",(b||y>m)&&(o[u]=m,a.push(u,m),s[u]=l))}if(typeof i!="undefined"&&typeof o[i]=="undefined"){var v=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(v)}return s},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],s=r;s;)i.push(s),n[s],s=n[s];return i.reverse(),i},find_path:function(n,r,i){var s=e.single_source_shortest_paths(n,r,i);return e.extract_shortest_path_from_predecessor_list(s,i)},PriorityQueue:{make:function(n){var r=e.PriorityQueue,i={},s;n=n||{};for(s in r)r.hasOwnProperty(s)&&(i[s]=r[s]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(mr)),mr.exports}var Yo;function L0(){return Yo||(Yo=1,(function(t){const e=ee(),n=j0(),r=D0(),i=V0(),s=I0(),o=dl(),a=te(),c=N0();function l(v){return unescape(encodeURIComponent(v)).length}function u(v,w,x){const T=[];let M;for(;(M=v.exec(x))!==null;)T.push({data:M[0],index:M.index,mode:w,length:M[0].length});return T}function f(v){const w=u(o.NUMERIC,e.NUMERIC,v),x=u(o.ALPHANUMERIC,e.ALPHANUMERIC,v);let T,M;return a.isKanjiModeEnabled()?(T=u(o.BYTE,e.BYTE,v),M=u(o.KANJI,e.KANJI,v)):(T=u(o.BYTE_KANJI,e.BYTE,v),M=[]),w.concat(x,T,M).sort(function(A,C){return A.index-C.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function d(v,w){switch(w){case e.NUMERIC:return n.getBitsLength(v);case e.ALPHANUMERIC:return r.getBitsLength(v);case e.KANJI:return s.getBitsLength(v);case e.BYTE:return i.getBitsLength(v)}}function h(v){return v.reduce(function(w,x){const T=w.length-1>=0?w[w.length-1]:null;return T&&T.mode===x.mode?(w[w.length-1].data+=x.data,w):(w.push(x),w)},[])}function m(v){const w=[];for(let x=0;x<v.length;x++){const T=v[x];switch(T.mode){case e.NUMERIC:w.push([T,{data:T.data,mode:e.ALPHANUMERIC,length:T.length},{data:T.data,mode:e.BYTE,length:T.length}]);break;case e.ALPHANUMERIC:w.push([T,{data:T.data,mode:e.BYTE,length:T.length}]);break;case e.KANJI:w.push([T,{data:T.data,mode:e.BYTE,length:l(T.data)}]);break;case e.BYTE:w.push([{data:T.data,mode:e.BYTE,length:l(T.data)}])}}return w}function y(v,w){const x={},T={start:{}};let M=["start"];for(let P=0;P<v.length;P++){const A=v[P],C=[];for(let R=0;R<A.length;R++){const j=A[R],D=""+P+R;C.push(D),x[D]={node:j,lastCount:0},T[D]={};for(let I=0;I<M.length;I++){const L=M[I];x[L]&&x[L].node.mode===j.mode?(T[L][D]=d(x[L].lastCount+j.length,j.mode)-d(x[L].lastCount,j.mode),x[L].lastCount+=j.length):(x[L]&&(x[L].lastCount=j.length),T[L][D]=d(j.length,j.mode)+4+e.getCharCountIndicator(j.mode,w))}}M=C}for(let P=0;P<M.length;P++)T[M[P]].end=0;return{map:T,table:x}}function b(v,w){let x;const T=e.getBestModeForData(v);if(x=e.from(w,T),x!==e.BYTE&&x.bit<T.bit)throw new Error('"'+v+'" cannot be encoded with mode '+e.toString(x)+`.
|
|
21
|
+
Suggested mode is: `+e.toString(T));switch(x===e.KANJI&&!a.isKanjiModeEnabled()&&(x=e.BYTE),x){case e.NUMERIC:return new n(v);case e.ALPHANUMERIC:return new r(v);case e.KANJI:return new s(v);case e.BYTE:return new i(v)}}t.fromArray=function(w){return w.reduce(function(x,T){return typeof T=="string"?x.push(b(T,null)):T.data&&x.push(b(T.data,T.mode)),x},[])},t.fromString=function(w,x){const T=f(w,a.isKanjiModeEnabled()),M=m(T),P=y(M,x),A=c.find_path(P.map,"start","end"),C=[];for(let R=1;R<A.length-1;R++)C.push(P.table[A[R]].node);return t.fromArray(h(C))},t.rawSplit=function(w){return t.fromArray(f(w,a.isKanjiModeEnabled()))}})(lr)),lr}var Xo;function B0(){if(Xo)return Xn;Xo=1;const t=te(),e=Fi(),n=w0(),r=C0(),i=T0(),s=S0(),o=P0(),a=ul(),c=R0(),l=M0(),u=k0(),f=ee(),d=L0();function h(P,A){const C=P.size,R=s.getPositions(A);for(let j=0;j<R.length;j++){const D=R[j][0],I=R[j][1];for(let L=-1;L<=7;L++)if(!(D+L<=-1||C<=D+L))for(let B=-1;B<=7;B++)I+B<=-1||C<=I+B||(L>=0&&L<=6&&(B===0||B===6)||B>=0&&B<=6&&(L===0||L===6)||L>=2&&L<=4&&B>=2&&B<=4?P.set(D+L,I+B,!0,!0):P.set(D+L,I+B,!1,!0))}}function m(P){const A=P.size;for(let C=8;C<A-8;C++){const R=C%2===0;P.set(C,6,R,!0),P.set(6,C,R,!0)}}function y(P,A){const C=i.getPositions(A);for(let R=0;R<C.length;R++){const j=C[R][0],D=C[R][1];for(let I=-2;I<=2;I++)for(let L=-2;L<=2;L++)I===-2||I===2||L===-2||L===2||I===0&&L===0?P.set(j+I,D+L,!0,!0):P.set(j+I,D+L,!1,!0)}}function b(P,A){const C=P.size,R=l.getEncodedBits(A);let j,D,I;for(let L=0;L<18;L++)j=Math.floor(L/3),D=L%3+C-8-3,I=(R>>L&1)===1,P.set(j,D,I,!0),P.set(D,j,I,!0)}function v(P,A,C){const R=P.size,j=u.getEncodedBits(A,C);let D,I;for(D=0;D<15;D++)I=(j>>D&1)===1,D<6?P.set(D,8,I,!0):D<8?P.set(D+1,8,I,!0):P.set(R-15+D,8,I,!0),D<8?P.set(8,R-D-1,I,!0):D<9?P.set(8,15-D-1+1,I,!0):P.set(8,15-D-1,I,!0);P.set(R-8,8,1,!0)}function w(P,A){const C=P.size;let R=-1,j=C-1,D=7,I=0;for(let L=C-1;L>0;L-=2)for(L===6&&L--;;){for(let B=0;B<2;B++)if(!P.isReserved(j,L-B)){let et=!1;I<A.length&&(et=(A[I]>>>D&1)===1),P.set(j,L-B,et),D--,D===-1&&(I++,D=7)}if(j+=R,j<0||C<=j){j-=R,R=-R;break}}}function x(P,A,C){const R=new n;C.forEach(function(B){R.put(B.mode.bit,4),R.put(B.getLength(),f.getCharCountIndicator(B.mode,P)),B.write(R)});const j=t.getSymbolTotalCodewords(P),D=a.getTotalCodewordsCount(P,A),I=(j-D)*8;for(R.getLengthInBits()+4<=I&&R.put(0,4);R.getLengthInBits()%8!==0;)R.putBit(0);const L=(I-R.getLengthInBits())/8;for(let B=0;B<L;B++)R.put(B%2?17:236,8);return T(R,P,A)}function T(P,A,C){const R=t.getSymbolTotalCodewords(A),j=a.getTotalCodewordsCount(A,C),D=R-j,I=a.getBlocksCount(A,C),L=R%I,B=I-L,et=Math.floor(R/I),dt=Math.floor(D/I),G=dt+1,X=et-dt,rt=new c(X);let it=0;const E=new Array(I),O=new Array(I);let U=0;const H=new Uint8Array(P.buffer);for(let N=0;N<I;N++){const W=N<B?dt:G;E[N]=H.slice(it,it+W),O[N]=rt.encode(E[N]),it+=W,U=Math.max(U,W)}const ht=new Uint8Array(R);let wt=0,_,Q;for(_=0;_<U;_++)for(Q=0;Q<I;Q++)_<E[Q].length&&(ht[wt++]=E[Q][_]);for(_=0;_<X;_++)for(Q=0;Q<I;Q++)ht[wt++]=O[Q][_];return ht}function M(P,A,C,R){let j;if(Array.isArray(P))j=d.fromArray(P);else if(typeof P=="string"){let et=A;if(!et){const dt=d.rawSplit(P);et=l.getBestVersionForData(dt,C)}j=d.fromString(P,et||40)}else throw new Error("Invalid data");const D=l.getBestVersionForData(j,C);if(!D)throw new Error("The amount of data is too big to be stored in a QR Code");if(!A)A=D;else if(A<D)throw new Error(`
|
|
22
22
|
The chosen QR Code version cannot contain this amount of data.
|
|
23
|
-
Minimum version required to store current data is: `+
|
|
24
|
-
`);const I=x(A,C,
|
|
25
|
-
`;return typeof a=="function"&&a(null,b),b},gr}var Qo;function F0(){if(Qo)return re;Qo=1;const t=x0(),e=B0(),n=$0(),r=O0();function i(s,o,a,c,l){const u=[].slice.call(arguments,1),f=u.length,d=typeof u[f-1]=="function";if(!d&&!t())throw new Error("Callback required as last argument");if(d){if(f<2)throw new Error("Too few arguments provided");f===2?(l=a,a=o,o=c=void 0):f===3&&(o.getContext&&typeof l=="undefined"?(l=c,c=void 0):(l=c,c=a,a=o,o=void 0))}else{if(f<1)throw new Error("Too few arguments provided");return f===1?(a=o,o=c=void 0):f===2&&!o.getContext&&(c=a,a=o,o=void 0),new Promise(function(h,m){try{const y=e.create(a,c);h(s(y,o,c))}catch(y){m(y)}})}try{const h=e.create(a,c);l(null,s(h,o,c))}catch(h){l(h)}}return re.create=e.create,re.toCanvas=i.bind(null,n.render),re.toDataURL=i.bind(null,n.renderToDataURL),re.toString=i.bind(null,function(s,o,a){return r.render(s,a)}),re}var _0=F0();const U0=wl(_0);function z0(i,s,o){return _t(this,arguments,function*(t,e,n,r={}){var a,c;try{let l=t;e&&n&&(l=`${e.toLowerCase()}:${t}?amount=${n}`);const u={errorCorrectionLevel:r.errorCorrectionLevel||"M",type:r.type||"image/png",quality:r.quality||.92,margin:r.margin||2,color:{dark:((a=r.color)==null?void 0:a.dark)||"#000000",light:((c=r.color)==null?void 0:c.light)||"#FFFFFF"},width:r.width||256};return yield U0.toDataURL(l,u)}catch(l){throw new Error(`Failed to generate QR code: ${l instanceof Error?l.message:"Unknown error"}`)}})}function W0(t){return _t(this,null,function*(){try{if(navigator.clipboard&&window.isSecureContext)return yield navigator.clipboard.writeText(t),!0;{const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();const n=document.execCommand("copy");return document.body.removeChild(e),n}}catch(e){return!1}})}const H0="_widget_1upbe_3",ta={widget:H0},G0=({endpoint:t,currency:e,network:n,destinations:r,amount:i="",title:s="bits",description:o,subtitle:a="CHOOSE A PAYMENT METHOD",logo:c,theme:l="default",appearance:u,showAmount:f=!0,showUsdConversion:d=!1,usdRate:h,enableDirect:m=!0,transactionId:y,qrPaymentLabel:b="Paying:",qrReceivingLabel:v="Receiving:",qrReceivingAmount:w,qrDescription:x,customerId:T,idempotencyKey:M,callbackUrl:P,onInitiate:A,onComplete:C,onError:R})=>{var U;const D=d0(l,u),[j]=S.useState(i),[I,L]=S.useState([]),[B,et]=S.useState(!0),[lt,H]=S.useState(null),[K,it]=S.useState(!1),[rt,E]=S.useState(""),[O,z]=S.useState(""),[q,dt]=S.useState(!1);S.useEffect(()=>{_t(null,null,function*(){var _;try{const Q=new URLSearchParams({currency:e,network:n}),pt=((_=(yield(yield window.fetch(`${t}/payment-methods?${Q}`)).json()).methods)==null?void 0:_.filter(gt=>gt.to===e&>.network===n))||[],xt=[];m&&xt.push({vendor:"direct",source:"wallet",from:e,to:e,network:n,name:"Direct Payment"}),xt.push(...pt),L(xt)}catch(Q){console.error("Failed to fetch payment methods:",Q),R==null||R(new Error("Failed to load payment methods"))}finally{et(!1)}})},[t,e,n,m,R]),S.useEffect(()=>{K?_t(null,null,function*(){try{const _=r.find(ht=>ht.currency===e&&ht.network===n);if(!_){z("No destination address found");return}const Q=yield z0(_.address,n,j,{width:176,margin:1});E(Q),z("")}catch(_){z("Failed to generate QR code"),console.error("QR generation error:",_)}}):(E(""),z(""))},[K,e,n,j,r]);const Pt=N=>_t(null,null,function*(){var Q,ht;if(lt)return;const _=I.find(Y=>(Y.exchange?`${Y.vendor}-${Y.source}-${Y.exchange}-${Y.from}-${Y.to}`:`${Y.vendor}-${Y.source}-${Y.from}-${Y.to}`)===N);if(_){H(N);try{const Y=r.find(xt=>xt.currency===e&&xt.network===n);if(!Y)throw new Error(`No destination address found for ${e} on ${n}`);const pt={amount:parseFloat(j),currency:_.from,customerId:T,address:Y.address,transactionId:y,idempotencyKey:M,callbackUrl:P};if(yield A==null?void 0:A(pt),_.vendor==="direct"){it(!0);return}else{const xt=yield window.fetch(`${t}/payments`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({intent:pt,method:_})}),gt=yield xt.json();if(xt.ok)if((Q=gt.session)!=null&&Q.id&&((ht=gt.session)!=null&&ht.vendor))try{const Te=window.atob(gt.session.id),Sn=(window.screen.width-500)/2,Pn=(window.screen.height-700)/2;window.open(Te,`${_.vendor}-checkout`,`width=500,height=700,left=${Sn},top=${Pn}`),C==null||C(gt)}catch(Te){console.error("Failed to decode checkout URL:",Te),C==null||C(gt)}else C==null||C(gt);else throw new Error(gt.message||"Payment failed")}}catch(Y){R==null||R(Y instanceof Error?Y:new Error("Payment failed"))}finally{H(null)}}});return B?g.jsx(br,{cssVariablesSelector:"[data-w3-payment-widget]",children:g.jsx(ie,{className:ta.widget,style:D,children:g.jsxs(Et,{align:"center",justify:"center",h:"600px",children:[g.jsx(he,{}),g.jsx(G,{children:"Loading..."})]})})}):g.jsx(br,{cssVariablesSelector:"[data-w3-payment-widget]",children:g.jsx(ie,{shadow:"md",radius:"xl",p:0,className:ta.widget,style:p({height:"600px",backgroundColor:"var(--w3-mainBackground)"},D),"data-w3-payment-widget":!0,children:g.jsxs(F,{style:{position:"relative",overflow:"hidden",height:"100%",display:"flex",flexDirection:"column"},children:[g.jsx(F,{style:{flex:1,position:"relative",overflow:"hidden"},children:g.jsx(Sh,{mode:"wait",children:K?g.jsx(e0.div,{initial:{opacity:0,x:100},animate:{opacity:1,x:0},exit:{opacity:0,x:100},transition:{duration:.3,ease:"easeOut"},style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"var(--w3-mainBackground)",borderTopLeftRadius:"var(--mantine-radius-xl)",borderTopRightRadius:"var(--mantine-radius-xl)",zIndex:10,overflow:"auto"},children:g.jsxs(F,{style:{height:"100%",display:"flex",flexDirection:"column",backgroundColor:"var(--w3-mainBackground)"},children:[g.jsxs(ot,{justify:"space-between",px:"xs",pt:"md",pb:"sm",style:{flexShrink:0},children:[g.jsx(F,{style:{width:"40px"}}),g.jsxs(G,{fw:700,size:"sm",style:{textAlign:"center",flex:1,color:"var(--w3-primaryText)"},children:["Send ",e," to Complete Payment"]}),g.jsx(me,{variant:"subtle",onClick:()=>it(!1),style:{width:"40px",height:"40px",color:"var(--w3-primaryText)"},children:"→"})]}),g.jsx(F,{style:{flex:1,overflow:"auto",backgroundColor:"var(--w3-mainBackground)",display:"flex",flexDirection:"column",padding:"32px 24px 24px 24px"},children:g.jsxs(F,{w:"100%",style:{backgroundColor:"var(--w3-innerBackground)",borderRadius:"24px",padding:"24px",flex:1,display:"flex",flexDirection:"column"},children:[x&&g.jsx(G,{fw:600,size:"xs",ta:"center",mb:"xs",style:{color:"var(--w3-amountText)"},children:x}),g.jsxs(ot,{w:"100%",gap:"sm",justify:"space-between",wrap:"nowrap",children:[g.jsx(ie,{radius:"lg",p:"sm",style:{flex:"0 0 60%",backgroundColor:"var(--w3-qrCardBackground)",border:"1px solid var(--w3-borderColor)",height:"140px",display:"flex",flexDirection:"column",justifyContent:"center"},children:g.jsxs(Et,{gap:2,children:[g.jsxs(ot,{justify:"space-between",align:"baseline",children:[g.jsx(G,{fw:600,style:{color:"var(--w3-qrCardText)",fontSize:"11px"},children:"Network"}),g.jsx(G,{fw:700,style:{color:"var(--w3-qrCardText)",fontSize:"11px"},children:n.toUpperCase()})]}),g.jsxs(ot,{justify:"space-between",align:"baseline",children:[g.jsx(G,{fw:600,style:{color:"var(--w3-qrCardText)",fontSize:"11px"},children:"Token"}),g.jsx(G,{fw:700,style:{color:"var(--w3-qrCardText)",fontSize:"11px"},children:e})]}),g.jsx(F,{style:{height:"1px",backgroundColor:"var(--w3-borderColor)",margin:"4px 0"}}),g.jsxs(ot,{justify:"space-between",align:"baseline",children:[g.jsx(G,{fw:600,style:{color:"var(--w3-qrCardText)",fontSize:"11px"},children:b}),g.jsxs(G,{fw:700,style:{color:"var(--w3-qrCardText)",fontSize:"11px"},children:[j," ",e]})]}),w&&g.jsxs(ot,{justify:"space-between",align:"baseline",children:[g.jsx(G,{fw:600,style:{color:"var(--w3-qrCardText)",fontSize:"11px"},children:v}),g.jsx(G,{fw:700,style:{color:"var(--w3-qrCardText)",fontSize:"11px"},children:w})]})]})}),g.jsx(ie,{radius:"lg",p:"xs",style:{flex:"0 0 40%",backgroundColor:"var(--w3-qrCardBackground)",border:"1px solid var(--w3-borderColor)",height:"140px",display:"flex",alignItems:"center",justifyContent:"center"},children:g.jsx(F,{style:{width:"100%",aspectRatio:"1",maxWidth:"120px",margin:"0 auto"},children:g.jsx(ii,{style:{width:"100%",height:"100%"},children:O?g.jsx(G,{size:"xs",style:{color:"var(--w3-danger)"},children:"Error"}):rt?g.jsx(fe,{src:rt,alt:"Payment QR Code",style:{width:"100%",height:"100%"}}):g.jsx(he,{})})})})]}),g.jsxs(Et,{w:"100%",gap:2,style:{marginTop:"auto",marginBottom:"8px"},children:[g.jsxs(G,{fw:700,tt:"uppercase",style:{letterSpacing:"0.05em",fontSize:"10px",color:"var(--w3-secondaryText)"},children:[e," Address"]}),g.jsx(F,{px:"xs",py:4,style:{backgroundColor:"var(--w3-qrAddressBackground)",borderRadius:"12px",border:"1px solid var(--w3-borderColor)"},children:g.jsxs(ot,{gap:"xs",children:[g.jsx(G,{style:{flex:1,fontFamily:"monospace",fontSize:"9px",color:"var(--w3-qrAddressText)",wordBreak:"break-all",lineHeight:1.2},children:(U=r.find(N=>N.currency===e&&N.network===n))==null?void 0:U.address}),g.jsx(me,{variant:"outline",radius:"lg",size:"lg",style:{backgroundColor:"transparent",border:"none",color:q?"var(--w3-success)":"var(--w3-qrAddressText)"},onClick:()=>_t(null,null,function*(){const N=r.find(_=>_.currency===e&&_.network===n);N!=null&&N.address&&(yield W0(N.address))&&(dt(!0),setTimeout(()=>dt(!1),2e3))}),children:q?g.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:g.jsx("polyline",{points:"20,6 9,17 4,12"})}):g.jsx(u0,{size:14})})]})})]}),g.jsx(F,{p:"md",style:{backgroundColor:"var(--w3-qrInstructionsBackground)",borderRadius:"12px",width:"100%"},children:g.jsxs(ot,{gap:"md",align:"flex-start",children:[g.jsx("div",{style:{width:"20px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:g.jsx(f0,{size:16,style:{color:"var(--w3-qrInstructionsText)"}})}),g.jsxs(G,{size:"xs",style:{lineHeight:1.5,flex:1,color:"var(--w3-qrInstructionsText)"},children:["Send exactly"," ",g.jsxs(G,{component:"span",fw:700,style:{color:"var(--w3-text)"},children:[j," ",e]})," ","to complete your payment. The transaction will be confirmed automatically."]})]})})]})})]})},"qr-screen"):g.jsxs(F,{style:{height:"100%",display:"flex",flexDirection:"column",padding:"32px 24px 24px 24px",zIndex:1},children:[(c||s)&&g.jsx(Et,{align:"center",gap:"xs",mb:"lg",style:{paddingLeft:"24px",paddingRight:"24px"},children:c?g.jsx(F,{style:{height:"24px",display:"flex",alignItems:"center",justifyContent:"center"},children:g.jsx("div",{style:{height:"24px",width:"auto",color:"var(--w3-primaryText)"},dangerouslySetInnerHTML:{__html:c.startsWith("data:image/svg+xml;base64,")?atob(c.replace("data:image/svg+xml;base64,","")):`<img src="${c}" alt="Logo" style="height: 24px; width: auto;" />`}})}):s?g.jsxs(Et,{align:"center",gap:4,children:[g.jsx("div",{style:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"var(--w3-text)"}}),g.jsx(G,{size:"lg",fw:700,style:{letterSpacing:"-0.02em",color:"var(--w3-primaryText)"},children:s})]}):null}),o&&g.jsx(F,{mb:"lg",style:{paddingLeft:"24px",paddingRight:"24px"},children:g.jsx(G,{size:"xs",fw:500,style:{color:"var(--w3-descriptionText)",textAlign:"center",maxWidth:"280px",lineHeight:1.5,margin:"0 auto"},children:o})}),g.jsxs(F,{style:{backgroundColor:"var(--w3-innerBackground)",borderRadius:"24px",padding:"24px",display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[f&&g.jsxs(Et,{align:"center",gap:4,mb:"xl",children:[g.jsxs(ot,{gap:"xs",align:"baseline",children:[g.jsx(G,{style:{fontSize:"32px",fontWeight:"bold",letterSpacing:"-0.02em",lineHeight:1,color:"var(--w3-amountText)"},children:j||"0"}),g.jsx(G,{size:"xl",fw:500,style:{letterSpacing:"-0.01em",color:"var(--w3-amountText)"},children:e})]}),d&&h&&g.jsxs(G,{size:"sm",style:{color:"var(--w3-usdText)"},children:["≈ $",(parseFloat(j||"0")*h).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})," ","USD"]})]}),g.jsxs(Et,{gap:"xs",style:{flex:1,minHeight:0},children:[g.jsx(G,{size:"xs",fw:700,tt:"uppercase",style:{letterSpacing:"0.1em",fontSize:"11px",color:"var(--w3-subtitleText)",flexShrink:0},children:a}),g.jsx(F,{className:"w3-payment-methods-container",style:{overflow:"auto",flex:1},children:g.jsx(Et,{gap:"xs",children:I.map(N=>{const _=N.exchange?`${N.vendor}-${N.source}-${N.exchange}-${N.from}-${N.to}`:`${N.vendor}-${N.source}-${N.from}-${N.to}`;let Q="",ht="";if(N.vendor==="direct")Q="Direct Payment",ht=`Send ${N.from} directly`;else if(N.exchange)Q=`${N.name||N.exchange}`,ht=`Exchange via ${N.vendor.charAt(0).toUpperCase()+N.vendor.slice(1)}`;else{if(m)return null;Q=`${N.name||N.source}`,ht="Wallet"}let Y;if(N.vendor==="direct"&&N.from&&N.from in Hr)Y=g.jsx(Po,{currency:N.from,size:32});else if(N.exchange){const pt=N.exchange.toLowerCase();(pt==="coinbase"||pt==="binance"||pt==="kraken")&&(Y=g.jsx(b0,{exchange:pt,size:32}))}else N.from&&N.from in Hr&&(Y=g.jsx(Po,{currency:N.from,size:32}));return g.jsx(h0,{id:_,name:Q,description:ht,icon:Y,fallbackText:Q.substring(0,2).toUpperCase(),avatarColor:N.vendor==="direct"?"green":"blue",disabled:lt===_,onClick:()=>Pt(_)},_)}).filter(Boolean)})})]})]})]},"payment-form")})}),g.jsx(y0,{})]})})})},hl="1.0.0",q0={W3_PAYMENTS_REACT_VERSION:hl};exports.W3PaymentWidget=G0;exports.W3_PAYMENTS_REACT_VERSION=hl;exports.default=q0;
|
|
23
|
+
Minimum version required to store current data is: `+D+`.
|
|
24
|
+
`);const I=x(A,C,j),L=t.getSymbolSize(A),B=new r(L);return h(B,A),m(B),y(B,A),v(B,C,0),A>=7&&b(B,A),w(B,I),isNaN(R)&&(R=o.getBestMask(B,v.bind(null,B,C))),o.applyMask(R,B),v(B,C,R),{modules:B,version:A,errorCorrectionLevel:C,maskPattern:R,segments:j}}return Xn.create=function(A,C){if(typeof A=="undefined"||A==="")throw new Error("No input text");let R=e.M,j,D;return typeof C!="undefined"&&(R=e.from(C.errorCorrectionLevel,e.M),j=l.from(C.version),D=o.from(C.maskPattern),C.toSJISFunc&&t.setToSJISFunction(C.toSJISFunc)),M(A,j,R,D)},Xn}var pr={},gr={},Zo;function hl(){return Zo||(Zo=1,(function(t){function e(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(s){return[s,s]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}t.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin=="undefined"||r.margin===null||r.margin<0?4:r.margin,s=r.width&&r.width>=21?r.width:void 0,o=r.scale||4;return{width:s,scale:s?4:o,margin:i,color:{dark:e(r.color.dark||"#000000ff"),light:e(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},t.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},t.getImageWidth=function(r,i){const s=t.getScale(r,i);return Math.floor((r+i.margin*2)*s)},t.qrToImageData=function(r,i,s){const o=i.modules.size,a=i.modules.data,c=t.getScale(o,s),l=Math.floor((o+s.margin*2)*c),u=s.margin*c,f=[s.color.light,s.color.dark];for(let d=0;d<l;d++)for(let h=0;h<l;h++){let m=(d*l+h)*4,y=s.color.light;if(d>=u&&h>=u&&d<l-u&&h<l-u){const b=Math.floor((d-u)/c),v=Math.floor((h-u)/c);y=f[a[b*o+v]?1:0]}r[m++]=y.r,r[m++]=y.g,r[m++]=y.b,r[m]=y.a}}})(gr)),gr}var Jo;function $0(){return Jo||(Jo=1,(function(t){const e=hl();function n(i,s,o){i.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=o,s.width=o,s.style.height=o+"px",s.style.width=o+"px"}function r(){try{return document.createElement("canvas")}catch(i){throw new Error("You need to specify a canvas element")}}t.render=function(s,o,a){let c=a,l=o;typeof c=="undefined"&&(!o||!o.getContext)&&(c=o,o=void 0),o||(l=r()),c=e.getOptions(c);const u=e.getImageWidth(s.modules.size,c),f=l.getContext("2d"),d=f.createImageData(u,u);return e.qrToImageData(d.data,s,c),n(f,l,u),f.putImageData(d,0,0),l},t.renderToDataURL=function(s,o,a){let c=a;typeof c=="undefined"&&(!o||!o.getContext)&&(c=o,o=void 0),c||(c={});const l=t.render(s,o,c),u=c.type||"image/png",f=c.rendererOpts||{};return l.toDataURL(u,f.quality)}})(pr)),pr}var yr={},Qo;function O0(){if(Qo)return yr;Qo=1;const t=hl();function e(i,s){const o=i.a/255,a=s+'="'+i.hex+'"';return o<1?a+" "+s+'-opacity="'+o.toFixed(2).slice(1)+'"':a}function n(i,s,o){let a=i+s;return typeof o!="undefined"&&(a+=" "+o),a}function r(i,s,o){let a="",c=0,l=!1,u=0;for(let f=0;f<i.length;f++){const d=Math.floor(f%s),h=Math.floor(f/s);!d&&!l&&(l=!0),i[f]?(u++,f>0&&d>0&&i[f-1]||(a+=l?n("M",d+o,.5+h+o):n("m",c,0),c=0,l=!1),d+1<s&&i[f+1]||(a+=n("h",u),u=0)):c++}return a}return yr.render=function(s,o,a){const c=t.getOptions(o),l=s.modules.size,u=s.modules.data,f=l+c.margin*2,d=c.color.light.a?"<path "+e(c.color.light,"fill")+' d="M0 0h'+f+"v"+f+'H0z"/>':"",h="<path "+e(c.color.dark,"stroke")+' d="'+r(u,l,c.margin)+'"/>',m='viewBox="0 0 '+f+" "+f+'"',b='<svg xmlns="http://www.w3.org/2000/svg" '+(c.width?'width="'+c.width+'" height="'+c.width+'" ':"")+m+' shape-rendering="crispEdges">'+d+h+`</svg>
|
|
25
|
+
`;return typeof a=="function"&&a(null,b),b},yr}var ta;function F0(){if(ta)return se;ta=1;const t=x0(),e=B0(),n=$0(),r=O0();function i(s,o,a,c,l){const u=[].slice.call(arguments,1),f=u.length,d=typeof u[f-1]=="function";if(!d&&!t())throw new Error("Callback required as last argument");if(d){if(f<2)throw new Error("Too few arguments provided");f===2?(l=a,a=o,o=c=void 0):f===3&&(o.getContext&&typeof l=="undefined"?(l=c,c=void 0):(l=c,c=a,a=o,o=void 0))}else{if(f<1)throw new Error("Too few arguments provided");return f===1?(a=o,o=c=void 0):f===2&&!o.getContext&&(c=a,a=o,o=void 0),new Promise(function(h,m){try{const y=e.create(a,c);h(s(y,o,c))}catch(y){m(y)}})}try{const h=e.create(a,c);l(null,s(h,o,c))}catch(h){l(h)}}return se.create=e.create,se.toCanvas=i.bind(null,n.render),se.toDataURL=i.bind(null,n.renderToDataURL),se.toString=i.bind(null,function(s,o,a){return r.render(s,a)}),se}var _0=F0();const z0=wl(_0);function U0(i,s,o){return zt(this,arguments,function*(t,e,n,r={}){var a,c;try{let l=t;e&&n&&(l=`${e.toLowerCase()}:${t}?amount=${n}`);const u={errorCorrectionLevel:r.errorCorrectionLevel||"M",type:r.type||"image/png",quality:r.quality||.92,margin:r.margin||2,color:{dark:((a=r.color)==null?void 0:a.dark)||"#000000",light:((c=r.color)==null?void 0:c.light)||"#FFFFFF"},width:r.width||256};return yield z0.toDataURL(l,u)}catch(l){throw new Error(`Failed to generate QR code: ${l instanceof Error?l.message:"Unknown error"}`)}})}function W0(t){return zt(this,null,function*(){try{if(navigator.clipboard&&window.isSecureContext)return yield navigator.clipboard.writeText(t),!0;{const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();const n=document.execCommand("copy");return document.body.removeChild(e),n}}catch(e){return!1}})}const H0="_widget_1upbe_3",ea={widget:H0},G0=({endpoint:t,currency:e,network:n,destinations:r,amount:i="",title:s="bits",description:o,subtitle:a="CHOOSE A PAYMENT METHOD",logo:c,theme:l="default",appearance:u,showAmount:f=!0,showUsdConversion:d=!1,usdRate:h,enableDirect:m=!0,transactionId:y,qrPaymentLabel:b="Paying:",qrReceivingLabel:v="Receiving:",qrReceivingAmount:w,qrDescription:x,customerId:T,idempotencyKey:M,callbackUrl:P,onInitiate:A,onComplete:C,onError:R,onClose:j})=>{var Q;const D=d0(l,u),[I]=S.useState(i),[L,B]=S.useState([]),[et,dt]=S.useState(!0),[G,X]=S.useState(null),[rt,it]=S.useState(!1),[E,O]=S.useState(""),[U,H]=S.useState(""),[ht,wt]=S.useState(!1);S.useEffect(()=>{zt(null,null,function*(){var W;try{const at=new URLSearchParams({currency:e,network:n}),gt=((W=(yield(yield window.fetch(`${t}/payment-methods?${at}`)).json()).methods)==null?void 0:W.filter(yt=>yt.to===e&&yt.network===n))||[],Ct=[];m&&Ct.push({vendor:"direct",source:"wallet",from:e,to:e,network:n,name:"Direct Payment"}),Ct.push(...gt),B(Ct)}catch(at){console.error("Failed to fetch payment methods:",at),R==null||R(new Error("Failed to load payment methods"))}finally{dt(!1)}})},[t,e,n,m,R]),S.useEffect(()=>{rt?zt(null,null,function*(){try{const W=r.find(mt=>mt.currency===e&&mt.network===n);if(!W){H("No destination address found");return}const at=yield U0(W.address,n,I,{width:176,margin:1});O(at),H("")}catch(W){H("Failed to generate QR code"),console.error("QR generation error:",W)}}):(O(""),H(""))},[rt,e,n,I,r]);const _=N=>zt(null,null,function*(){var at,mt;if(G)return;const W=L.find(K=>(K.exchange?`${K.vendor}-${K.source}-${K.exchange}-${K.from}-${K.to}`:`${K.vendor}-${K.source}-${K.from}-${K.to}`)===N);if(W){X(N);try{const K=r.find(Ct=>Ct.currency===e&&Ct.network===n);if(!K)throw new Error(`No destination address found for ${e} on ${n}`);const gt={amount:parseFloat(I),currency:W.from,customerId:T,address:K.address,transactionId:y,idempotencyKey:M,callbackUrl:P};if(yield A==null?void 0:A(gt),W.vendor==="direct"){it(!0);return}else{const Ct=yield window.fetch(`${t}/payments`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({intent:gt,method:W})}),yt=yield Ct.json();if(Ct.ok)if((at=yt.session)!=null&&at.id&&((mt=yt.session)!=null&&mt.vendor))try{const Se=window.atob(yt.session.id),Pn=(window.screen.width-500)/2,An=(window.screen.height-700)/2;window.open(Se,`${W.vendor}-checkout`,`width=500,height=700,left=${Pn},top=${An}`),C==null||C(yt)}catch(Se){console.error("Failed to decode checkout URL:",Se),C==null||C(yt)}else C==null||C(yt);else throw new Error(yt.message||"Payment failed")}}catch(K){R==null||R(K instanceof Error?K:new Error("Payment failed"))}finally{X(null)}}});return et?g.jsx(xr,{cssVariablesSelector:"[data-w3-payment-widget]",children:g.jsx(oe,{className:ea.widget,style:D,children:g.jsxs(Rt,{align:"center",justify:"center",h:"600px",children:[g.jsx(pe,{}),g.jsx(q,{children:"Loading..."})]})})}):g.jsx(xr,{cssVariablesSelector:"[data-w3-payment-widget]",children:g.jsx(oe,{shadow:"md",radius:"xl",p:0,className:ea.widget,style:p({height:"600px",backgroundColor:"var(--w3-mainBackground)"},D),"data-w3-payment-widget":!0,children:g.jsxs(F,{style:{position:"relative",overflow:"hidden",height:"100%",display:"flex",flexDirection:"column"},children:[j&&g.jsx(qt,{variant:"subtle",onClick:j,style:{position:"absolute",top:"16px",right:"16px",zIndex:20,color:"var(--w3-amountText, #000000)",backgroundColor:"var(--w3-innerBackground, #ffffff)",border:"1px solid var(--w3-borderColor, rgba(0, 0, 0, 0.1))",borderRadius:"50%",width:"24px",height:"24px",transition:"all 0.2s ease",minWidth:"24px",minHeight:"24px"},size:"sm",onMouseEnter:N=>{N.currentTarget.style.opacity="0.8",N.currentTarget.style.transform="scale(1.05)"},onMouseLeave:N=>{N.currentTarget.style.opacity="1",N.currentTarget.style.transform="scale(1)"},children:g.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[g.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),g.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),g.jsx(F,{style:{flex:1,position:"relative",overflow:"hidden"},children:g.jsx(Sh,{mode:"wait",children:rt?g.jsx(e0.div,{initial:{opacity:0,x:100},animate:{opacity:1,x:0},exit:{opacity:0,x:100},transition:{duration:.3,ease:"easeOut"},style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"var(--w3-mainBackground)",borderTopLeftRadius:"var(--mantine-radius-xl)",borderTopRightRadius:"var(--mantine-radius-xl)",zIndex:10,overflow:"auto"},children:g.jsxs(F,{style:{height:"100%",display:"flex",flexDirection:"column",backgroundColor:"var(--w3-mainBackground)"},children:[g.jsxs(ot,{justify:"space-between",px:"xs",pt:"md",pb:"sm",style:{flexShrink:0},children:[g.jsx(F,{style:{width:"40px"}}),g.jsxs(q,{fw:700,size:"sm",style:{textAlign:"center",flex:1,color:"var(--w3-primaryText)"},children:["Send ",e," to Complete Payment"]}),g.jsx(qt,{variant:"subtle",onClick:()=>it(!1),style:{width:"40px",height:"40px",color:"var(--w3-primaryText)"},children:"→"})]}),g.jsx(F,{style:{flex:1,overflow:"auto",backgroundColor:"var(--w3-mainBackground)",display:"flex",flexDirection:"column",padding:"32px 24px 24px 24px"},children:g.jsxs(F,{w:"100%",style:{backgroundColor:"var(--w3-innerBackground)",borderRadius:"24px",padding:"24px",flex:1,display:"flex",flexDirection:"column"},children:[x&&g.jsx(q,{fw:600,size:"xs",ta:"center",mb:"xs",style:{color:"var(--w3-amountText)"},children:x}),g.jsxs(ot,{w:"100%",gap:"sm",justify:"space-between",wrap:"nowrap",children:[g.jsx(oe,{radius:"lg",p:"sm",style:{flex:"0 0 60%",backgroundColor:"var(--w3-qrCardBackground)",border:"1px solid var(--w3-borderColor)",height:"140px",display:"flex",flexDirection:"column",justifyContent:"center"},children:g.jsxs(Rt,{gap:2,children:[g.jsxs(ot,{justify:"space-between",align:"baseline",children:[g.jsx(q,{fw:600,style:{color:"var(--w3-qrCardText)",fontSize:"11px"},children:"Network"}),g.jsx(q,{fw:700,style:{color:"var(--w3-qrCardText)",fontSize:"11px"},children:n.toUpperCase()})]}),g.jsxs(ot,{justify:"space-between",align:"baseline",children:[g.jsx(q,{fw:600,style:{color:"var(--w3-qrCardText)",fontSize:"11px"},children:"Token"}),g.jsx(q,{fw:700,style:{color:"var(--w3-qrCardText)",fontSize:"11px"},children:e})]}),g.jsx(F,{style:{height:"1px",backgroundColor:"var(--w3-borderColor)",margin:"4px 0"}}),g.jsxs(ot,{justify:"space-between",align:"baseline",children:[g.jsx(q,{fw:600,style:{color:"var(--w3-qrCardText)",fontSize:"11px"},children:b}),g.jsxs(q,{fw:700,style:{color:"var(--w3-qrCardText)",fontSize:"11px"},children:[I," ",e]})]}),w&&g.jsxs(ot,{justify:"space-between",align:"baseline",children:[g.jsx(q,{fw:600,style:{color:"var(--w3-qrCardText)",fontSize:"11px"},children:v}),g.jsx(q,{fw:700,style:{color:"var(--w3-qrCardText)",fontSize:"11px"},children:w})]})]})}),g.jsx(oe,{radius:"lg",p:"xs",style:{flex:"0 0 40%",backgroundColor:"var(--w3-qrCardBackground)",border:"1px solid var(--w3-borderColor)",height:"140px",display:"flex",alignItems:"center",justifyContent:"center"},children:g.jsx(F,{style:{width:"100%",aspectRatio:"1",maxWidth:"120px",margin:"0 auto"},children:g.jsx(si,{style:{width:"100%",height:"100%"},children:U?g.jsx(q,{size:"xs",style:{color:"var(--w3-danger)"},children:"Error"}):E?g.jsx(he,{src:E,alt:"Payment QR Code",style:{width:"100%",height:"100%"}}):g.jsx(pe,{})})})})]}),g.jsxs(Rt,{w:"100%",gap:2,style:{marginTop:"auto",marginBottom:"8px"},children:[g.jsxs(q,{fw:700,tt:"uppercase",style:{letterSpacing:"0.05em",fontSize:"10px",color:"var(--w3-secondaryText)"},children:[e," Address"]}),g.jsx(F,{px:"xs",py:4,style:{backgroundColor:"var(--w3-qrAddressBackground)",borderRadius:"12px",border:"1px solid var(--w3-borderColor)"},children:g.jsxs(ot,{gap:"xs",children:[g.jsx(q,{style:{flex:1,fontFamily:"monospace",fontSize:"9px",color:"var(--w3-qrAddressText)",wordBreak:"break-all",lineHeight:1.2},children:(Q=r.find(N=>N.currency===e&&N.network===n))==null?void 0:Q.address}),g.jsx(qt,{variant:"outline",radius:"lg",size:"lg",style:{backgroundColor:"transparent",border:"none",color:ht?"var(--w3-success)":"var(--w3-qrAddressText)"},onClick:()=>zt(null,null,function*(){const N=r.find(W=>W.currency===e&&W.network===n);N!=null&&N.address&&(yield W0(N.address))&&(wt(!0),setTimeout(()=>wt(!1),2e3))}),children:ht?g.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:g.jsx("polyline",{points:"20,6 9,17 4,12"})}):g.jsx(u0,{size:14})})]})})]}),g.jsx(F,{p:"md",style:{backgroundColor:"var(--w3-qrInstructionsBackground)",borderRadius:"12px",width:"100%"},children:g.jsxs(ot,{gap:"md",align:"flex-start",children:[g.jsx("div",{style:{width:"20px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:g.jsx(f0,{size:16,style:{color:"var(--w3-qrInstructionsText)"}})}),g.jsxs(q,{size:"xs",style:{lineHeight:1.5,flex:1,color:"var(--w3-qrInstructionsText)"},children:["Send exactly"," ",g.jsxs(q,{component:"span",fw:700,style:{color:"var(--w3-text)"},children:[I," ",e]})," ","to complete your payment. The transaction will be confirmed automatically."]})]})})]})})]})},"qr-screen"):g.jsxs(F,{style:{height:"100%",display:"flex",flexDirection:"column",padding:"32px 24px 24px 24px",zIndex:1},children:[(c||s)&&g.jsx(Rt,{align:"center",gap:"xs",mb:"lg",style:{paddingLeft:"24px",paddingRight:"24px"},children:c?g.jsx(F,{style:{height:"24px",display:"flex",alignItems:"center",justifyContent:"center"},children:g.jsx("div",{style:{height:"24px",width:"auto",color:"var(--w3-primaryText)"},dangerouslySetInnerHTML:{__html:c.startsWith("data:image/svg+xml;base64,")?atob(c.replace("data:image/svg+xml;base64,","")):`<img src="${c}" alt="Logo" style="height: 24px; width: auto;" />`}})}):s?g.jsxs(Rt,{align:"center",gap:4,children:[g.jsx("div",{style:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"var(--w3-text)"}}),g.jsx(q,{size:"lg",fw:700,style:{letterSpacing:"-0.02em",color:"var(--w3-primaryText)"},children:s})]}):null}),o&&g.jsx(F,{mb:"lg",style:{paddingLeft:"24px",paddingRight:"24px"},children:g.jsx(q,{size:"xs",fw:500,style:{color:"var(--w3-descriptionText)",textAlign:"center",maxWidth:"280px",lineHeight:1.5,margin:"0 auto"},children:o})}),g.jsxs(F,{style:{backgroundColor:"var(--w3-innerBackground)",borderRadius:"24px",padding:"24px",display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[f&&g.jsxs(Rt,{align:"center",gap:4,mb:"xl",children:[g.jsxs(ot,{gap:"xs",align:"baseline",children:[g.jsx(q,{style:{fontSize:"32px",fontWeight:"bold",letterSpacing:"-0.02em",lineHeight:1,color:"var(--w3-amountText)"},children:I||"0"}),g.jsx(q,{size:"xl",fw:500,style:{letterSpacing:"-0.01em",color:"var(--w3-amountText)"},children:e})]}),d&&h&&g.jsxs(q,{size:"sm",style:{color:"var(--w3-usdText)"},children:["≈ $",(parseFloat(I||"0")*h).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})," ","USD"]})]}),g.jsxs(Rt,{gap:"xs",style:{flex:1,minHeight:0},children:[g.jsx(q,{size:"xs",fw:700,tt:"uppercase",style:{letterSpacing:"0.1em",fontSize:"11px",color:"var(--w3-subtitleText)",flexShrink:0},children:a}),g.jsx(F,{className:"w3-payment-methods-container",style:{overflow:"auto",flex:1},children:g.jsx(Rt,{gap:"xs",children:L.map(N=>{const W=N.exchange?`${N.vendor}-${N.source}-${N.exchange}-${N.from}-${N.to}`:`${N.vendor}-${N.source}-${N.from}-${N.to}`;let at="",mt="";if(N.vendor==="direct")at="Direct Payment",mt=`Send ${N.from} directly`;else if(N.exchange)at=`${N.name||N.exchange}`,mt=`Exchange via ${N.vendor.charAt(0).toUpperCase()+N.vendor.slice(1)}`;else{if(m)return null;at=`${N.name||N.source}`,mt="Wallet"}let K;if(N.vendor==="direct"&&N.from&&N.from in Gr)K=g.jsx(Ao,{currency:N.from,size:32});else if(N.exchange){const gt=N.exchange.toLowerCase();(gt==="coinbase"||gt==="binance"||gt==="kraken")&&(K=g.jsx(b0,{exchange:gt,size:32}))}else N.from&&N.from in Gr&&(K=g.jsx(Ao,{currency:N.from,size:32}));return g.jsx(h0,{id:W,name:at,description:mt,icon:K,fallbackText:at.substring(0,2).toUpperCase(),avatarColor:N.vendor==="direct"?"green":"blue",disabled:G===W,onClick:()=>_(W)},W)}).filter(Boolean)})})]})]})]},"payment-form")})}),g.jsx(y0,{})]})})})},ml="1.0.0",q0={W3_PAYMENTS_REACT_VERSION:ml};exports.W3PaymentWidget=G0;exports.W3_PAYMENTS_REACT_VERSION=ml;exports.default=q0;
|