@w3payments/react 1.3.0 → 1.5.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.
Files changed (39) hide show
  1. package/README.md +259 -28
  2. package/dist/appearance.d.ts +47 -0
  3. package/dist/appearance.d.ts.map +1 -0
  4. package/dist/assets/main.css +1 -1
  5. package/dist/components/CurrencyIcon.d.ts +71 -0
  6. package/dist/components/CurrencyIcon.d.ts.map +1 -0
  7. package/dist/components/ExchangeIcon.d.ts +8 -0
  8. package/dist/components/ExchangeIcon.d.ts.map +1 -0
  9. package/dist/components/PaymentMethodRow.d.ts +2 -0
  10. package/dist/components/PaymentMethodRow.d.ts.map +1 -1
  11. package/dist/components/W3PaymentFooter.d.ts.map +1 -1
  12. package/dist/components/W3PaymentWidget.d.ts +46 -56
  13. package/dist/components/W3PaymentWidget.d.ts.map +1 -1
  14. package/dist/components/index.d.ts +1 -3
  15. package/dist/components/index.d.ts.map +1 -1
  16. package/dist/index.js +15 -15
  17. package/dist/index.mjs +10061 -14449
  18. package/dist/main.d.ts +2 -3
  19. package/dist/main.d.ts.map +1 -1
  20. package/dist/types.d.ts.map +1 -1
  21. package/dist/utils/qr.d.ts +41 -0
  22. package/dist/utils/qr.d.ts.map +1 -0
  23. package/package.json +5 -4
  24. package/dist/assets/3.svg +0 -1
  25. package/dist/assets/io.svg +0 -1
  26. package/dist/assets/vite.svg +0 -1
  27. package/dist/assets/w.svg +0 -1
  28. package/dist/components/W3PaymentsProvider.d.ts +0 -21
  29. package/dist/components/W3PaymentsProvider.d.ts.map +0 -1
  30. package/dist/context/W3PaymentsContext.d.ts +0 -28
  31. package/dist/context/W3PaymentsContext.d.ts.map +0 -1
  32. package/dist/hooks/index.d.ts +0 -8
  33. package/dist/hooks/index.d.ts.map +0 -1
  34. package/dist/hooks/useW3Payments.d.ts +0 -32
  35. package/dist/hooks/useW3Payments.d.ts.map +0 -1
  36. package/dist/http/W3PaymentsClient.d.ts +0 -16
  37. package/dist/http/W3PaymentsClient.d.ts.map +0 -1
  38. package/dist/index-B9KdNmCT.cjs +0 -94
  39. package/dist/index-Cu_k1Q9p.js +0 -13544
package/dist/index.js CHANGED
@@ -1,25 +1,25 @@
1
- "use strict";require('./assets/main.css');var xl=Object.defineProperty,Il=Object.defineProperties;var El=Object.getOwnPropertyDescriptors;var Jt=Object.getOwnPropertySymbols;var Zs=Object.prototype.hasOwnProperty,qs=Object.prototype.propertyIsEnumerable;var en=Math.pow,Mn=(e,t,n)=>t in e?xl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))Zs.call(t,n)&&Mn(e,n,t[n]);if(Jt)for(var n of Jt(t))qs.call(t,n)&&Mn(e,n,t[n]);return e},P=(e,t)=>Il(e,El(t));var _=(e,t)=>{var n={};for(var o in e)Zs.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Jt)for(var o of Jt(e))t.indexOf(o)<0&&qs.call(e,o)&&(n[o]=e[o]);return n};var W=(e,t,n)=>Mn(e,typeof t!="symbol"?t+"":t,n);var ee=(e,t,n)=>new Promise((o,s)=>{var i=c=>{try{a(n.next(c))}catch(l){s(l)}},r=c=>{try{a(n.throw(c))}catch(l){s(l)}},a=c=>c.done?o(c.value):Promise.resolve(c.value).then(i,r);a((n=n.apply(e,t)).next())});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("react"),Ml=require("react-dom");function Ul(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Sn=Ul(I);var tn={exports:{}},Et={};var Qs;function Pl(){if(Qs)return Et;Qs=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(o,s,i){var r=null;if(i!==void 0&&(r=""+i),s.key!==void 0&&(r=""+s.key),"key"in s){i={};for(var a in s)a!=="key"&&(i[a]=s[a])}else i=s;return s=i.ref,{$$typeof:e,type:o,key:r,ref:s!==void 0?s:null,props:i}}return Et.Fragment=t,Et.jsx=n,Et.jsxs=n,Et}var Mt={};var Js;function Rl(){return Js||(Js=1,process.env.NODE_ENV!=="production"&&(function(){function e(x){if(x==null)return null;if(typeof x=="function")return x.$$typeof===R?null:x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case v:return"Fragment";case w:return"Profiler";case b:return"StrictMode";case A:return"Suspense";case k:return"SuspenseList";case U:return"Activity"}if(typeof x=="object")switch(typeof x.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),x.$$typeof){case g:return"Portal";case S:return x.displayName||"Context";case T:return(x._context.displayName||"Context")+".Consumer";case C:var j=x.render;return x=x.displayName,x||(x=j.displayName||j.name||"",x=x!==""?"ForwardRef("+x+")":"ForwardRef"),x;case D:return j=x.displayName||null,j!==null?j:e(x.type)||"Memo";case E:j=x._payload,x=x._init;try{return e(x(j))}catch(B){}}return null}function t(x){return""+x}function n(x){try{t(x);var j=!1}catch(ye){j=!0}if(j){j=console;var B=j.error,Y=typeof Symbol=="function"&&Symbol.toStringTag&&x[Symbol.toStringTag]||x.constructor.name||"Object";return B.call(j,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Y),t(x)}}function o(x){if(x===v)return"<>";if(typeof x=="object"&&x!==null&&x.$$typeof===E)return"<...>";try{var j=e(x);return j?"<"+j+">":"<...>"}catch(B){return"<...>"}}function s(){var x=N.A;return x===null?null:x.getOwner()}function i(){return Error("react-stack-top-frame")}function r(x){if(L.call(x,"key")){var j=Object.getOwnPropertyDescriptor(x,"key").get;if(j&&j.isReactWarning)return!1}return x.key!==void 0}function a(x,j){function B(){de||(de=!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)",j))}B.isReactWarning=!0,Object.defineProperty(x,"key",{get:B,configurable:!0})}function c(){var x=e(this.type);return G[x]||(G[x]=!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.")),x=this.props.ref,x!==void 0?x:null}function l(x,j,B,Y,ye,ke){var $=B.ref;return x={$$typeof:p,type:x,key:j,props:B,_owner:Y},($!==void 0?$:null)!==null?Object.defineProperty(x,"ref",{enumerable:!1,get:c}):Object.defineProperty(x,"ref",{enumerable:!1,value:null}),x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(x,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(x,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ye}),Object.defineProperty(x,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ke}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x}function d(x,j,B,Y,ye,ke){var $=j.children;if($!==void 0)if(Y)if(O($)){for(Y=0;Y<$.length;Y++)u($[Y]);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 u($);if(L.call(j,"key")){$=e(x);var te=Object.keys(j).filter(function(he){return he!=="key"});Y=0<te.length?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}",se[$+Y]||(te=0<te.length?"{"+te.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ "use strict";require('./assets/main.css');var gl=Object.defineProperty,yl=Object.defineProperties;var vl=Object.getOwnPropertyDescriptors;var Ge=Object.getOwnPropertySymbols;var Ui=Object.prototype.hasOwnProperty,zi=Object.prototype.propertyIsEnumerable;var qe=Math.pow,_i=(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)&&_i(t,n,e[n]);if(Ge)for(var n of Ge(e))zi.call(e,n)&&_i(t,n,e[n]);return t},V=(t,e)=>yl(t,vl(e));var W=(t,e)=>{var n={};for(var r in t)Ui.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Ge)for(var r of Ge(t))e.indexOf(r)<0&&zi.call(t,r)&&(n[r]=t[r]);return n};var _t=(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 yn=xl(S);function wl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ke={exports:{}},Se={};var Wi;function Cl(){if(Wi)return Se;Wi=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 Se.Fragment=e,Se.jsx=n,Se.jsxs=n,Se}var Pe={};var Hi;function Tl(){return Hi||(Hi=1,process.env.NODE_ENV!=="production"&&(function(){function t(E){if(E==null)return null;if(typeof E=="function")return E.$$typeof===j?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 D: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(z){}}return null}function e(E){return""+E}function n(E){try{e(E);var O=!1}catch(dt){O=!0}if(O){O=console;var z=O.error,q=typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return z.call(O,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",q),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(z){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 z(){lt||(lt=!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))}z.isReactWarning=!0,Object.defineProperty(E,"key",{get:z,configurable:!0})}function c(){var E=t(this.type);return H[E]||(H[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,z,q,dt,Pt){var U=z.ref;return E={$$typeof:m,type:E,key:O,props:z,_owner:q},(U!==void 0?U: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:dt}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Pt}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function u(E,O,z,q,dt,Pt){var U=O.children;if(U!==void 0)if(q)if(B(U)){for(q=0;q<U.length;q++)f(U[q]);Object.freeze&&Object.freeze(U)}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(U);if(L.call(O,"key")){U=t(E);var N=Object.keys(O).filter(function(Q){return Q!=="key"});q=0<N.length?"{key: someKey, "+N.join(": ..., ")+": ...}":"{key: someKey}",rt[U+q]||(N=0<N.length?"{"+N.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} />`,Y,$,te,$),se[$+Y]=!0)}if($=null,B!==void 0&&(n(B),$=""+B),r(j)&&(n(j.key),$=""+j.key),"key"in j){B={};for(var fe in j)fe!=="key"&&(B[fe]=j[fe])}else B=j;return $&&a(B,typeof x=="function"?x.displayName||x.name||"Unknown":x),l(x,$,B,s(),ye,ke)}function u(x){f(x)?x._store&&(x._store.validated=1):typeof x=="object"&&x!==null&&x.$$typeof===E&&(x._payload.status==="fulfilled"?f(x._payload.value)&&x._payload.value._store&&(x._payload.value._store.validated=1):x._store&&(x._store.validated=1))}function f(x){return typeof x=="object"&&x!==null&&x.$$typeof===p}var h=I,p=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),S=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),R=Symbol.for("react.client.reference"),N=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,O=Array.isArray,X=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(x){return x()}};var de,G={},q=h.react_stack_bottom_frame.bind(h,i)(),ce=X(o(i)),se={};Mt.Fragment=v,Mt.jsx=function(x,j,B){var Y=1e4>N.recentlyCreatedOwnerStacks++;return d(x,j,B,!1,Y?Error("react-stack-top-frame"):q,Y?X(o(x)):ce)},Mt.jsxs=function(x,j,B){var Y=1e4>N.recentlyCreatedOwnerStacks++;return d(x,j,B,!0,Y?Error("react-stack-top-frame"):q,Y?X(o(x)):ce)}})()),Mt}var ei;function Nl(){return ei||(ei=1,process.env.NODE_ENV==="production"?tn.exports=Pl():tn.exports=Rl()),tn.exports}var y=Nl();const ti={primary:"#2563eb",background:"#ffffff",text:"#000000",textSecondary:"#6b7280",danger:"#dc2626",success:"#16a34a",warning:"#ca8a04",border:"#e5e7eb",fontFamily:"Inter, system-ui, sans-serif",fontSizeBase:"14px",fontSizeSmall:"12px",fontSizeLarge:"32px",fontWeightNormal:"400",spacingUnit:"4px",borderRadius:"8px",buttonRadius:"6px"},ni={default:ti,night:P(m({},ti),{primary:"#0085FF",background:"#14171D",text:"#C9CED8",textSecondary:"#8C99AD",danger:"#F23154",border:"#2B3039"})},Ll=(e="default",t)=>{const n=ni[e]||ni.default,o=m(m({},n),t==null?void 0:t.variables),s={};return Object.entries(o).forEach(([i,r])=>{s[`--w3-${i}`]=r}),s},Ge=class Ge{constructor(){W(this,"paymentMethods",new Map)}static getInstance(){return Ge.instance||(Ge.instance=new Ge),Ge.instance}register(t){this.paymentMethods.set(t.id,t)}registerMany(t){t.forEach(n=>this.register(n))}getPaymentMethod(t){return this.paymentMethods.get(t)}getAllPaymentMethods(){return Array.from(this.paymentMethods.values())}hasPaymentMethod(t){return this.paymentMethods.has(t)}getByVendor(t){return this.getAllPaymentMethods().filter(n=>n.vendorId===t)}getByMethod(t){return this.getAllPaymentMethods().filter(n=>n.method===t)}getByType(t){return this.getAllPaymentMethods().filter(n=>n.type===t)}getFiatPaymentMethods(){return this.getAllPaymentMethods().filter(t=>t.type==="fiat")}getCryptoPaymentMethods(){return this.getAllPaymentMethods().filter(t=>t.type==="crypto")}getByCurrency(t){return this.getAllPaymentMethods().filter(n=>n.supportedCurrencies.includes(t))}getByNetwork(t){return this.getCryptoPaymentMethods().filter(n=>n.network===t)}getByNetworkAndCurrency(t,n){return this.getCryptoPaymentMethods().filter(o=>o.network===t&&o.currency===n)}getByRegion(t){return this.getAllPaymentMethods().filter(n=>!n.regions||n.regions.length===0||n.regions.includes(t))}getActive(){return this.getAllPaymentMethods().filter(t=>t.isActive)}getAvailableFor(t,n){const o=this.getByCurrency(t).filter(s=>s.isActive);return n?o.filter(s=>!s.regions||s.regions.length===0||s.regions.includes(n)):o}searchPaymentMethods(t){const n=t.toLowerCase();return this.getAllPaymentMethods().filter(o=>{var s;return o.name.toLowerCase().includes(n)||((s=o.description)==null?void 0:s.toLowerCase().includes(n))})}getWalletMethods(t){const n=this.getCryptoPaymentMethods().filter(s=>s.method==="wallet");return t?n.filter(s=>{var c;const i=!((c=t.currencies)!=null&&c.length)||t.currencies.some(l=>s.currency.toLowerCase()===l.toLowerCase()),r=(!t.targetCurrency||s.currency.toLowerCase()===t.targetCurrency.toLowerCase())&&(!t.targetNetwork||s.network.toLowerCase()===t.targetNetwork.toLowerCase());return i&&r}):n}getExchangeMethods(t){const n=this.getCryptoPaymentMethods().filter(o=>o.method==="exchange");return t?n.filter(o=>{var r;const s=!((r=t.exchanges)!=null&&r.length)||t.exchanges.some(a=>o.name.toLowerCase().includes(a.toLowerCase())),i=!t.targetCurrency||o.currency.toLowerCase()===t.targetCurrency.toLowerCase();return s&&i}):n}getFiatMethods(t){var o;const n=this.getFiatPaymentMethods();return(o=t==null?void 0:t.methods)!=null&&o.length?n.filter(s=>t.methods.some(i=>s.method.toLowerCase()===i.toLowerCase())):n}getDisplayOptions(t){var o,s,i;const n=[];return(o=t==null?void 0:t.walletFilter)==null||o.forEach(r=>{this.getWalletMethods({currencies:[r],targetCurrency:t.targetCurrency,targetNetwork:t.targetNetwork}).length>0&&n.push({id:`wallet-${r.toLowerCase()}`,displayName:r,method:"wallet"})}),(s=t==null?void 0:t.exchangeFilter)==null||s.forEach(r=>{this.getExchangeMethods({exchanges:[r],targetCurrency:t.targetCurrency}).length>0&&n.push({id:`exchange-${r.toLowerCase()}`,displayName:r,method:"exchange"})}),(i=t==null?void 0:t.fiatFilter)==null||i.forEach(r=>{this.getFiatMethods({methods:[r]}).length>0&&n.push({id:`fiat-${r.toLowerCase()}`,displayName:r,method:"fiat"})}),n}clear(){this.paymentMethods.clear()}};W(Ge,"instance");let Do=Ge;const oi=Do.getInstance(),Ye=class Ye{constructor(){W(this,"currencies",new Map);W(this,"supportedCurrencies",{sandbox:new Set,production:new Set})}static getInstance(){return Ye.instance||(Ye.instance=new Ye),Ye.instance}register(t){this.currencies.set(t.code,t)}registerMany(t){t.forEach(n=>this.register(n))}getCurrency(t){return this.currencies.get(t)}getAllCurrencies(){return Array.from(this.currencies.values())}hasCurrency(t){return this.currencies.has(t)}getCurrencyIcon(t){const n=this.getCurrency(t);return(n==null?void 0:n.iconUrl)||""}getCryptoCurrencies(){return this.getAllCurrencies().filter(t=>t.type==="crypto")}getFiatCurrencies(){return this.getAllCurrencies().filter(t=>t.type==="fiat")}getStablecoins(){return this.getCryptoCurrencies().filter(t=>t.isStablecoin)}getCurrenciesByNetwork(t){return this.getCryptoCurrencies().filter(n=>n.network===t)}searchCurrencies(t){const n=t.toLowerCase();return this.getAllCurrencies().filter(o=>o.code.toLowerCase().includes(n)||o.name.toLowerCase().includes(n))}addSupportedCurrency(t,n){this.supportedCurrencies[n].add(t)}getSupportedCurrencies(t){return Array.from(this.supportedCurrencies[t])}isCurrencySupported(t,n){return this.supportedCurrencies[n].has(t)}clear(){this.currencies.clear(),this.supportedCurrencies.sandbox.clear(),this.supportedCurrencies.production.clear()}};W(Ye,"instance");let Co=Ye;const Ao=Co.getInstance(),Ke=class Ke{constructor(){W(this,"networks",new Map)}static getInstance(){return Ke.instance||(Ke.instance=new Ke),Ke.instance}register(t){this.networks.set(t.id,t)}registerMany(t){t.forEach(n=>this.register(n))}getNetwork(t){return this.networks.get(t)}getAllNetworks(){return Array.from(this.networks.values())}hasNetwork(t){return this.networks.has(t)}getMainnetNetworks(){return this.getAllNetworks().filter(t=>!t.isTestnet)}getTestnetNetworks(){return this.getAllNetworks().filter(t=>t.isTestnet)}clear(){this.networks.clear()}};W(Ke,"instance");let ko=Ke;const si=ko.getInstance();function Bl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ct={},Un,ii;function Ol(){return ii||(ii=1,Un=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Un}var Pn={},Oe={},ri;function nt(){if(ri)return Oe;ri=1;let e;const t=[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 Oe.getSymbolSize=function(o){if(!o)throw new Error('"version" cannot be null or undefined');if(o<1||o>40)throw new Error('"version" should be in range from 1 to 40');return o*4+17},Oe.getSymbolTotalCodewords=function(o){return t[o]},Oe.getBCHDigit=function(n){let o=0;for(;n!==0;)o++,n>>>=1;return o},Oe.setToSJISFunction=function(o){if(typeof o!="function")throw new Error('"toSJISFunc" is not a valid function.');e=o},Oe.isKanjiModeEnabled=function(){return typeof e!="undefined"},Oe.toSJIS=function(o){return e(o)},Oe}var Rn={},ai;function es(){return ai||(ai=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(o){return o&&typeof o.bit!="undefined"&&o.bit>=0&&o.bit<4},e.from=function(o,s){if(e.isValid(o))return o;try{return t(o)}catch(i){return s}}})(Rn)),Rn}var Nn,ci;function Vl(){if(ci)return Nn;ci=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const n=Math.floor(t/8);return(this.buffer[n]>>>7-t%8&1)===1},put:function(t,n){for(let o=0;o<n;o++)this.putBit((t>>>n-o-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},Nn=e,Nn}var Ln,li;function jl(){if(li)return Ln;li=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,n,o,s){const i=t*this.size+n;this.data[i]=o,s&&(this.reservedBit[i]=!0)},e.prototype.get=function(t,n){return this.data[t*this.size+n]},e.prototype.xor=function(t,n,o){this.data[t*this.size+n]^=o},e.prototype.isReserved=function(t,n){return this.reservedBit[t*this.size+n]},Ln=e,Ln}var Bn={},di;function Fl(){return di||(di=1,(function(e){const t=nt().getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const s=Math.floor(o/7)+2,i=t(o),r=i===145?26:Math.ceil((i-13)/(2*s-2))*2,a=[i-7];for(let c=1;c<s-1;c++)a[c]=a[c-1]-r;return a.push(6),a.reverse()},e.getPositions=function(o){const s=[],i=e.getRowColCoords(o),r=i.length;for(let a=0;a<r;a++)for(let c=0;c<r;c++)a===0&&c===0||a===0&&c===r-1||a===r-1&&c===0||s.push([i[a],i[c]]);return s}})(Bn)),Bn}var On={},ui;function $l(){if(ui)return On;ui=1;const e=nt().getSymbolSize,t=7;return On.getPositions=function(o){const s=e(o);return[[0,0],[s-t,0],[0,s-t]]},On}var Vn={},fi;function Hl(){return fi||(fi=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(s){return s!=null&&s!==""&&!isNaN(s)&&s>=0&&s<=7},e.from=function(s){return e.isValid(s)?parseInt(s,10):void 0},e.getPenaltyN1=function(s){const i=s.size;let r=0,a=0,c=0,l=null,d=null;for(let u=0;u<i;u++){a=c=0,l=d=null;for(let f=0;f<i;f++){let h=s.get(u,f);h===l?a++:(a>=5&&(r+=t.N1+(a-5)),l=h,a=1),h=s.get(f,u),h===d?c++:(c>=5&&(r+=t.N1+(c-5)),d=h,c=1)}a>=5&&(r+=t.N1+(a-5)),c>=5&&(r+=t.N1+(c-5))}return r},e.getPenaltyN2=function(s){const i=s.size;let r=0;for(let a=0;a<i-1;a++)for(let c=0;c<i-1;c++){const l=s.get(a,c)+s.get(a,c+1)+s.get(a+1,c)+s.get(a+1,c+1);(l===4||l===0)&&r++}return r*t.N2},e.getPenaltyN3=function(s){const i=s.size;let r=0,a=0,c=0;for(let l=0;l<i;l++){a=c=0;for(let d=0;d<i;d++)a=a<<1&2047|s.get(l,d),d>=10&&(a===1488||a===93)&&r++,c=c<<1&2047|s.get(d,l),d>=10&&(c===1488||c===93)&&r++}return r*t.N3},e.getPenaltyN4=function(s){let i=0;const r=s.data.length;for(let c=0;c<r;c++)i+=s.data[c];return Math.abs(Math.ceil(i*100/r/5)-10)*t.N4};function n(o,s,i){switch(o){case e.Patterns.PATTERN000:return(s+i)%2===0;case e.Patterns.PATTERN001:return s%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(s+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(s/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return s*i%2+s*i%3===0;case e.Patterns.PATTERN110:return(s*i%2+s*i%3)%2===0;case e.Patterns.PATTERN111:return(s*i%3+(s+i)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}e.applyMask=function(s,i){const r=i.size;for(let a=0;a<r;a++)for(let c=0;c<r;c++)i.isReserved(c,a)||i.xor(c,a,n(s,c,a))},e.getBestMask=function(s,i){const r=Object.keys(e.Patterns).length;let a=0,c=1/0;for(let l=0;l<r;l++){i(l),e.applyMask(l,s);const d=e.getPenaltyN1(s)+e.getPenaltyN2(s)+e.getPenaltyN3(s)+e.getPenaltyN4(s);e.applyMask(l,s),d<c&&(c=d,a=l)}return a}})(Vn)),Vn}var nn={},hi;function da(){if(hi)return nn;hi=1;const e=es(),t=[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(s,i){switch(i){case e.L:return t[(s-1)*4+0];case e.M:return t[(s-1)*4+1];case e.Q:return t[(s-1)*4+2];case e.H:return t[(s-1)*4+3];default:return}},nn.getTotalCodewordsCount=function(s,i){switch(i){case e.L:return n[(s-1)*4+0];case e.M:return n[(s-1)*4+1];case e.Q:return n[(s-1)*4+2];case e.H:return n[(s-1)*4+3];default:return}},nn}var jn={},Ut={},pi;function _l(){if(pi)return Ut;pi=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let o=1;for(let s=0;s<255;s++)e[s]=o,t[o]=s,o<<=1,o&256&&(o^=285);for(let s=255;s<512;s++)e[s]=e[s-255]})(),Ut.log=function(o){if(o<1)throw new Error("log("+o+")");return t[o]},Ut.exp=function(o){return e[o]},Ut.mul=function(o,s){return o===0||s===0?0:e[t[o]+t[s]]},Ut}var mi;function zl(){return mi||(mi=1,(function(e){const t=_l();e.mul=function(o,s){const i=new Uint8Array(o.length+s.length-1);for(let r=0;r<o.length;r++)for(let a=0;a<s.length;a++)i[r+a]^=t.mul(o[r],s[a]);return i},e.mod=function(o,s){let i=new Uint8Array(o);for(;i.length-s.length>=0;){const r=i[0];for(let c=0;c<s.length;c++)i[c]^=t.mul(s[c],r);let a=0;for(;a<i.length&&i[a]===0;)a++;i=i.slice(a)}return i},e.generateECPolynomial=function(o){let s=new Uint8Array([1]);for(let i=0;i<o;i++)s=e.mul(s,new Uint8Array([1,t.exp(i)]));return s}})(jn)),jn}var Fn,gi;function Xl(){if(gi)return Fn;gi=1;const e=zl();function t(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(o){this.degree=o,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(o){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(o.length+this.degree);s.set(o);const i=e.mod(s,this.genPoly),r=this.degree-i.length;if(r>0){const a=new Uint8Array(this.degree);return a.set(i,r),a}return i},Fn=t,Fn}var $n={},Hn={},_n={},bi;function ua(){return bi||(bi=1,_n.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),_n}var Ie={},yi;function fa(){if(yi)return Ie;yi=1;const e="[0-9]+",t="[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 o="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r
7
- ]))+`;Ie.KANJI=new RegExp(n,"g"),Ie.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ie.BYTE=new RegExp(o,"g"),Ie.NUMERIC=new RegExp(e,"g"),Ie.ALPHANUMERIC=new RegExp(t,"g");const s=new RegExp("^"+n+"$"),i=new RegExp("^"+e+"$"),r=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ie.testKanji=function(c){return s.test(c)},Ie.testNumeric=function(c){return i.test(c)},Ie.testAlphanumeric=function(c){return r.test(c)},Ie}var vi;function ot(){return vi||(vi=1,(function(e){const t=ua(),n=fa();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,r){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?i.ccBits[0]:r<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return n.testNumeric(i)?e.NUMERIC:n.testAlphanumeric(i)?e.ALPHANUMERIC:n.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function o(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+s)}}e.from=function(i,r){if(e.isValid(i))return i;try{return o(i)}catch(a){return r}}})(Hn)),Hn}var Ti;function Wl(){return Ti||(Ti=1,(function(e){const t=nt(),n=da(),o=es(),s=ot(),i=ua(),r=7973,a=t.getBCHDigit(r);function c(f,h,p){for(let g=1;g<=40;g++)if(h<=e.getCapacity(g,p,f))return g}function l(f,h){return s.getCharCountIndicator(f,h)+4}function d(f,h){let p=0;return f.forEach(function(g){const v=l(g.mode,h);p+=v+g.getBitsLength()}),p}function u(f,h){for(let p=1;p<=40;p++)if(d(f,p)<=e.getCapacity(p,h,s.MIXED))return p}e.from=function(h,p){return i.isValid(h)?parseInt(h,10):p},e.getCapacity=function(h,p,g){if(!i.isValid(h))throw new Error("Invalid QR Code version");typeof g=="undefined"&&(g=s.BYTE);const v=t.getSymbolTotalCodewords(h),b=n.getTotalCodewordsCount(h,p),w=(v-b)*8;if(g===s.MIXED)return w;const T=w-l(g,h);switch(g){case s.NUMERIC:return Math.floor(T/10*3);case s.ALPHANUMERIC:return Math.floor(T/11*2);case s.KANJI:return Math.floor(T/13);case s.BYTE:default:return Math.floor(T/8)}},e.getBestVersionForData=function(h,p){let g;const v=o.from(p,o.M);if(Array.isArray(h)){if(h.length>1)return u(h,v);if(h.length===0)return 1;g=h[0]}else g=h;return c(g.mode,g.getLength(),v)},e.getEncodedBits=function(h){if(!i.isValid(h)||h<7)throw new Error("Invalid QR Code version");let p=h<<12;for(;t.getBCHDigit(p)-a>=0;)p^=r<<t.getBCHDigit(p)-a;return h<<12|p}})($n)),$n}var zn={},wi;function Gl(){if(wi)return zn;wi=1;const e=nt(),t=1335,n=21522,o=e.getBCHDigit(t);return zn.getEncodedBits=function(i,r){const a=i.bit<<3|r;let c=a<<10;for(;e.getBCHDigit(c)-o>=0;)c^=t<<e.getBCHDigit(c)-o;return(a<<10|c)^n},zn}var Xn={},Wn,Si;function Yl(){if(Si)return Wn;Si=1;const e=ot();function t(n){this.mode=e.NUMERIC,this.data=n.toString()}return t.getBitsLength=function(o){return 10*Math.floor(o/3)+(o%3?o%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(o){let s,i,r;for(s=0;s+3<=this.data.length;s+=3)i=this.data.substr(s,3),r=parseInt(i,10),o.put(r,10);const a=this.data.length-s;a>0&&(i=this.data.substr(s),r=parseInt(i,10),o.put(r,a*3+1))},Wn=t,Wn}var Gn,Di;function Kl(){if(Di)return Gn;Di=1;const e=ot(),t=["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(o){this.mode=e.ALPHANUMERIC,this.data=o}return n.getBitsLength=function(s){return 11*Math.floor(s/2)+6*(s%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(s){let i;for(i=0;i+2<=this.data.length;i+=2){let r=t.indexOf(this.data[i])*45;r+=t.indexOf(this.data[i+1]),s.put(r,11)}this.data.length%2&&s.put(t.indexOf(this.data[i]),6)},Gn=n,Gn}var Yn,Ci;function Zl(){if(Ci)return Yn;Ci=1;const e=ot();function t(n){this.mode=e.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}return t.getBitsLength=function(o){return o*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){for(let o=0,s=this.data.length;o<s;o++)n.put(this.data[o],8)},Yn=t,Yn}var Kn,Ai;function ql(){if(Ai)return Kn;Ai=1;const e=ot(),t=nt();function n(o){this.mode=e.KANJI,this.data=o}return n.getBitsLength=function(s){return s*13},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(o){let s;for(s=0;s<this.data.length;s++){let i=t.toSJIS(this.data[s]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[s]+`
8
- Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),o.put(i,13)}},Kn=n,Kn}var Zn={exports:{}},ki;function Ql(){return ki||(ki=1,(function(e){var t={single_source_shortest_paths:function(n,o,s){var i={},r={};r[o]=0;var a=t.PriorityQueue.make();a.push(o,0);for(var c,l,d,u,f,h,p,g,v;!a.empty();){c=a.pop(),l=c.value,u=c.cost,f=n[l]||{};for(d in f)f.hasOwnProperty(d)&&(h=f[d],p=u+h,g=r[d],v=typeof r[d]=="undefined",(v||g>p)&&(r[d]=p,a.push(d,p),i[d]=l))}if(typeof s!="undefined"&&typeof r[s]=="undefined"){var b=["Could not find a path from ",o," to ",s,"."].join("");throw new Error(b)}return i},extract_shortest_path_from_predecessor_list:function(n,o){for(var s=[],i=o;i;)s.push(i),n[i],i=n[i];return s.reverse(),s},find_path:function(n,o,s){var i=t.single_source_shortest_paths(n,o,s);return t.extract_shortest_path_from_predecessor_list(i,s)},PriorityQueue:{make:function(n){var o=t.PriorityQueue,s={},i;n=n||{};for(i in o)o.hasOwnProperty(i)&&(s[i]=o[i]);return s.queue=[],s.sorter=n.sorter||o.default_sorter,s},default_sorter:function(n,o){return n.cost-o.cost},push:function(n,o){var s={value:n,cost:o};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Zn)),Zn.exports}var xi;function Jl(){return xi||(xi=1,(function(e){const t=ot(),n=Yl(),o=Kl(),s=Zl(),i=ql(),r=fa(),a=nt(),c=Ql();function l(b){return unescape(encodeURIComponent(b)).length}function d(b,w,T){const S=[];let C;for(;(C=b.exec(T))!==null;)S.push({data:C[0],index:C.index,mode:w,length:C[0].length});return S}function u(b){const w=d(r.NUMERIC,t.NUMERIC,b),T=d(r.ALPHANUMERIC,t.ALPHANUMERIC,b);let S,C;return a.isKanjiModeEnabled()?(S=d(r.BYTE,t.BYTE,b),C=d(r.KANJI,t.KANJI,b)):(S=d(r.BYTE_KANJI,t.BYTE,b),C=[]),w.concat(T,S,C).sort(function(k,D){return k.index-D.index}).map(function(k){return{data:k.data,mode:k.mode,length:k.length}})}function f(b,w){switch(w){case t.NUMERIC:return n.getBitsLength(b);case t.ALPHANUMERIC:return o.getBitsLength(b);case t.KANJI:return i.getBitsLength(b);case t.BYTE:return s.getBitsLength(b)}}function h(b){return b.reduce(function(w,T){const S=w.length-1>=0?w[w.length-1]:null;return S&&S.mode===T.mode?(w[w.length-1].data+=T.data,w):(w.push(T),w)},[])}function p(b){const w=[];for(let T=0;T<b.length;T++){const S=b[T];switch(S.mode){case t.NUMERIC:w.push([S,{data:S.data,mode:t.ALPHANUMERIC,length:S.length},{data:S.data,mode:t.BYTE,length:S.length}]);break;case t.ALPHANUMERIC:w.push([S,{data:S.data,mode:t.BYTE,length:S.length}]);break;case t.KANJI:w.push([S,{data:S.data,mode:t.BYTE,length:l(S.data)}]);break;case t.BYTE:w.push([{data:S.data,mode:t.BYTE,length:l(S.data)}])}}return w}function g(b,w){const T={},S={start:{}};let C=["start"];for(let A=0;A<b.length;A++){const k=b[A],D=[];for(let E=0;E<k.length;E++){const U=k[E],R=""+A+E;D.push(R),T[R]={node:U,lastCount:0},S[R]={};for(let N=0;N<C.length;N++){const L=C[N];T[L]&&T[L].node.mode===U.mode?(S[L][R]=f(T[L].lastCount+U.length,U.mode)-f(T[L].lastCount,U.mode),T[L].lastCount+=U.length):(T[L]&&(T[L].lastCount=U.length),S[L][R]=f(U.length,U.mode)+4+t.getCharCountIndicator(U.mode,w))}}C=D}for(let A=0;A<C.length;A++)S[C[A]].end=0;return{map:S,table:T}}function v(b,w){let T;const S=t.getBestModeForData(b);if(T=t.from(w,S),T!==t.BYTE&&T.bit<S.bit)throw new Error('"'+b+'" cannot be encoded with mode '+t.toString(T)+`.
9
- Suggested mode is: `+t.toString(S));switch(T===t.KANJI&&!a.isKanjiModeEnabled()&&(T=t.BYTE),T){case t.NUMERIC:return new n(b);case t.ALPHANUMERIC:return new o(b);case t.KANJI:return new i(b);case t.BYTE:return new s(b)}}e.fromArray=function(w){return w.reduce(function(T,S){return typeof S=="string"?T.push(v(S,null)):S.data&&T.push(v(S.data,S.mode)),T},[])},e.fromString=function(w,T){const S=u(w,a.isKanjiModeEnabled()),C=p(S),A=g(C,T),k=c.find_path(A.map,"start","end"),D=[];for(let E=1;E<k.length-1;E++)D.push(A.table[k[E]].node);return e.fromArray(h(D))},e.rawSplit=function(w){return e.fromArray(u(w,a.isKanjiModeEnabled()))}})(Xn)),Xn}var Ii;function ed(){if(Ii)return Pn;Ii=1;const e=nt(),t=es(),n=Vl(),o=jl(),s=Fl(),i=$l(),r=Hl(),a=da(),c=Xl(),l=Wl(),d=Gl(),u=ot(),f=Jl();function h(A,k){const D=A.size,E=i.getPositions(k);for(let U=0;U<E.length;U++){const R=E[U][0],N=E[U][1];for(let L=-1;L<=7;L++)if(!(R+L<=-1||D<=R+L))for(let O=-1;O<=7;O++)N+O<=-1||D<=N+O||(L>=0&&L<=6&&(O===0||O===6)||O>=0&&O<=6&&(L===0||L===6)||L>=2&&L<=4&&O>=2&&O<=4?A.set(R+L,N+O,!0,!0):A.set(R+L,N+O,!1,!0))}}function p(A){const k=A.size;for(let D=8;D<k-8;D++){const E=D%2===0;A.set(D,6,E,!0),A.set(6,D,E,!0)}}function g(A,k){const D=s.getPositions(k);for(let E=0;E<D.length;E++){const U=D[E][0],R=D[E][1];for(let N=-2;N<=2;N++)for(let L=-2;L<=2;L++)N===-2||N===2||L===-2||L===2||N===0&&L===0?A.set(U+N,R+L,!0,!0):A.set(U+N,R+L,!1,!0)}}function v(A,k){const D=A.size,E=l.getEncodedBits(k);let U,R,N;for(let L=0;L<18;L++)U=Math.floor(L/3),R=L%3+D-8-3,N=(E>>L&1)===1,A.set(U,R,N,!0),A.set(R,U,N,!0)}function b(A,k,D){const E=A.size,U=d.getEncodedBits(k,D);let R,N;for(R=0;R<15;R++)N=(U>>R&1)===1,R<6?A.set(R,8,N,!0):R<8?A.set(R+1,8,N,!0):A.set(E-15+R,8,N,!0),R<8?A.set(8,E-R-1,N,!0):R<9?A.set(8,15-R-1+1,N,!0):A.set(8,15-R-1,N,!0);A.set(E-8,8,1,!0)}function w(A,k){const D=A.size;let E=-1,U=D-1,R=7,N=0;for(let L=D-1;L>0;L-=2)for(L===6&&L--;;){for(let O=0;O<2;O++)if(!A.isReserved(U,L-O)){let X=!1;N<k.length&&(X=(k[N]>>>R&1)===1),A.set(U,L-O,X),R--,R===-1&&(N++,R=7)}if(U+=E,U<0||D<=U){U-=E,E=-E;break}}}function T(A,k,D){const E=new n;D.forEach(function(O){E.put(O.mode.bit,4),E.put(O.getLength(),u.getCharCountIndicator(O.mode,A)),O.write(E)});const U=e.getSymbolTotalCodewords(A),R=a.getTotalCodewordsCount(A,k),N=(U-R)*8;for(E.getLengthInBits()+4<=N&&E.put(0,4);E.getLengthInBits()%8!==0;)E.putBit(0);const L=(N-E.getLengthInBits())/8;for(let O=0;O<L;O++)E.put(O%2?17:236,8);return S(E,A,k)}function S(A,k,D){const E=e.getSymbolTotalCodewords(k),U=a.getTotalCodewordsCount(k,D),R=E-U,N=a.getBlocksCount(k,D),L=E%N,O=N-L,X=Math.floor(E/N),de=Math.floor(R/N),G=de+1,q=X-de,ce=new c(q);let se=0;const x=new Array(N),j=new Array(N);let B=0;const Y=new Uint8Array(A.buffer);for(let fe=0;fe<N;fe++){const he=fe<O?de:G;x[fe]=Y.slice(se,se+he),j[fe]=ce.encode(x[fe]),se+=he,B=Math.max(B,he)}const ye=new Uint8Array(E);let ke=0,$,te;for($=0;$<B;$++)for(te=0;te<N;te++)$<x[te].length&&(ye[ke++]=x[te][$]);for($=0;$<q;$++)for(te=0;te<N;te++)ye[ke++]=j[te][$];return ye}function C(A,k,D,E){let U;if(Array.isArray(A))U=f.fromArray(A);else if(typeof A=="string"){let X=k;if(!X){const de=f.rawSplit(A);X=l.getBestVersionForData(de,D)}U=f.fromString(A,X||40)}else throw new Error("Invalid data");const R=l.getBestVersionForData(U,D);if(!R)throw new Error("The amount of data is too big to be stored in a QR Code");if(!k)k=R;else if(k<R)throw new Error(`
10
- The chosen QR Code version cannot contain this amount of data.
11
- Minimum version required to store current data is: `+R+`.
12
- `);const N=T(k,D,U),L=e.getSymbolSize(k),O=new o(L);return h(O,k),p(O),g(O,k),b(O,D,0),k>=7&&v(O,k),w(O,N),isNaN(E)&&(E=r.getBestMask(O,b.bind(null,O,D))),r.applyMask(E,O),b(O,D,E),{modules:O,version:k,errorCorrectionLevel:D,maskPattern:E,segments:U}}return Pn.create=function(k,D){if(typeof k=="undefined"||k==="")throw new Error("No input text");let E=t.M,U,R;return typeof D!="undefined"&&(E=t.from(D.errorCorrectionLevel,t.M),U=l.from(D.version),R=r.from(D.maskPattern),D.toSJISFunc&&e.setToSJISFunction(D.toSJISFunc)),C(k,U,E,R)},Pn}var qn={},Qn={},Ei;function ha(){return Ei||(Ei=1,(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let o=n.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+n);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(i){return[i,i]}))),o.length===6&&o.push("F","F");const s=parseInt(o.join(""),16);return{r:s>>24&255,g:s>>16&255,b:s>>8&255,a:s&255,hex:"#"+o.slice(0,6).join("")}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const s=typeof o.margin=="undefined"||o.margin===null||o.margin<0?4:o.margin,i=o.width&&o.width>=21?o.width:void 0,r=o.scale||4;return{width:i,scale:i?4:r,margin:s,color:{dark:t(o.color.dark||"#000000ff"),light:t(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(o,s){return s.width&&s.width>=o+s.margin*2?s.width/(o+s.margin*2):s.scale},e.getImageWidth=function(o,s){const i=e.getScale(o,s);return Math.floor((o+s.margin*2)*i)},e.qrToImageData=function(o,s,i){const r=s.modules.size,a=s.modules.data,c=e.getScale(r,i),l=Math.floor((r+i.margin*2)*c),d=i.margin*c,u=[i.color.light,i.color.dark];for(let f=0;f<l;f++)for(let h=0;h<l;h++){let p=(f*l+h)*4,g=i.color.light;if(f>=d&&h>=d&&f<l-d&&h<l-d){const v=Math.floor((f-d)/c),b=Math.floor((h-d)/c);g=u[a[v*r+b]?1:0]}o[p++]=g.r,o[p++]=g.g,o[p++]=g.b,o[p]=g.a}}})(Qn)),Qn}var Mi;function td(){return Mi||(Mi=1,(function(e){const t=ha();function n(s,i,r){s.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=r,i.width=r,i.style.height=r+"px",i.style.width=r+"px"}function o(){try{return document.createElement("canvas")}catch(s){throw new Error("You need to specify a canvas element")}}e.render=function(i,r,a){let c=a,l=r;typeof c=="undefined"&&(!r||!r.getContext)&&(c=r,r=void 0),r||(l=o()),c=t.getOptions(c);const d=t.getImageWidth(i.modules.size,c),u=l.getContext("2d"),f=u.createImageData(d,d);return t.qrToImageData(f.data,i,c),n(u,l,d),u.putImageData(f,0,0),l},e.renderToDataURL=function(i,r,a){let c=a;typeof c=="undefined"&&(!r||!r.getContext)&&(c=r,r=void 0),c||(c={});const l=e.render(i,r,c),d=c.type||"image/png",u=c.rendererOpts||{};return l.toDataURL(d,u.quality)}})(qn)),qn}var Jn={},Ui;function nd(){if(Ui)return Jn;Ui=1;const e=ha();function t(s,i){const r=s.a/255,a=i+'="'+s.hex+'"';return r<1?a+" "+i+'-opacity="'+r.toFixed(2).slice(1)+'"':a}function n(s,i,r){let a=s+i;return typeof r!="undefined"&&(a+=" "+r),a}function o(s,i,r){let a="",c=0,l=!1,d=0;for(let u=0;u<s.length;u++){const f=Math.floor(u%i),h=Math.floor(u/i);!f&&!l&&(l=!0),s[u]?(d++,u>0&&f>0&&s[u-1]||(a+=l?n("M",f+r,.5+h+r):n("m",c,0),c=0,l=!1),f+1<i&&s[u+1]||(a+=n("h",d),d=0)):c++}return a}return Jn.render=function(i,r,a){const c=e.getOptions(r),l=i.modules.size,d=i.modules.data,u=l+c.margin*2,f=c.color.light.a?"<path "+t(c.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",h="<path "+t(c.color.dark,"stroke")+' d="'+o(d,l,c.margin)+'"/>',p='viewBox="0 0 '+u+" "+u+'"',v='<svg xmlns="http://www.w3.org/2000/svg" '+(c.width?'width="'+c.width+'" height="'+c.width+'" ':"")+p+' shape-rendering="crispEdges">'+f+h+`</svg>
13
- `;return typeof a=="function"&&a(null,v),v},Jn}var Pi;function od(){if(Pi)return ct;Pi=1;const e=Ol(),t=ed(),n=td(),o=nd();function s(i,r,a,c,l){const d=[].slice.call(arguments,1),u=d.length,f=typeof d[u-1]=="function";if(!f&&!e())throw new Error("Callback required as last argument");if(f){if(u<2)throw new Error("Too few arguments provided");u===2?(l=a,a=r,r=c=void 0):u===3&&(r.getContext&&typeof l=="undefined"?(l=c,c=void 0):(l=c,c=a,a=r,r=void 0))}else{if(u<1)throw new Error("Too few arguments provided");return u===1?(a=r,r=c=void 0):u===2&&!r.getContext&&(c=a,a=r,r=void 0),new Promise(function(h,p){try{const g=t.create(a,c);h(i(g,r,c))}catch(g){p(g)}})}try{const h=t.create(a,c);l(null,i(h,r,c))}catch(h){l(h)}}return ct.create=t.create,ct.toCanvas=s.bind(null,n.render),ct.toDataURL=s.bind(null,n.renderToDataURL),ct.toString=s.bind(null,function(i,r,a){return o.render(i,a)}),ct}var sd=od();const id=Bl(sd);function rd(s,i,r){return ee(this,arguments,function*(e,t,n,o={}){var a,c;try{let l=e;t&&n&&(l=`${t.toLowerCase()}:${e}?amount=${n}`);const d={errorCorrectionLevel:o.errorCorrectionLevel||"M",type:o.type||"image/png",quality:o.quality||.92,margin:o.margin||2,color:{dark:((a=o.color)==null?void 0:a.dark)||"#000000",light:((c=o.color)==null?void 0:c.light)||"#FFFFFF"},width:o.width||256};return yield id.toDataURL(l,d)}catch(l){throw new Error(`Failed to generate QR code: ${l instanceof Error?l.message:"Unknown error"}`)}})}function ad(e){return ee(this,null,function*(){try{if(navigator.clipboard&&window.isSecureContext)return yield navigator.clipboard.writeText(e),!0;{const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-999999px",t.style.top="-999999px",document.body.appendChild(t),t.focus(),t.select();const n=document.execCommand("copy");return document.body.removeChild(t),n}}catch(t){return!1}})}const cd={USD:{code:"USD",name:"US Dollar",symbol:"$",decimals:2,type:"fiat",countryCode:"US",iconUrl:"https://cdn.jsdelivr.net/gh/atomiclabs/cryptocurrency-icons@1a63530be6e374711a8554f31b17e4cb92c25fa5/svg/icon/usd.svg"},BTC:{code:"BTC",name:"Bitcoin",symbol:"₿",decimals:8,type:"crypto",network:"bitcoin",isStablecoin:!1,iconUrl:"https://cdn.jsdelivr.net/gh/atomiclabs/cryptocurrency-icons@1a63530be6e374711a8554f31b17e4cb92c25fa5/svg/icon/btc.svg"},ETH:{code:"ETH",name:"Ethereum",symbol:"Ξ",decimals:18,type:"crypto",network:"ethereum",isStablecoin:!1,iconUrl:"https://cdn.jsdelivr.net/gh/atomiclabs/cryptocurrency-icons@1a63530be6e374711a8554f31b17e4cb92c25fa5/svg/icon/eth.svg"}},ld={bitcoin:{id:"bitcoin",name:"Bitcoin",symbol:"BTC"},ethereum:{id:"ethereum",name:"Ethereum",symbol:"ETH",chainId:1}},dd={BTC:"https://cryptologos.cc/logos/bitcoin-btc-logo.svg",ETH:"https://cryptologos.cc/logos/ethereum-eth-logo.svg",USDC:"https://cryptologos.cc/logos/usd-coin-usdc-logo.svg",USDT:"https://cryptologos.cc/logos/tether-usdt-logo.svg",DAI:"https://cryptologos.cc/logos/multi-collateral-dai-dai-logo.svg",SOL:"https://cryptologos.cc/logos/solana-sol-logo.svg",AVAX:"https://cryptologos.cc/logos/avalanche-avax-logo.svg",MATIC:"https://cryptologos.cc/logos/polygon-matic-logo.svg",BNB:"https://cryptologos.cc/logos/bnb-bnb-logo.svg",UNI:"https://cryptologos.cc/logos/uniswap-uni-logo.svg",LINK:"https://cryptologos.cc/logos/chainlink-link-logo.svg",AAVE:"https://cryptologos.cc/logos/aave-aave-logo.svg",ARB:"https://cryptologos.cc/logos/arbitrum-arb-logo.svg",OP:"https://cryptologos.cc/logos/optimism-ethereum-op-logo.svg",DOGE:"https://cryptologos.cc/logos/dogecoin-doge-logo.svg",XRP:"https://cryptologos.cc/logos/xrp-xrp-logo.svg",ADA:"https://cryptologos.cc/logos/cardano-ada-logo.svg",DOT:"https://cryptologos.cc/logos/polkadot-new-dot-logo.svg"};function ud(e){return dd[e.toUpperCase()]}const fd={coinbase:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIGZpbGw9IiMwMDUyRkYiLz4KPHJlY3QgeD0iOSIgeT0iOSIgd2lkdGg9IjYiIGhlaWdodD0iNiIgcng9IjEiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg==",kraken:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIGZpbGw9IiM1NzQxOUEiLz4KPHBhdGggZD0iTTggN0wxNiA5VjE3TDggMTVWN1oiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg==",binance:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiIGZpbGw9IiNGM0JBMkYiLz4KPHBhdGggZD0iTTEyIDZMMTUgOVYxNUwxMiAxOEw5IDE1VjlMMTIgNloiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg==",gemini:"https://assets.coincap.io/assets/icons/256/gemini.png",kucoin:"https://assets.coincap.io/assets/icons/256/kucoin.png",huobi:"https://assets.coincap.io/assets/icons/256/huobi.png",okx:"https://assets.coincap.io/assets/icons/256/okx.png",gate:"https://assets.coincap.io/assets/icons/256/gate.png",bitfinex:"https://assets.coincap.io/assets/icons/256/bitfinex.png","coinbase-pro":"https://assets.coincap.io/assets/icons/256/coinbase.png","binance-us":"https://assets.coincap.io/assets/icons/256/binance.png"};function hd(e){return fd[e.toLowerCase()]}const pd={ach:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMgN1YxN0gyMVY3SDNaTTQgOEgyMFYxNkg0VjhaTTYgMTBWMTRIOVYxMEg2Wk0xMCAxMFYxMUgxOFYxMEgxMFpNMTAgMTJWMTNIMTVWMTJIMTBaIiBmaWxsPSJjdXJyZW50Q29sb3IiLz4KPC9zdmc+",wire:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDJMMTMuMDkgOC4yNkwyMCA5TDEzLjA5IDE1Ljc0TDEyIDIyTDEwLjkxIDE1Ljc0TDQgOUwxMC45MSA4LjI2TDEyIDJaIiBmaWxsPSJjdXJyZW50Q29sb3IiLz4KPC9zdmc+",sepa:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDRIOEE0IDQgMCAwIDAgNCA4VjE2QTQgNCAwIDAgMCA4IDIwSDE2QTggOCAwIDAgMCAyMCA0Wk04IDZIMTZBMiAyIDAgMCAxIDE4IDhWMTZBNiA2IDAgMCAxIDYgMTBWOEEyIDIgMCAwIDEgOCA2WiIgZmlsbD0iY3VycmVudENvbG9yIi8+Cjwvc3ZnPg==",credit:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDRINEMyLjg5IDQgMiA0Ljg5IDIgNlYxOEMyIDE5LjExIDIuODkgMjAgNCAyMEgyMEMyMS4xMSAyMCAyMiAxOS4xMSAyMiAxOFY2QzIyIDQuODkgMjEuMTEgNCAyMCA0Wk0yMCA2VjhINFY2SDIwWk0yMCAxOEg0VjEwSDIwVjE4WiIgZmlsbD0iY3VycmVudENvbG9yIi8+Cjwvc3ZnPg==",debit:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDRINEMyLjg5IDQgMiA0Ljg5IDIgNlYxOEMyIDE5LjExIDIuODkgMjAgNCAyMEgyMEMyMS4xMSAyMCAyMiAxOS4xMSAyMiAxOFY2QzIyIDQuODkgMjEuMTEgNCAyMCA0Wk0yMCA2VjhINFY2SDIwWk0yMCAxOEg0VjEwSDIwVjE4WiIgZmlsbD0iY3VycmVudENvbG9yIi8+Cjwvc3ZnPg==",paypal:"https://cdn.jsdelivr.net/gh/devicons/devicon/icons/paypal/paypal-original.svg",applepay:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE4Ljc0IDguNDNDMTguNzQgMTEuNTQgMTUuNzQgMTMgMTIuNzQgMTNIMTBWMjBINlYzSDEyLjc0QzE1Ljc0IDMgMTguNzQgNC40NiAxOC43NCA4LjQzWk0xNC41IDguNDNDMTQuNSA2LjY3IDEzLjU5IDUuNzUgMTEuOTggNS43NUgxMFYxMS4yNUgxMS45OEMxMy41OSAxMS4yNSAxNC41IDEwLjMzIDE0LjUgOC40M1oiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L3N2Zz4K",googlepay:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDJDNi40OCAyIDIgNi40OCAyIDEyUzYuNDggMjIgMTIgMjJTMjIgMTcuNTIgMjIgMTJTMTcuNTIgMiAxMiAyWk0xMyAxN0g5VjE1SDE1VjE3SDE3VjE5SDE1VjIxSDEzVjE5SDlWMTVIMTNWMTdaIiBmaWxsPSJjdXJyZW50Q29sb3IiLz4KPC9zdmc+",bank:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMgN1YxN0gyMVY3SDNaTTQgOEgyMFYxNkg0VjhaTTYgMTBWMTRIOVYxMEg2Wk0xMCAxMFYxMUgxOFYxMEgxMFpNMTAgMTJWMTNIMTVWMTJIMTBaIiBmaWxsPSJjdXJyZW50Q29sb3IiLz4KPC9zdmc+",other:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDhDMTMuMSA4IDE0IDcuMSAxNCA2UzEzLjEgNCAxMiA0IDEwIDQuOSAxMCA2UzEwLjkgOCAxMiA4Wk0xMiAxMEMxMC45IDEwIDEwIDEwLjkgMTAgMTJTMTAuOSAxNCAxMiAxNFMxNCAxMy4xIDE0IDEyUzEzLjEgMTAgMTIgMTBaTTEyIDE2QzEwLjkgMTYgMTAgMTYuOSAxMCAxOFMxMC45IDIwIDEyIDIwUzE0IDE5LjEgMTQgMThTMTMuMSAxNiAxMiAxNloiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L3N2Zz4K"};function md(e){return pd[e.toLowerCase()]}var gd={content:{integrations:[{id:"5620bf49-3240-4f85-8b4f-9dd6261597e2",type:"binanceConnect",name:"Binance",networks:[{supportedDevices:["android","ios","web"],supportedTokens:["TUSD","GRT","SHIB","MATIC","QNT","WBTC","AAVE","UNI","SNX","RNDR","SAND","APE","IMX","PAXG","BUSD","LDO","DAI","MKR","USDP","ARB","USDT","USDC","BLUR","LINK","ETH","MANA"],nativeSymbol:"ETH",id:"e3c7fdd8-b1fc-4e51-85ae-bb276e075611",name:"Ethereum",chainId:"1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ethereum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SOL","USDT","USDC"],nativeSymbol:"SOL",id:"0291810a-5947-424d-9a59-e88bb33e999d",name:"Solana",chainId:"101",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Solana.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SNX","OP","USDT","USDC","ETH"],nativeSymbol:"ETH",id:"18fa36b0-88a8-43ca-83db-9a874e0a2288",name:"Optimism",chainId:"10",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Optimism.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX","USDT","USDC"],nativeSymbol:"AVAX",id:"bad16371-c22a-4bf4-a311-274d046cd760",name:"AvalancheC",chainId:"43114",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheC.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX"],nativeSymbol:"AVAX",id:"915f07a3-8a02-40f0-8f9d-b773b81c60a6",name:"AvalancheX",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheX.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SUI"],nativeSymbol:"SUI",id:"0072c6e2-0e76-4265-9ac4-46bad109f599",name:"Sui",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Sui.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["TON","USDT"],nativeSymbol:"TON",id:"3d71a957-740b-4195-a437-389d171f21bb",name:"TON",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/TON.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["APT"],nativeSymbol:"APT",id:"c6427cfd-8ddf-44f1-b400-bc4a5ee190a3",name:"Aptos",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Aptos.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["BTC"],nativeSymbol:"BTC",id:"03dee5da-7398-428f-9ec2-ab41bcb271da",name:"Bitcoin",chainId:"0",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Bitcoin.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ADA"],nativeSymbol:"ADA",id:"9cc3f8db-809a-4d06-a183-34a63a84aca8",name:"Cardano",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Cardano.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ARB","USDT","USDC","ETH"],nativeSymbol:"ETH",id:"a34f2431-0ddd-4de4-bc22-4a8143287aeb",name:"Arbitrum",chainId:"42161",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Arbitrum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDT","USDC","POL"],nativeSymbol:"POL",id:"7436e9d0-ba42-4d2b-b4c0-8e4e606b2c12",name:"Polygon",chainId:"137",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Polygon.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDT","TRX"],nativeSymbol:"TRX",id:"c5dc5d2e-68c1-4261-9a30-90b598738bf5",name:"Tron",chainId:"111",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Tron.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDT","USDC","BNB"],nativeSymbol:"BNB",id:"ed0ebeec-b166-4c8b-8574-cb078f7af8cf",name:"BSC",chainId:"56",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/BinanceSmartChain.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDC","XLM"],nativeSymbol:"XLM",id:"06855704-43d2-4ad2-a73c-372f0c3534e1",name:"Stellar",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Stellar.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDC","ETH"],nativeSymbol:"ETH",id:"aa883b03-120d-477c-a588-37c2afd3ca71",name:"Base",chainId:"8453",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Base.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["DOGE"],nativeSymbol:"DOGE",id:"34b66a94-f9f9-49ef-81e8-6ebd5a866f9d",name:"Dogecoin",chainId:"3",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/DogeChain.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["XRP"],nativeSymbol:"XRP",id:"0ea47ee7-9d36-460e-a2d5-64cfa8a1dddd",name:"Ripple",chainId:"144",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ripple.svg"}],supportsOutgoingTransfers:!0,supportsIncomingTransfers:!1},{id:"9226e5c2-ebc3-4fdd-94f6-ed52cdce1420",type:"binanceInternationalDirect",name:"Binance",networks:[{supportedDevices:["android","ios","web"],supportedTokens:["CAKE","TUSD","GRT","SHIB","QNT","WBTC","AAVE","UNI","SNX","RNDR","SAND","APE","IMX","PAXG","BUSD","LDO","DAI","MKR","USD1","USDP","ARB","USDT","USDC","FDUSD","BLUR","ENA","LINK","ETH","MANA","DEXE","VIRTUAL"],nativeSymbol:"ETH",id:"e3c7fdd8-b1fc-4e51-85ae-bb276e075611",name:"Ethereum",chainId:"1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ethereum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["CAKE","USD1","USDT","USDC","FDUSD","BNB","LTC","DEXE","FORM"],nativeSymbol:"BNB",id:"ed0ebeec-b166-4c8b-8574-cb078f7af8cf",name:"BSC",chainId:"56",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/BinanceSmartChain.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["S"],nativeSymbol:"S",id:"385f0b3a-8471-4b8f-884f-c4f4496f1603",name:"Sonic",chainId:"146",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Sonic.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SOL","WIF","USDT","USDC","FDUSD","FARTCOIN","TRUMP","PENGU"],nativeSymbol:"SOL",id:"0291810a-5947-424d-9a59-e88bb33e999d",name:"Solana",chainId:"101",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Solana.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SNX","OP","USDT","USDC","ETH"],nativeSymbol:"ETH",id:"18fa36b0-88a8-43ca-83db-9a874e0a2288",name:"Optimism",chainId:"10",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Optimism.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX","USDT","USDC"],nativeSymbol:"AVAX",id:"bad16371-c22a-4bf4-a311-274d046cd760",name:"AvalancheC",chainId:"43114",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheC.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX"],nativeSymbol:"AVAX",id:"915f07a3-8a02-40f0-8f9d-b773b81c60a6",name:"AvalancheX",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheX.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["INJ"],nativeSymbol:"INJ",id:"66f6e5ed-5635-44eb-bc92-f4fcdbf66f1a",name:"Injective",chainId:"1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Injective.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SUI","FDUSD"],nativeSymbol:"SUI",id:"0072c6e2-0e76-4265-9ac4-46bad109f599",name:"Sui",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Sui.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["TON","USDT"],nativeSymbol:"TON",id:"3d71a957-740b-4195-a437-389d171f21bb",name:"TON",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/TON.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["APT","USDT"],nativeSymbol:"APT",id:"c6427cfd-8ddf-44f1-b400-bc4a5ee190a3",name:"Aptos",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Aptos.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["DAI","USDT","USDC","POL"],nativeSymbol:"POL",id:"7436e9d0-ba42-4d2b-b4c0-8e4e606b2c12",name:"Polygon",chainId:"137",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Polygon.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["BTC"],nativeSymbol:"BTC",id:"03dee5da-7398-428f-9ec2-ab41bcb271da",name:"Bitcoin",chainId:"0",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Bitcoin.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ADA"],nativeSymbol:"ADA",id:"9cc3f8db-809a-4d06-a183-34a63a84aca8",name:"Cardano",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Cardano.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ARB","USDT","USDC","ETH"],nativeSymbol:"ETH",id:"a34f2431-0ddd-4de4-bc22-4a8143287aeb",name:"Arbitrum",chainId:"42161",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Arbitrum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDT","TRX"],nativeSymbol:"TRX",id:"c5dc5d2e-68c1-4261-9a30-90b598738bf5",name:"Tron",chainId:"111",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Tron.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDC","XLM"],nativeSymbol:"XLM",id:"06855704-43d2-4ad2-a73c-372f0c3534e1",name:"Stellar",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Stellar.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDC","ETH","VIRTUAL"],nativeSymbol:"ETH",id:"aa883b03-120d-477c-a588-37c2afd3ca71",name:"Base",chainId:"8453",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Base.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["DOGE"],nativeSymbol:"DOGE",id:"34b66a94-f9f9-49ef-81e8-6ebd5a866f9d",name:"Dogecoin",chainId:"3",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/DogeChain.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["LTC"],nativeSymbol:"LTC",id:"1709a5dc-d114-4683-bf95-5a5abb54df31",name:"Litecoin",chainId:"2",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Litecoin.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["XRP"],nativeSymbol:"XRP",id:"0ea47ee7-9d36-460e-a2d5-64cfa8a1dddd",name:"Ripple",chainId:"144",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ripple.svg"}],supportsOutgoingTransfers:!0,supportsIncomingTransfers:!0},{id:"8fbd1e9f-f7a5-4151-a36c-531da4865bda",type:"bitfinexDirect",name:"Bitfinex",networks:[{supportedDevices:["android","ios","web"],supportedTokens:["GRT","SHIB","AAVE","UNI","SNX","SAND","APE","LDO","DAI","MKR","USDT","USDC","LINK","ETH"],nativeSymbol:"ETH",id:"e3c7fdd8-b1fc-4e51-85ae-bb276e075611",name:"Ethereum",chainId:"1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ethereum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SOL","USDT"],nativeSymbol:"SOL",id:"0291810a-5947-424d-9a59-e88bb33e999d",name:"Solana",chainId:"101",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Solana.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX"],nativeSymbol:"AVAX",id:"915f07a3-8a02-40f0-8f9d-b773b81c60a6",name:"AvalancheX",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheX.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SUI"],nativeSymbol:"SUI",id:"0072c6e2-0e76-4265-9ac4-46bad109f599",name:"Sui",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Sui.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["APT"],nativeSymbol:"APT",id:"c6427cfd-8ddf-44f1-b400-bc4a5ee190a3",name:"Aptos",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Aptos.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["OP"],nativeSymbol:"ETH",id:"18fa36b0-88a8-43ca-83db-9a874e0a2288",name:"Optimism",chainId:"10",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Optimism.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["BTC"],nativeSymbol:"BTC",id:"03dee5da-7398-428f-9ec2-ab41bcb271da",name:"Bitcoin",chainId:"0",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Bitcoin.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ADA"],nativeSymbol:"ADA",id:"9cc3f8db-809a-4d06-a183-34a63a84aca8",name:"Cardano",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Cardano.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ARB"],nativeSymbol:"ETH",id:"a34f2431-0ddd-4de4-bc22-4a8143287aeb",name:"Arbitrum",chainId:"42161",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Arbitrum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDT","POL"],nativeSymbol:"POL",id:"7436e9d0-ba42-4d2b-b4c0-8e4e606b2c12",name:"Polygon",chainId:"137",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Polygon.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDT","TRX"],nativeSymbol:"TRX",id:"c5dc5d2e-68c1-4261-9a30-90b598738bf5",name:"Tron",chainId:"111",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Tron.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["DOGE"],nativeSymbol:"DOGE",id:"34b66a94-f9f9-49ef-81e8-6ebd5a866f9d",name:"Dogecoin",chainId:"3",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/DogeChain.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["XLM"],nativeSymbol:"XLM",id:"06855704-43d2-4ad2-a73c-372f0c3534e1",name:"Stellar",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Stellar.svg"}],supportsOutgoingTransfers:!0,supportsIncomingTransfers:!0},{id:"468b6075-697c-4f4b-8f7f-1f62b097c43f",type:"btcTurkDirect",name:"BtcTurk",networks:[{supportedDevices:["android","ios","web"],supportedTokens:["GRT","SHIB","QNT","AAVE","UNI","SNX","RNDR","SAND","APE","IMX","INJ","PAXG","LDO","MKR","USDT","USDC","LINK","ETH","MANA"],nativeSymbol:"ETH",id:"e3c7fdd8-b1fc-4e51-85ae-bb276e075611",name:"Ethereum",chainId:"1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ethereum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SOL","USDC"],nativeSymbol:"SOL",id:"0291810a-5947-424d-9a59-e88bb33e999d",name:"Solana",chainId:"101",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Solana.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX","USDT"],nativeSymbol:"AVAX",id:"bad16371-c22a-4bf4-a311-274d046cd760",name:"AvalancheC",chainId:"43114",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheC.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX"],nativeSymbol:"AVAX",id:"915f07a3-8a02-40f0-8f9d-b773b81c60a6",name:"AvalancheX",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheX.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["APT"],nativeSymbol:"APT",id:"c6427cfd-8ddf-44f1-b400-bc4a5ee190a3",name:"Aptos",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Aptos.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["BTC"],nativeSymbol:"BTC",id:"03dee5da-7398-428f-9ec2-ab41bcb271da",name:"Bitcoin",chainId:"0",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Bitcoin.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ADA"],nativeSymbol:"ADA",id:"9cc3f8db-809a-4d06-a183-34a63a84aca8",name:"Cardano",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Cardano.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ARB","ETH"],nativeSymbol:"ETH",id:"a34f2431-0ddd-4de4-bc22-4a8143287aeb",name:"Arbitrum",chainId:"42161",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Arbitrum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDT","TRX"],nativeSymbol:"TRX",id:"c5dc5d2e-68c1-4261-9a30-90b598738bf5",name:"Tron",chainId:"111",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Tron.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["DOGE"],nativeSymbol:"DOGE",id:"34b66a94-f9f9-49ef-81e8-6ebd5a866f9d",name:"Dogecoin",chainId:"3",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/DogeChain.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["XLM"],nativeSymbol:"XLM",id:"06855704-43d2-4ad2-a73c-372f0c3534e1",name:"Stellar",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Stellar.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["XRP"],nativeSymbol:"XRP",id:"0ea47ee7-9d36-460e-a2d5-64cfa8a1dddd",name:"Ripple",chainId:"144",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ripple.svg"}],supportsOutgoingTransfers:!0,supportsIncomingTransfers:!0},{id:"a8a568fc-45eb-4b9a-b04f-c77a2cf6662c",type:"bybitDirect",name:"Bybit",networks:[{supportedDevices:["android","ios","web"],supportedTokens:["CAKE","USD1","USDT","USDC","BNB"],nativeSymbol:"BNB",id:"ed0ebeec-b166-4c8b-8574-cb078f7af8cf",name:"BSC",chainId:"56",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/BinanceSmartChain.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["TUSD","GRT","SHIB","QNT","WBTC","AAVE","UNI","SNX","SAND","APE","IMX","INJ","PAXG","LDO","DAI","MKR","USD1","USDT","USDC","BLUR","MNT","ENA","LINK","ETH","PYUSD","POL","MANA"],nativeSymbol:"ETH",id:"e3c7fdd8-b1fc-4e51-85ae-bb276e075611",name:"Ethereum",chainId:"1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ethereum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["S"],nativeSymbol:"S",id:"385f0b3a-8471-4b8f-884f-c4f4496f1603",name:"Sonic",chainId:"146",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Sonic.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SOL","WIF","USDT","USDC","TRUMP","PYUSD","PENGU"],nativeSymbol:"SOL",id:"0291810a-5947-424d-9a59-e88bb33e999d",name:"Solana",chainId:"101",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Solana.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX","USDT","USDC"],nativeSymbol:"AVAX",id:"bad16371-c22a-4bf4-a311-274d046cd760",name:"AvalancheC",chainId:"43114",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheC.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX"],nativeSymbol:"AVAX",id:"915f07a3-8a02-40f0-8f9d-b773b81c60a6",name:"AvalancheX",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheX.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SUI"],nativeSymbol:"SUI",id:"0072c6e2-0e76-4265-9ac4-46bad109f599",name:"Sui",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Sui.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["TON","USDT"],nativeSymbol:"TON",id:"3d71a957-740b-4195-a437-389d171f21bb",name:"TON",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/TON.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["APT","USDT","USDC"],nativeSymbol:"APT",id:"c6427cfd-8ddf-44f1-b400-bc4a5ee190a3",name:"Aptos",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Aptos.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["OP","USDT","USDC","ETH"],nativeSymbol:"ETH",id:"18fa36b0-88a8-43ca-83db-9a874e0a2288",name:"Optimism",chainId:"10",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Optimism.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["BTC"],nativeSymbol:"BTC",id:"03dee5da-7398-428f-9ec2-ab41bcb271da",name:"Bitcoin",chainId:"0",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Bitcoin.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ADA"],nativeSymbol:"ADA",id:"9cc3f8db-809a-4d06-a183-34a63a84aca8",name:"Cardano",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Cardano.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ARB","USDT","USDC","ETH"],nativeSymbol:"ETH",id:"a34f2431-0ddd-4de4-bc22-4a8143287aeb",name:"Arbitrum",chainId:"42161",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Arbitrum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDT","USDC","POL"],nativeSymbol:"POL",id:"7436e9d0-ba42-4d2b-b4c0-8e4e606b2c12",name:"Polygon",chainId:"137",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Polygon.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDT","TRX"],nativeSymbol:"TRX",id:"c5dc5d2e-68c1-4261-9a30-90b598738bf5",name:"Tron",chainId:"111",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Tron.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDC","ETH","VIRTUAL"],nativeSymbol:"ETH",id:"aa883b03-120d-477c-a588-37c2afd3ca71",name:"Base",chainId:"8453",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Base.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["DOGE"],nativeSymbol:"DOGE",id:"34b66a94-f9f9-49ef-81e8-6ebd5a866f9d",name:"Dogecoin",chainId:"3",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/DogeChain.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["BLAST"],nativeSymbol:"ETH",id:"0c17e03f-77fa-4644-b84c-eb247af8c4c1",name:"Blast",chainId:"81457",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Blast.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["LTC"],nativeSymbol:"LTC",id:"1709a5dc-d114-4683-bf95-5a5abb54df31",name:"Litecoin",chainId:"2",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Litecoin.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["XLM"],nativeSymbol:"XLM",id:"06855704-43d2-4ad2-a73c-372f0c3534e1",name:"Stellar",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Stellar.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["XRP"],nativeSymbol:"XRP",id:"0ea47ee7-9d36-460e-a2d5-64cfa8a1dddd",name:"Ripple",chainId:"144",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ripple.svg"}],supportsOutgoingTransfers:!0,supportsIncomingTransfers:!0},{id:"9f7a2b1e-2a45-4f7e-8a03-1b2e6c8a9f4d",type:"bybitPay",name:"BybitPay",networks:[{supportedDevices:["android","ios","web"],supportedTokens:["USDT"],nativeSymbol:"ETH",id:"e3c7fdd8-b1fc-4e51-85ae-bb276e075611",name:"Ethereum",chainId:"1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ethereum.svg"}],supportsOutgoingTransfers:!0,supportsIncomingTransfers:!1},{id:"47624467-e52e-4938-a41a-7926b6c27acf",type:"coinbase",name:"Coinbase",networks:[{supportedDevices:["android","ios","web"],supportedTokens:["CAKE","GRT","SHIB","QNT","WBTC","AAVE","UNI","SNX","CRO","RNDR","SAND","APE","IMX","INJ","LDO","DAI","MKR","USDT","USDC","EURC","BLUR","ENA","LINK","ETH","PYUSD"],nativeSymbol:"ETH",id:"e3c7fdd8-b1fc-4e51-85ae-bb276e075611",name:"Ethereum",chainId:"1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ethereum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SOL","WIF","USDC","EURC","FARTCOIN","TRUMP","PYUSD","PENGU"],nativeSymbol:"SOL",id:"0291810a-5947-424d-9a59-e88bb33e999d",name:"Solana",chainId:"101",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Solana.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX","DAI","USDC"],nativeSymbol:"AVAX",id:"bad16371-c22a-4bf4-a311-274d046cd760",name:"AvalancheC",chainId:"43114",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheC.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SUI"],nativeSymbol:"SUI",id:"0072c6e2-0e76-4265-9ac4-46bad109f599",name:"Sui",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Sui.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["APT","USDC"],nativeSymbol:"APT",id:"c6427cfd-8ddf-44f1-b400-bc4a5ee190a3",name:"Aptos",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Aptos.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["OP","DAI","USDC","ETH"],nativeSymbol:"ETH",id:"18fa36b0-88a8-43ca-83db-9a874e0a2288",name:"Optimism",chainId:"10",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Optimism.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["DAI","ARB","USDC","ETH"],nativeSymbol:"ETH",id:"a34f2431-0ddd-4de4-bc22-4a8143287aeb",name:"Arbitrum",chainId:"42161",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Arbitrum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["BTC"],nativeSymbol:"BTC",id:"03dee5da-7398-428f-9ec2-ab41bcb271da",name:"Bitcoin",chainId:"0",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Bitcoin.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ADA"],nativeSymbol:"ADA",id:"9cc3f8db-809a-4d06-a183-34a63a84aca8",name:"Cardano",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Cardano.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDC","EURC","ETH"],nativeSymbol:"ETH",id:"aa883b03-120d-477c-a588-37c2afd3ca71",name:"Base",chainId:"8453",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Base.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDC","POL"],nativeSymbol:"POL",id:"7436e9d0-ba42-4d2b-b4c0-8e4e606b2c12",name:"Polygon",chainId:"137",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Polygon.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["DOGE"],nativeSymbol:"DOGE",id:"34b66a94-f9f9-49ef-81e8-6ebd5a866f9d",name:"Dogecoin",chainId:"3",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/DogeChain.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["MON"],nativeSymbol:"MON",id:"6b5ced13-aaa4-4fda-b95a-27c7c68c2601",name:"Monad",chainId:"143",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Monad.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["BLAST"],nativeSymbol:"ETH",id:"0c17e03f-77fa-4644-b84c-eb247af8c4c1",name:"Blast",chainId:"81457",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Blast.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["XLM"],nativeSymbol:"XLM",id:"06855704-43d2-4ad2-a73c-372f0c3534e1",name:"Stellar",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Stellar.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["XRP"],nativeSymbol:"XRP",id:"0ea47ee7-9d36-460e-a2d5-64cfa8a1dddd",name:"Ripple",chainId:"144",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ripple.svg"}],supportsOutgoingTransfers:!0,supportsIncomingTransfers:!0},{id:"5d05b386-4ddf-475b-a9c6-8b8b0d38df02",type:"coinbaseRamp",name:"Coinbase",networks:[{supportedDevices:["android","ios","web"],supportedTokens:["JTO","SOL","MNDE","BONK","USDC","PYUSD","HONEY","ORCA","RENDER","FIDA"],nativeSymbol:"SOL",id:"0291810a-5947-424d-9a59-e88bb33e999d",name:"Solana",chainId:"101",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Solana.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["FIS","NCT","GRT","SHIB","MATIC","QNT","AAVE","UNI","SNX","CRO","RNDR","SAND","APE","IMX","INJ","PAXG","LDO","FORT","INDEX","ZETA","PAX","STRK","DAI","MKR","MLN","GHST","MUSE","USDT","KNC","AIOZ","ZRX","USDC","WAXL","AURORA","LSETH","ELA","BNT","POWR","BLUR","STORJ","INV","SWFTC","DEXT","GFI","PLU","BAT","WCFG","LRDS","LINK","ONDO","ETH","METIS","PYUSD","GODS","CVC","TIME","POL","LRC","RAD","RLC","MANA","PRIME"],nativeSymbol:"ETH",id:"e3c7fdd8-b1fc-4e51-85ae-bb276e075611",name:"Ethereum",chainId:"1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ethereum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["UNI","SEAM","GHST","KNC","ZRX","USDC","LRDS","ETH"],nativeSymbol:"ETH",id:"aa883b03-120d-477c-a588-37c2afd3ca71",name:"Base",chainId:"8453",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Base.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX","DAI","USDC","ETH","PNG"],nativeSymbol:"AVAX",id:"bad16371-c22a-4bf4-a311-274d046cd760",name:"AvalancheC",chainId:"43114",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheC.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SUI","USDC"],nativeSymbol:"SUI",id:"0072c6e2-0e76-4265-9ac4-46bad109f599",name:"Sui",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Sui.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["APT","USDC"],nativeSymbol:"APT",id:"c6427cfd-8ddf-44f1-b400-bc4a5ee190a3",name:"Aptos",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Aptos.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["OP","DAI","USDC","ETH"],nativeSymbol:"ETH",id:"18fa36b0-88a8-43ca-83db-9a874e0a2288",name:"Optimism",chainId:"10",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Optimism.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["DAI","ARB","USDC","ETH"],nativeSymbol:"ETH",id:"a34f2431-0ddd-4de4-bc22-4a8143287aeb",name:"Arbitrum",chainId:"42161",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Arbitrum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["BTC"],nativeSymbol:"BTC",id:"03dee5da-7398-428f-9ec2-ab41bcb271da",name:"Bitcoin",chainId:"0",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Bitcoin.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDC"],nativeSymbol:"XLM",id:"06855704-43d2-4ad2-a73c-372f0c3534e1",name:"Stellar",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Stellar.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDC","ETH","POL"],nativeSymbol:"POL",id:"7436e9d0-ba42-4d2b-b4c0-8e4e606b2c12",name:"Polygon",chainId:"137",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Polygon.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["DOGE"],nativeSymbol:"DOGE",id:"34b66a94-f9f9-49ef-81e8-6ebd5a866f9d",name:"Dogecoin",chainId:"3",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/DogeChain.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["BLAST"],nativeSymbol:"ETH",id:"0c17e03f-77fa-4644-b84c-eb247af8c4c1",name:"Blast",chainId:"81457",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Blast.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["LTC"],nativeSymbol:"LTC",id:"1709a5dc-d114-4683-bf95-5a5abb54df31",name:"Litecoin",chainId:"2",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Litecoin.svg"}],supportsOutgoingTransfers:!0,supportsIncomingTransfers:!1},{id:"16f021b0-f220-4bbb-aa3b-82d423301957",type:"krakenDirect",name:"Kraken",networks:[{supportedDevices:["android","ios","web"],supportedTokens:["S"],nativeSymbol:"S",id:"385f0b3a-8471-4b8f-884f-c4f4496f1603",name:"Sonic",chainId:"146",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Sonic.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["GRT","SHIB","QNT","WBTC","AAVE","UNI","SNX","CRO","RNDR","SAND","APE","IMX","PAXG","LDO","DAI","MKR","USDT","USDC","MNT","LINK","ETH","PYUSD","MANA"],nativeSymbol:"ETH",id:"e3c7fdd8-b1fc-4e51-85ae-bb276e075611",name:"Ethereum",chainId:"1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ethereum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["MATIC","USDT","USDC","POL"],nativeSymbol:"POL",id:"7436e9d0-ba42-4d2b-b4c0-8e4e606b2c12",name:"Polygon",chainId:"137",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Polygon.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SOL","USDT","USDC"],nativeSymbol:"SOL",id:"0291810a-5947-424d-9a59-e88bb33e999d",name:"Solana",chainId:"101",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Solana.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SNX","OP","USDT","USDC","ETH"],nativeSymbol:"ETH",id:"18fa36b0-88a8-43ca-83db-9a874e0a2288",name:"Optimism",chainId:"10",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Optimism.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX","USDT","USDC"],nativeSymbol:"AVAX",id:"bad16371-c22a-4bf4-a311-274d046cd760",name:"AvalancheC",chainId:"43114",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheC.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SUI","USDC"],nativeSymbol:"SUI",id:"0072c6e2-0e76-4265-9ac4-46bad109f599",name:"Sui",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Sui.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["TON"],nativeSymbol:"TON",id:"3d71a957-740b-4195-a437-389d171f21bb",name:"TON",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/TON.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["APT"],nativeSymbol:"APT",id:"c6427cfd-8ddf-44f1-b400-bc4a5ee190a3",name:"Aptos",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Aptos.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["DAI","ARB","USDT","USDC","ETH"],nativeSymbol:"ETH",id:"a34f2431-0ddd-4de4-bc22-4a8143287aeb",name:"Arbitrum",chainId:"42161",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Arbitrum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["BTC"],nativeSymbol:"BTC",id:"03dee5da-7398-428f-9ec2-ab41bcb271da",name:"Bitcoin",chainId:"0",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Bitcoin.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ADA"],nativeSymbol:"ADA",id:"9cc3f8db-809a-4d06-a183-34a63a84aca8",name:"Cardano",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Cardano.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDT","USDC","TRX"],nativeSymbol:"TRX",id:"c5dc5d2e-68c1-4261-9a30-90b598738bf5",name:"Tron",chainId:"111",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Tron.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDC","ETH"],nativeSymbol:"ETH",id:"aa883b03-120d-477c-a588-37c2afd3ca71",name:"Base",chainId:"8453",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Base.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["DOGE"],nativeSymbol:"DOGE",id:"34b66a94-f9f9-49ef-81e8-6ebd5a866f9d",name:"Dogecoin",chainId:"3",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/DogeChain.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["MON"],nativeSymbol:"MON",id:"6b5ced13-aaa4-4fda-b95a-27c7c68c2601",name:"Monad",chainId:"143",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Monad.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["BNB"],nativeSymbol:"BNB",id:"ed0ebeec-b166-4c8b-8574-cb078f7af8cf",name:"BSC",chainId:"56",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/BinanceSmartChain.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["LTC"],nativeSymbol:"LTC",id:"1709a5dc-d114-4683-bf95-5a5abb54df31",name:"Litecoin",chainId:"2",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Litecoin.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["XLM"],nativeSymbol:"XLM",id:"06855704-43d2-4ad2-a73c-372f0c3534e1",name:"Stellar",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Stellar.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["XRP"],nativeSymbol:"XRP",id:"0ea47ee7-9d36-460e-a2d5-64cfa8a1dddd",name:"Ripple",chainId:"144",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ripple.svg"}],supportsOutgoingTransfers:!0,supportsIncomingTransfers:!0},{id:"487b6bc9-aeac-406c-bc18-f7a7dd861d6d",type:"paribuOAuth",name:"Paribu",networks:[{supportedDevices:["android","ios","web"],supportedTokens:["S"],nativeSymbol:"S",id:"385f0b3a-8471-4b8f-884f-c4f4496f1603",name:"Sonic",chainId:"146",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Sonic.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["GRT","SHIB","QNT","AAVE","UNI","SNX","RNDR","FTM","SAND","APE","IMX","INJ","MKR","USDT","USDC","LINK","ETH","POL","MANA"],nativeSymbol:"ETH",id:"e3c7fdd8-b1fc-4e51-85ae-bb276e075611",name:"Ethereum",chainId:"1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ethereum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SOL"],nativeSymbol:"SOL",id:"0291810a-5947-424d-9a59-e88bb33e999d",name:"Solana",chainId:"101",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Solana.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX"],nativeSymbol:"AVAX",id:"bad16371-c22a-4bf4-a311-274d046cd760",name:"AvalancheC",chainId:"43114",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheC.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX"],nativeSymbol:"AVAX",id:"915f07a3-8a02-40f0-8f9d-b773b81c60a6",name:"AvalancheX",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheX.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SUI"],nativeSymbol:"SUI",id:"0072c6e2-0e76-4265-9ac4-46bad109f599",name:"Sui",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Sui.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["TON"],nativeSymbol:"TON",id:"3d71a957-740b-4195-a437-389d171f21bb",name:"TON",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/TON.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["APT"],nativeSymbol:"APT",id:"c6427cfd-8ddf-44f1-b400-bc4a5ee190a3",name:"Aptos",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Aptos.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["OP"],nativeSymbol:"ETH",id:"18fa36b0-88a8-43ca-83db-9a874e0a2288",name:"Optimism",chainId:"10",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Optimism.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["BTC"],nativeSymbol:"BTC",id:"03dee5da-7398-428f-9ec2-ab41bcb271da",name:"Bitcoin",chainId:"0",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Bitcoin.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ADA"],nativeSymbol:"ADA",id:"9cc3f8db-809a-4d06-a183-34a63a84aca8",name:"Cardano",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Cardano.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ARB","USDT"],nativeSymbol:"ETH",id:"a34f2431-0ddd-4de4-bc22-4a8143287aeb",name:"Arbitrum",chainId:"42161",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Arbitrum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDT","TRX"],nativeSymbol:"TRX",id:"c5dc5d2e-68c1-4261-9a30-90b598738bf5",name:"Tron",chainId:"111",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Tron.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["DOGE"],nativeSymbol:"DOGE",id:"34b66a94-f9f9-49ef-81e8-6ebd5a866f9d",name:"Dogecoin",chainId:"3",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/DogeChain.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["XLM"],nativeSymbol:"XLM",id:"06855704-43d2-4ad2-a73c-372f0c3534e1",name:"Stellar",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Stellar.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["XRP"],nativeSymbol:"XRP",id:"0ea47ee7-9d36-460e-a2d5-64cfa8a1dddd",name:"Ripple",chainId:"144",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ripple.svg"}],supportsOutgoingTransfers:!0,supportsIncomingTransfers:!0},{id:"6e192ebb-a073-4055-bbd7-d644539c9a20",type:"robinhood",name:"Robinhood",networks:[{supportedDevices:["android","ios","web"],supportedTokens:["SHIB","AAVE","UNI","USDC","LINK","ETH"],nativeSymbol:"ETH",id:"e3c7fdd8-b1fc-4e51-85ae-bb276e075611",name:"Ethereum",chainId:"1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ethereum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX"],nativeSymbol:"AVAX",id:"bad16371-c22a-4bf4-a311-274d046cd760",name:"AvalancheC",chainId:"43114",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheC.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["BTC"],nativeSymbol:"BTC",id:"03dee5da-7398-428f-9ec2-ab41bcb271da",name:"Bitcoin",chainId:"0",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Bitcoin.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ARB","USDC"],nativeSymbol:"ETH",id:"a34f2431-0ddd-4de4-bc22-4a8143287aeb",name:"Arbitrum",chainId:"42161",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Arbitrum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDC"],nativeSymbol:"ETH",id:"aa883b03-120d-477c-a588-37c2afd3ca71",name:"Base",chainId:"8453",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Base.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDC"],nativeSymbol:"POL",id:"7436e9d0-ba42-4d2b-b4c0-8e4e606b2c12",name:"Polygon",chainId:"137",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Polygon.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDC"],nativeSymbol:"ETH",id:"18fa36b0-88a8-43ca-83db-9a874e0a2288",name:"Optimism",chainId:"10",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Optimism.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDC"],nativeSymbol:"SOL",id:"0291810a-5947-424d-9a59-e88bb33e999d",name:"Solana",chainId:"101",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Solana.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["DOGE"],nativeSymbol:"DOGE",id:"34b66a94-f9f9-49ef-81e8-6ebd5a866f9d",name:"Dogecoin",chainId:"3",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/DogeChain.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["XLM"],nativeSymbol:"XLM",id:"06855704-43d2-4ad2-a73c-372f0c3534e1",name:"Stellar",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Stellar.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["XRP"],nativeSymbol:"XRP",id:"0ea47ee7-9d36-460e-a2d5-64cfa8a1dddd",name:"Ripple",chainId:"144",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ripple.svg"}],supportsOutgoingTransfers:!0,supportsIncomingTransfers:!0},{id:"721a5035-029f-4e05-bf3c-009da2fe381b",type:"sandboxCoinbase",name:"SandboxCoinbase",networks:[{supportedDevices:["android","ios","web"],supportedTokens:["CAKE","TUSD","GRT","SHIB","MATIC","QNT","WBTC","AAVE","UNI","SNX","RNDR","FTM","SAND","APE","IMX","PAXG","BUSD","LDO","DAI","MKR","USD1","USDP","ARB","USDT","USDC","FDUSD","BLUR","ENA","LINK","ETH","PYUSD","MANA","DEXE","VIRTUAL"],nativeSymbol:"ETH",id:"e3c7fdd8-b1fc-4e51-85ae-bb276e075611",name:"Ethereum",chainId:"1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ethereum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["CAKE","USD1","USDT","USDC","FDUSD","BNB","LTC","DEXE","FORM"],nativeSymbol:"BNB",id:"ed0ebeec-b166-4c8b-8574-cb078f7af8cf",name:"BSC",chainId:"56",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/BinanceSmartChain.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["S"],nativeSymbol:"S",id:"385f0b3a-8471-4b8f-884f-c4f4496f1603",name:"Sonic",chainId:"146",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Sonic.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SOL","WIF","USDT","USDC","FDUSD","FARTCOIN","TRUMP","PYUSD","PENGU"],nativeSymbol:"SOL",id:"0291810a-5947-424d-9a59-e88bb33e999d",name:"Solana",chainId:"101",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Solana.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SNX","OP","USDT","USDC","ETH"],nativeSymbol:"ETH",id:"18fa36b0-88a8-43ca-83db-9a874e0a2288",name:"Optimism",chainId:"10",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Optimism.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX","USDT","USDC"],nativeSymbol:"AVAX",id:"bad16371-c22a-4bf4-a311-274d046cd760",name:"AvalancheC",chainId:"43114",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheC.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["AVAX"],nativeSymbol:"AVAX",id:"915f07a3-8a02-40f0-8f9d-b773b81c60a6",name:"AvalancheX",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheX.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["INJ"],nativeSymbol:"INJ",id:"66f6e5ed-5635-44eb-bc92-f4fcdbf66f1a",name:"Injective",chainId:"1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Injective.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["SUI","FDUSD"],nativeSymbol:"SUI",id:"0072c6e2-0e76-4265-9ac4-46bad109f599",name:"Sui",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Sui.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["TON","USDT"],nativeSymbol:"TON",id:"3d71a957-740b-4195-a437-389d171f21bb",name:"TON",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/TON.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["APT","USDT"],nativeSymbol:"APT",id:"c6427cfd-8ddf-44f1-b400-bc4a5ee190a3",name:"Aptos",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Aptos.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["DAI","USDT","USDC","POL"],nativeSymbol:"POL",id:"7436e9d0-ba42-4d2b-b4c0-8e4e606b2c12",name:"Polygon",chainId:"137",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Polygon.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["BTC"],nativeSymbol:"BTC",id:"03dee5da-7398-428f-9ec2-ab41bcb271da",name:"Bitcoin",chainId:"0",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Bitcoin.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ADA"],nativeSymbol:"ADA",id:"9cc3f8db-809a-4d06-a183-34a63a84aca8",name:"Cardano",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Cardano.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["ARB","USDT","USDC","ETH"],nativeSymbol:"ETH",id:"a34f2431-0ddd-4de4-bc22-4a8143287aeb",name:"Arbitrum",chainId:"42161",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Arbitrum.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDT","USDC","TRX"],nativeSymbol:"TRX",id:"c5dc5d2e-68c1-4261-9a30-90b598738bf5",name:"Tron",chainId:"111",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Tron.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDC","XLM"],nativeSymbol:"XLM",id:"06855704-43d2-4ad2-a73c-372f0c3534e1",name:"Stellar",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Stellar.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["USDC","ETH","VIRTUAL"],nativeSymbol:"ETH",id:"aa883b03-120d-477c-a588-37c2afd3ca71",name:"Base",chainId:"8453",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Base.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["DOGE"],nativeSymbol:"DOGE",id:"34b66a94-f9f9-49ef-81e8-6ebd5a866f9d",name:"Dogecoin",chainId:"3",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/DogeChain.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["BLAST"],nativeSymbol:"ETH",id:"0c17e03f-77fa-4644-b84c-eb247af8c4c1",name:"Blast",chainId:"81457",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Blast.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["LTC"],nativeSymbol:"LTC",id:"1709a5dc-d114-4683-bf95-5a5abb54df31",name:"Litecoin",chainId:"2",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Litecoin.svg"},{supportedDevices:["android","ios","web"],supportedTokens:["XRP"],nativeSymbol:"XRP",id:"0ea47ee7-9d36-460e-a2d5-64cfa8a1dddd",name:"Ripple",chainId:"144",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ripple.svg"}],supportsOutgoingTransfers:!0,supportsIncomingTransfers:!0},{id:"757e703f-a8fe-4dc4-d0ec-08dc6737ad96",type:"deFiWallet",name:"Phantom",networks:[{supportedDevices:["web"],supportedTokens:["DEVNETSOL","USDG","PYUSD"],nativeSymbol:"DEVNETSOL",id:"b7387cd9-2f47-4e4d-bc7b-d44e61d58210",name:"SolanaDevnet",chainId:"103",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Solana.svg"}],supportsOutgoingTransfers:!0,supportsIncomingTransfers:!0},{id:"8a60d227-2825-4158-b14b-3c8443a2b681",type:"deFiWallet",name:"Rainbow",networks:[],supportsOutgoingTransfers:!0,supportsIncomingTransfers:!0},{id:"34aeb688-decb-485f-9d80-b66466783394",type:"deFiWallet",name:"MetaMask",networks:[{supportedDevices:["android","ios","web"],supportedTokens:["SEPOLIAETH","USDG","PYUSD"],nativeSymbol:"SEPOLIAETH",id:"03b2d786-7092-4a6a-9737-d6013e21819b",name:"Sepolia",chainId:"11155111",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ethereum.svg"}],supportsOutgoingTransfers:!0,supportsIncomingTransfers:!0}]},status:"ok",message:"",errorHash:"41f47591",errorType:""},bd={content:{networks:[{networkType:"evm",tokens:[{symbol:"AVAX",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/AVAX.svg"},{symbol:"DAI",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/DAI.svg"},{symbol:"EURC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/EURC.svg"},{symbol:"USDC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDC.svg"},{symbol:"USDT",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDT.svg"},{symbol:"WAVAX"}],supportedBrokerTypes:["robinhood","coinbase","binanceUs","binanceInternational","okx","huobi","krakenDirect","binanceInternationalDirect","bybit","coinbasePrime","btcTurkDirect","paribuDirect","binanceConnect","bybitDirect","paribuOAuth","coinbaseRamp","sandbox","uphold","sandboxCoinbase"],supportedTokens:["AVAX","DAI","EURC","USDC","USDT","WAVAX"],nativeSymbol:"AVAX",id:"bad16371-c22a-4bf4-a311-274d046cd760",name:"AvalancheC",chainId:"43114",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheC.svg"},{networkType:"evm",tokens:[{symbol:"MON",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/MON.svg"},{symbol:"USDC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDC.svg"}],supportedBrokerTypes:["coinbase","krakenDirect"],supportedTokens:["MON","USDC"],nativeSymbol:"MON",id:"6b5ced13-aaa4-4fda-b95a-27c7c68c2601",name:"Monad",chainId:"143",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Monad.svg"},{networkType:"cardano",tokens:[{symbol:"ADA",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/ADA.svg"}],supportedBrokerTypes:["coinbase","binanceUs","binanceInternational","okx","huobi","krakenDirect","binanceInternationalDirect","bitfinexDirect","bybit","coinbasePrime","btcTurkDirect","binanceConnect","revolutConnect","bybitDirect","paribuOAuth","sandbox","uphold","sandboxCoinbase"],supportedTokens:["ADA"],nativeSymbol:"ADA",id:"9cc3f8db-809a-4d06-a183-34a63a84aca8",name:"Cardano",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Cardano.svg"},{networkType:"stellar",tokens:[{symbol:"EURC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/EURC.svg"},{symbol:"USDC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDC.svg"},{symbol:"XLM",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/XLM.svg"}],supportedBrokerTypes:["robinhood","coinbase","binanceUs","binanceInternational","huobi","krakenDirect","binanceInternationalDirect","bitfinexDirect","bybit","btcTurkDirect","binanceConnect","revolutConnect","bybitDirect","paribuOAuth","coinbaseRamp","sandbox","uphold","sandboxCoinbase"],supportedTokens:["EURC","USDC","XLM"],nativeSymbol:"XLM",id:"06855704-43d2-4ad2-a73c-372f0c3534e1",name:"Stellar",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Stellar.svg"},{networkType:"evm",tokens:[{symbol:"ETH",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/ETH.svg"},{symbol:"EURC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/EURC.svg"},{symbol:"USDC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDC.svg"},{symbol:"VIRTUAL",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/VIRTUAL.svg"},{symbol:"WETH",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/WETH.svg"}],supportedBrokerTypes:["robinhood","coinbase","binanceInternational","krakenDirect","binanceInternationalDirect","binanceConnect","bybitDirect","coinbaseRamp","sandbox","uphold","sandboxCoinbase"],supportedTokens:["ETH","EURC","USDC","VIRTUAL","WETH"],nativeSymbol:"ETH",id:"aa883b03-120d-477c-a588-37c2afd3ca71",name:"Base",chainId:"8453",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Base.svg"},{networkType:"tvm",tokens:[{symbol:"TON",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/TON.svg"},{symbol:"USDT",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDT.svg"}],supportedBrokerTypes:["binanceInternational","krakenDirect","binanceInternationalDirect","binanceConnect","bybitDirect","paribuOAuth","sandbox","sandboxCoinbase"],supportedTokens:["TON","USDT"],nativeSymbol:"TON",id:"3d71a957-740b-4195-a437-389d171f21bb",name:"TON",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/TON.svg"},{networkType:"sui",tokens:[{symbol:"FDUSD",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/FDUSD.svg"},{symbol:"SUI",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/SUI.svg"},{symbol:"USDC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDC.svg"},{symbol:"USDT",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDT.svg"}],supportedBrokerTypes:["coinbase","binanceUs","binanceInternational","okx","huobi","krakenDirect","binanceInternationalDirect","bitfinexDirect","bybit","binanceConnect","bybitDirect","paribuOAuth","coinbaseRamp","sandbox","uphold","sandboxCoinbase"],supportedTokens:["FDUSD","SUI","USDC","USDT"],nativeSymbol:"SUI",id:"0072c6e2-0e76-4265-9ac4-46bad109f599",name:"Sui",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Sui.svg"},{networkType:"evm",tokens:[{symbol:"ARB",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/ARB.svg"},{symbol:"DAI",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/DAI.svg"},{symbol:"ETH",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/ETH.svg"},{symbol:"PYUSD",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/PYUSD.svg"},{symbol:"USDC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDC.svg"},{symbol:"USDT",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDT.svg"},{symbol:"WETH",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/WETH.svg"}],supportedBrokerTypes:["robinhood","coinbase","binanceUs","binanceInternational","huobi","krakenDirect","binanceInternationalDirect","bitfinexDirect","coinbasePrime","btcTurkDirect","binanceConnect","bybitDirect","paribuOAuth","coinbaseRamp","sandbox","uphold","sandboxCoinbase"],supportedTokens:["ARB","DAI","ETH","PYUSD","USDC","USDT","WETH"],nativeSymbol:"ETH",id:"a34f2431-0ddd-4de4-bc22-4a8143287aeb",name:"Arbitrum",chainId:"42161",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Arbitrum.svg"},{networkType:"litecoin",tokens:[{symbol:"LTC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/LTC.svg"}],supportedBrokerTypes:["krakenDirect","binanceInternationalDirect","revolutConnect","bybitDirect","coinbaseRamp","sandbox","uphold","sandboxCoinbase"],supportedTokens:["LTC"],nativeSymbol:"LTC",id:"1709a5dc-d114-4683-bf95-5a5abb54df31",name:"Litecoin",chainId:"2",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Litecoin.svg"},{networkType:"ripple",tokens:[{symbol:"XRP",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/XRP.svg"}],supportedBrokerTypes:["robinhood","coinbase","krakenDirect","binanceInternationalDirect","coinbasePrime","btcTurkDirect","binanceConnect","revolutConnect","bybitDirect","paribuOAuth","sandbox","uphold","sandboxCoinbase"],supportedTokens:["XRP"],nativeSymbol:"XRP",id:"0ea47ee7-9d36-460e-a2d5-64cfa8a1dddd",name:"Ripple",chainId:"144",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ripple.svg"},{networkType:"dogecoin",tokens:[{symbol:"DOGE",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/DOGE.svg"}],supportedBrokerTypes:["robinhood","coinbase","binanceUs","binanceInternational","okx","huobi","krakenDirect","binanceInternationalDirect","bitfinexDirect","bybit","coinbasePrime","btcTurkDirect","binanceConnect","revolutConnect","bybitDirect","paribuOAuth","coinbaseRamp","sandbox","uphold","sandboxCoinbase"],supportedTokens:["DOGE"],nativeSymbol:"DOGE",id:"34b66a94-f9f9-49ef-81e8-6ebd5a866f9d",name:"Dogecoin",chainId:"3",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/DogeChain.svg"},{networkType:"evm",tokens:[{symbol:"HYPE",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/HYPE.svg"},{symbol:"USDC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDC.svg"},{symbol:"USD₮0",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USD₮0.svg"}],supportedBrokerTypes:[],supportedTokens:["HYPE","USDC","USD₮0"],nativeSymbol:"HYPE",id:"59836f7c-c9a7-4d47-aa17-70cb910445fa",name:"HyperEVM",chainId:"999",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/HyperEVM.svg"},{networkType:"evm",tokens:[{symbol:"DAI",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/DAI.svg"},{symbol:"MATIC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/MATIC.svg"},{symbol:"POL",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/MATIC.svg"},{symbol:"USDC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDC.svg"},{symbol:"USDT",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDT.svg"},{symbol:"WMATIC"}],supportedBrokerTypes:["robinhood","coinbase","binanceInternational","okx","huobi","krakenDirect","binanceInternationalDirect","bitfinexDirect","bybit","coinbasePrime","binanceConnect","bybitDirect","coinbaseRamp","sandbox","sandboxCoinbase"],supportedTokens:["DAI","MATIC","POL","USDC","USDT","WMATIC"],nativeSymbol:"POL",id:"7436e9d0-ba42-4d2b-b4c0-8e4e606b2c12",name:"Polygon",chainId:"137",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Polygon.svg"},{networkType:"tron",tokens:[{symbol:"TRX",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/TRX.svg"},{symbol:"USDC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDC.svg"},{symbol:"USDT",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDT.svg"}],supportedBrokerTypes:["binanceUs","binanceInternational","okx","huobi","krakenDirect","binanceInternationalDirect","bitfinexDirect","btcTurkDirect","paribuDirect","binanceConnect","revolutConnect","bybitDirect","paribuOAuth","sandbox","uphold","sandboxCoinbase"],supportedTokens:["TRX","USDC","USDT"],nativeSymbol:"TRX",id:"c5dc5d2e-68c1-4261-9a30-90b598738bf5",name:"Tron",chainId:"111",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Tron.svg"},{networkType:"evm",tokens:[{symbol:"DAI",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/DAI.svg"},{symbol:"ETH",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/ETH.svg"},{symbol:"OP",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/OP.svg"},{symbol:"SNX",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/SNX.svg"},{symbol:"USDC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDC.svg"},{symbol:"USDT",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDT.svg"},{symbol:"WETH",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/WETH.svg"}],supportedBrokerTypes:["robinhood","coinbase","binanceUs","binanceInternational","krakenDirect","binanceInternationalDirect","bitfinexDirect","coinbasePrime","paribuDirect","binanceConnect","revolutConnect","bybitDirect","paribuOAuth","coinbaseRamp","sandbox","uphold","sandboxCoinbase"],supportedTokens:["DAI","ETH","OP","SNX","USDC","USDT","WETH"],nativeSymbol:"ETH",id:"18fa36b0-88a8-43ca-83db-9a874e0a2288",name:"Optimism",chainId:"10",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Optimism.svg"},{networkType:"bitcoin",tokens:[{symbol:"BTC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/BTC.svg"}],supportedBrokerTypes:["robinhood","coinbase","binanceUs","binanceInternational","okx","huobi","krakenDirect","binanceInternationalDirect","bitfinexDirect","bybit","paxos","coinbasePrime","btcTurkDirect","binanceConnect","revolutConnect","bybitDirect","paribuOAuth","coinbaseRamp","sandbox","uphold","sandboxCoinbase"],supportedTokens:["BTC"],nativeSymbol:"BTC",id:"03dee5da-7398-428f-9ec2-ab41bcb271da",name:"Bitcoin",chainId:"0",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Bitcoin.svg"},{networkType:"avalancheX",tokens:[{symbol:"AVAX",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/AVAX.svg"}],supportedBrokerTypes:["binanceInternational","okx","huobi","binanceInternationalDirect","bitfinexDirect","bybit","btcTurkDirect","paribuDirect","binanceConnect","revolutConnect","bybitDirect","paribuOAuth","sandbox","sandboxCoinbase"],supportedTokens:["AVAX"],nativeSymbol:"AVAX",id:"915f07a3-8a02-40f0-8f9d-b773b81c60a6",name:"AvalancheX",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/AvalancheX.svg"},{networkType:"evm",tokens:[{symbol:"AAVE",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/AAVE.svg"},{symbol:"APE",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/APE.svg"},{symbol:"ARB",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/ARB.svg"},{symbol:"BLUR",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/BLUR.svg"},{symbol:"BUSD"},{symbol:"CAKE",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/CAKE.svg"},{symbol:"CRO",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/CRO.svg"},{symbol:"DAI",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/DAI.svg"},{symbol:"DEXE",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/DEXE.svg"},{symbol:"ENA",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/ENA.svg"},{symbol:"ETH",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/ETH.svg"},{symbol:"EURC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/EURC.svg"},{symbol:"FDUSD",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/FDUSD.svg"},{symbol:"FTM",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/FTM.svg"},{symbol:"GRT",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/GRT.svg"},{symbol:"IMX",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/IMX.svg"},{symbol:"INJ",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/INJ.svg"},{symbol:"LDO",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/LDO.svg"},{symbol:"LEO",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/LEO.svg"},{symbol:"LINK",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/LINK.svg"},{symbol:"MANA",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/MANA.svg"},{symbol:"MATIC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/MATIC.svg"},{symbol:"MKR",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/MKR.svg"},{symbol:"MNT",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/MNT.svg"},{symbol:"PAXG",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/PAXG.svg"},{symbol:"PYUSD",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/PYUSD.svg"},{symbol:"QNT",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/QNT.svg"},{symbol:"RLUSD",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/RLUSD.svg"},{symbol:"RNDR",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/RNDR.svg"},{symbol:"SAND",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/SAND.svg"},{symbol:"SHIB",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/SHIB.svg"},{symbol:"SNX",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/SNX.svg"},{symbol:"TUSD",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/TUSD.svg"},{symbol:"UNI",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/UNI.svg"},{symbol:"USD1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USD1.svg"},{symbol:"USDC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDC.svg"},{symbol:"USDD",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDD.svg"},{symbol:"USDG",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDG.svg"},{symbol:"USDP",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDP.svg"},{symbol:"USDT",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDT.svg"},{symbol:"VIRTUAL",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/VIRTUAL.svg"},{symbol:"WBTC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/WBTC.svg"},{symbol:"WETH",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/WETH.svg"}],supportedBrokerTypes:["robinhood","coinbase","binanceUs","binanceInternational","okx","huobi","krakenDirect","binanceInternationalDirect","bitfinexDirect","bybit","paxos","coinbasePrime","btcTurkDirect","paribuDirect","binanceConnect","revolutConnect","bybitDirect","paribuOAuth","payPalConnect","coinbaseRamp","sandbox","cryptoComPay","uphold","sandboxCoinbase","bybitPay"],supportedTokens:["AAVE","APE","ARB","BLUR","BUSD","CAKE","CRO","DAI","DEXE","ENA","ETH","EURC","FDUSD","FTM","GRT","IMX","INJ","LDO","LEO","LINK","MANA","MATIC","MKR","MNT","PAXG","PYUSD","QNT","RLUSD","RNDR","SAND","SHIB","SNX","TUSD","UNI","USD1","USDC","USDD","USDG","USDP","USDT","VIRTUAL","WBTC","WETH"],nativeSymbol:"ETH",id:"e3c7fdd8-b1fc-4e51-85ae-bb276e075611",name:"Ethereum",chainId:"1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ethereum.svg"},{networkType:"aptos",tokens:[{symbol:"APT",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/APT.svg"},{symbol:"USDC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDC.svg"},{symbol:"USDT",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDT.svg"}],supportedBrokerTypes:["coinbase","binanceUs","binanceInternational","okx","huobi","krakenDirect","binanceInternationalDirect","bitfinexDirect","bybit","coinbasePrime","btcTurkDirect","binanceConnect","bybitDirect","paribuOAuth","coinbaseRamp","sandbox","sandboxCoinbase"],supportedTokens:["APT","USDC","USDT"],nativeSymbol:"APT",id:"c6427cfd-8ddf-44f1-b400-bc4a5ee190a3",name:"Aptos",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Aptos.svg"},{networkType:"evm",tokens:[{symbol:"EURC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/EURC.svg"},{symbol:"S",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/S.svg"}],supportedBrokerTypes:["binanceInternational","krakenDirect","binanceInternationalDirect","bybitDirect","paribuOAuth","sandbox","uphold","sandboxCoinbase"],supportedTokens:["EURC","S"],nativeSymbol:"S",id:"385f0b3a-8471-4b8f-884f-c4f4496f1603",name:"Sonic",chainId:"146",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Sonic.svg"},{networkType:"evm",tokens:[{symbol:"BNB",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/BNB.svg"},{symbol:"CAKE",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/CAKE.svg"},{symbol:"DEXE",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/DEXE.svg"},{symbol:"FDUSD",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/FDUSD.svg"},{symbol:"FORM",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/FORM.svg"},{symbol:"LTC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/LTC.svg"},{symbol:"USD1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USD1.svg"},{symbol:"USDC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDC.svg"},{symbol:"USDT",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDT.svg"},{symbol:"WBNB"}],supportedBrokerTypes:["binanceUs","binanceInternational","krakenDirect","binanceInternationalDirect","binanceConnect","bybitDirect","sandbox","uphold","sandboxCoinbase"],supportedTokens:["BNB","CAKE","DEXE","FDUSD","FORM","LTC","USD1","USDC","USDT","WBNB"],nativeSymbol:"BNB",id:"ed0ebeec-b166-4c8b-8574-cb078f7af8cf",name:"BSC",chainId:"56",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/BinanceSmartChain.svg"},{networkType:"solana",tokens:[{symbol:"DEVNETSOL",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/SOL.svg"},{symbol:"PYUSD",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/PYUSD.svg"},{symbol:"USDG",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDG.svg"}],supportedBrokerTypes:[],supportedTokens:["DEVNETSOL","PYUSD","USDG"],nativeSymbol:"DEVNETSOL",id:"b7387cd9-2f47-4e4d-bc7b-d44e61d58210",name:"SolanaDevnet",chainId:"103",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Solana.svg"},{networkType:"evm",tokens:[{symbol:"PYUSD",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/PYUSD.svg"},{symbol:"SEPOLIAETH",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/ETH.svg"},{symbol:"USDG",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDG.svg"}],supportedBrokerTypes:[],supportedTokens:["PYUSD","SEPOLIAETH","USDG"],nativeSymbol:"SEPOLIAETH",id:"03b2d786-7092-4a6a-9737-d6013e21819b",name:"Sepolia",chainId:"11155111",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Ethereum.svg"},{networkType:"solana",tokens:[{symbol:"CASH",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/CASH.svg"},{symbol:"EURC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/EURC.svg"},{symbol:"FARTCOIN",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/FARTCOIN.svg"},{symbol:"FDUSD",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/FDUSD.svg"},{symbol:"PENGU",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/PENGU.svg"},{symbol:"PYUSD",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/PYUSD.svg"},{symbol:"SOL",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/SOL.svg"},{symbol:"TRUMP",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/TRUMP.svg"},{symbol:"USDC",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDC.svg"},{symbol:"USDG",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDG.svg"},{symbol:"USDT",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/USDT.svg"},{symbol:"WIF",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/WIF.svg"}],supportedBrokerTypes:["robinhood","coinbase","binanceUs","binanceInternational","okx","huobi","krakenDirect","binanceInternationalDirect","bitfinexDirect","bybit","paxos","coinbasePrime","btcTurkDirect","binanceConnect","revolutConnect","bybitDirect","paribuOAuth","coinbaseRamp","sandbox","uphold","sandboxCoinbase"],supportedTokens:["CASH","EURC","FARTCOIN","FDUSD","PENGU","PYUSD","SOL","TRUMP","USDC","USDG","USDT","WIF"],nativeSymbol:"SOL",id:"0291810a-5947-424d-9a59-e88bb33e999d",name:"Solana",chainId:"101",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Solana.svg"},{networkType:"evm",tokens:[{symbol:"BLAST",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/BLAST.svg"},{symbol:"ETH",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/ETH.svg"},{symbol:"WETH",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/WETH.svg"}],supportedBrokerTypes:["coinbase","bybitDirect","coinbaseRamp","sandbox","sandboxCoinbase"],supportedTokens:["BLAST","ETH","WETH"],nativeSymbol:"ETH",id:"0c17e03f-77fa-4644-b84c-eb247af8c4c1",name:"Blast",chainId:"81457",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Blast.svg"},{networkType:"injective",tokens:[{symbol:"INJ",logoUrl:"https://file-cdn.meshconnect.com/public/logos/tokens/INJ.svg"}],supportedBrokerTypes:["binanceInternationalDirect","sandbox","sandboxCoinbase"],supportedTokens:["INJ"],nativeSymbol:"INJ",id:"66f6e5ed-5635-44eb-bc92-f4fcdbf66f1a",name:"Injective",chainId:"1",logoUrl:"https://file-cdn.meshconnect.com/public/logos/networks/Injective.svg"}]},status:"ok",message:"",errorHash:"41f47591",errorType:""},yd={krakenDirect:"kraken",coinbase:"coinbase",binanceConnect:"binance",bybitDirect:"bybit",bitfinexDirect:"bitfinex",sandboxCoinbase:"coinbase",coinbaseRamp:"coinbase",btcTurkDirect:"btcturk",paribuOAuth:"paribu",robinhood:"robinhood",uphold:"uphold"};function vd(e){return yd[e]||null}var Td={Ethereum:"ethereum",Bitcoin:"bitcoin",Solana:"solana",Polygon:"polygon",Base:"base",Optimism:"optimism",Avalanche:"avalanche",Arbitrum:"arbitrum",Tron:"tron","BNB Smart Chain":"bsc",Stellar:"stellar",Aptos:"aptos",Sui:"sui",Hyperliquid:"hyperliquid",Injective:"injective",Moonbeam:"moonbeam"};function Ri(e){return Td[e]||e.toLowerCase()}var wd={WETH:"ETH",WBTC:"BTC"};function Ni(e){return wd[e]||e}var Sd=class{constructor(e="sandbox"){W(this,"id","meshpay");W(this,"name","MeshPay");W(this,"config");W(this,"environment");W(this,"initialized",!1);this.environment=e}initialize(e){return ee(this,null,function*(){const t=e[this.id];if(!(t!=null&&t.clientId)||!(t!=null&&t.clientSecret))throw new Error("MeshPay requires clientId and clientSecret in configuration");this.environment=e.environment||"sandbox";const n=this.environment==="production"?"https://integration-api.meshconnect.com":"https://sandbox-integration-api.meshconnect.com";this.config={clientId:t.clientId,clientSecret:t.clientSecret,baseUrl:n,configurationId:t.configurationId},this.initialized=!0})}registerOnrampMethods(e){const t=this.mapExchanges(),n=this.mapWallets();[...t,...n].forEach(o=>{e.register(o)})}mapExchanges(){const e=this.getIntegrationsData().content.integrations,t=[];return e.forEach(n=>{const o=vd(n.type);if(!o){console.warn(`Skipping unknown MeshPay integration type: ${n.type}`);return}n.networks.forEach(s=>{const i=Ri(s.name);s.supportedTokens.forEach(r=>{const a=Ni(r);t.push({id:`${o}-${a.toLowerCase()}`,name:`${o} ${a}`,vendorId:this.id,type:"crypto",method:"exchange",network:i,currency:a,supportedCurrencies:[a],fees:{percentage:.75,currency:"USD"},limits:{min:1,max:5e4,currency:"USD"},processingTime:"Instant",isActive:!0})})})}),t}mapWallets(){const e=this.getNetworksData().content.networks,t=[];return e.forEach(n=>{const o=Ri(n.name);n.supportedTokens.forEach(s=>{const i=Ni(s);t.push({id:`${i.toLowerCase()}-wallet`,name:`${i} Wallet`,vendorId:this.id,type:"crypto",method:"wallet",network:o,currency:i,supportedCurrencies:[i],fees:{percentage:.5,currency:"USD"},limits:{min:1,max:1e5,currency:"USD"},processingTime:"Instant",isActive:!0})})}),t}getIntegrationsData(){if(this.environment==="sandbox")return gd;throw new Error("Production integrations data loading not implemented")}getNetworksData(){if(this.environment==="sandbox")return bd;throw new Error("Production networks data loading not implemented")}createCheckoutSession(e){return ee(this,null,function*(){if(!this.initialized)throw new Error("MeshPay adapter not initialized");try{const t=yield this.generateLinkToken(e);return{id:t.linkToken,url:t.paymentLink||void 0,metadata:{linkToken:t.linkToken,paymentLink:t.paymentLink,vendorId:this.id,clientId:this.config.clientId}}}catch(t){throw new Error(`MeshPay checkout session creation failed: ${t instanceof Error?t.message:"Unknown error"}`)}})}getNetworkIdFromName(e){const n=this.getNetworksData().content.networks.find(o=>o.name.toLowerCase()===e.toLowerCase());if(!n){const o=this.getIntegrationsData().content.integrations;for(const s of o){const i=s.networks.find(r=>r.name.toLowerCase()===e.toLowerCase());if(i)return i.id}throw new Error(`Network not found: ${e}`)}return n.id}generateLinkToken(e){return ee(this,null,function*(){if(!this.config)throw new Error("Adapter not initialized");const t=Ao.getCurrency(e.currency),n=(t==null?void 0:t.type)==="fiat";if(n&&e.currency!=="USD")throw new Error(`MeshPay adapter only supports USD as fiat currency, received: ${e.currency}`);const o={userId:e.customerId,configurationId:this.config.configurationId,restrictMultipleAccounts:!0,transferOptions:P(m({toAddresses:e.destinations.map(r=>{const a=this.getNetworkIdFromName(r.networkId);return m({networkId:a,symbol:r.symbol,address:r.address},!n&&{amount:e.amount})})},n&&{amountInFiat:e.amount}),{isInclusiveFeeEnabled:!1,generatePayLink:!1}),disableApiKeyGeneration:!1},s=yield globalThis.fetch(`${this.config.baseUrl}/api/v1/linktoken`,{method:"POST",headers:{"Content-Type":"application/json","X-Client-Id":this.config.clientId,"X-Client-Secret":this.config.clientSecret},body:JSON.stringify(o)});if(!s.ok){const r=yield s.text();throw new Error(`LinkToken generation failed: ${s.status} ${r}`)}const i=yield s.json();if(i.status!=="ok")throw new Error(`MeshPay API error: ${i.message||"Unknown error"}`);return i.content})}openCheckout(e){return ee(this,null,function*(){if(!e.metadata||!e.metadata.linkToken)throw new Error("Missing linkToken in checkout session metadata");if(!e.metadata.clientId)throw new Error("Missing clientId in checkout session metadata");const{createLink:t}=yield Promise.resolve().then(()=>require("./index-B9KdNmCT.cjs"));return new Promise((n,o)=>{t({clientId:e.metadata.clientId,onIntegrationConnected:()=>{},onTransferFinished:i=>{const r=i.status==="success";n({id:e.id,status:r?"completed":"failed",data:{transferId:i.transferId,transactionId:i.txId,transactionHash:i.txHash,fromAddress:i.fromAddress,toAddress:i.toAddress,amount:i.amount,symbol:i.symbol,networkId:i.networkId,message:r?"Transfer completed successfully":"Transfer failed",timestamp:new Date().toISOString(),rawPayload:i}})},onExit:i=>{i?o(new Error(`MeshPay error: ${i.message||i}`)):n({id:e.id,status:"cancelled",data:{message:"User cancelled payment",timestamp:new Date().toISOString()}})}}).openLink(e.metadata.linkToken)})})}getPaymentStatus(e){return ee(this,null,function*(){throw new Error("getPaymentStatus not implemented - MeshPay uses webhooks for status updates")})}};class Dn extends Error{constructor(n,o="PAYMENT_ERROR",s){super(n);W(this,"code");W(this,"context");this.name="PaymentError",this.code=o,this.context=s,Error.captureStackTrace&&Error.captureStackTrace(this,Dn)}toJSON(){return{name:this.name,message:this.message,code:this.code,context:this.context,stack:this.stack}}}class Ve extends Dn{constructor(t,n){super(t,"PAYMENT_VALIDATION_ERROR",n),this.name="PaymentValidationError"}}class ze extends Dn{constructor(t,n){super(t,"PAYMENT_EXECUTION_ERROR",n),this.name="PaymentExecutionError"}}class Wt extends Error{constructor(n,o="ADAPTER_ERROR",s,i){super(n);W(this,"code");W(this,"vendorId");W(this,"context");this.name="AdapterError",this.code=o,this.vendorId=s,this.context=i,Error.captureStackTrace&&Error.captureStackTrace(this,Wt)}toJSON(){return{name:this.name,message:this.message,code:this.code,vendorId:this.vendorId,context:this.context,stack:this.stack}}}class Dd extends Wt{constructor(t,n){super(`Payment adapter for vendor "${t}" not found`,"ADAPTER_NOT_FOUND",t,n),this.name="AdapterNotFoundError"}}class Cd extends Wt{constructor(t,n,o){super(`Failed to initialize adapter for vendor "${t}": ${n}`,"ADAPTER_INITIALIZATION_ERROR",t,o),this.name="AdapterInitializationError"}}class Ad extends Wt{constructor(t,n,o){super(`Configuration error for adapter "${t}": ${n}`,"ADAPTER_CONFIGURATION_ERROR",t,o),this.name="AdapterConfigurationError"}}class Li{constructor(){W(this,"adapters",new Map);W(this,"initialized",!1)}register(t){if(this.adapters.has(t.id))throw new Ad(t.id,"Adapter already registered");this.adapters.set(t.id,t)}get(t){const n=this.adapters.get(t);if(!n)throw new Dd(t);return n}has(t){return this.adapters.has(t)}getAdapterIds(){return Array.from(this.adapters.keys())}getAll(){return Array.from(this.adapters.values())}initialize(t){return ee(this,null,function*(){if(this.initialized)return;const n=Array.from(this.adapters.entries()).map(i=>ee(this,[i],function*([o,s]){try{yield s.initialize(t)}catch(r){throw new Cd(o,r instanceof Error?r.message:"Unknown error",{originalError:r})}}));yield Promise.all(n),this.initialized=!0})}isInitialized(){return this.initialized}clear(){this.adapters.clear(),this.initialized=!1}unregister(t){const n=this.adapters.delete(t);return n&&this.adapters.size===0&&(this.initialized=!1),n}}class ts{constructor(t){W(this,"registry");W(this,"currencyService",Ao);W(this,"networkService",si);W(this,"paymentMethodService",oi);W(this,"options");W(this,"clientMode",!1);W(this,"paymentIntents",{create:t=>ee(this,null,function*(){var s;if(!this.isInitialized())throw new ze("W3Payments client not initialized");if(!t.amount||t.amount<=0)throw new Ve("Amount must be greater than 0");if(!t.currency)throw new Ve("Currency is required");if(!t.id)throw new Ve("Payment ID is required");if(!t.customerId)throw new Ve("Customer ID is required");if(!t.destinations||t.destinations.length===0)throw new Ve("At least one destination is required");const n=this.selectBestVendor(t),o={id:t.id,amount:t.amount,currency:t.currency,customerId:t.customerId,destinations:t.destinations,metadata:P(m({},t.metadata),{selectedBy:"w3payments-core",selectionReason:"auto-selected",selectedVendor:n})};try{const r=yield this.registry.get(n).createCheckoutSession(o);return P(m({},r),{selectedVendor:((s=r.metadata)==null?void 0:s.selectedVendor)||n})}catch(i){throw new ze(`Payment creation failed: ${i instanceof Error?i.message:"Unknown error"}`,{intent:o,selectedVendor:n,originalError:i})}}),retrieve:(t,n)=>ee(this,null,function*(){if(!this.isInitialized())throw new ze("W3Payments client not initialized");if(!t)throw new Ve("Session ID is required");if(!n)throw new Ve("Vendor ID is required");try{return yield this.registry.get(n).getPaymentStatus(t)}catch(o){throw new ze(`Payment status retrieval failed: ${o instanceof Error?o.message:"Unknown error"}`,{sessionId:t,vendorId:n,originalError:o})}})});this.options=t,this.registry=new Li,this.configureCurrencies(),this.configureNetworks(),this.registerAdapters()}static createClient(t="sandbox"){const n=Object.create(ts.prototype);return n.currencyService=Ao,n.networkService=si,n.paymentMethodService=oi,n.registry=new Li,n.clientMode=!0,n.options={config:{environment:t}},n.configureCurrencies(),n.configureNetworks(),n.registerAdapters(),n.registerPaymentMethods(),n}configureCurrencies(){this.currencyService.registerMany(Object.values(cd))}configureNetworks(){this.networkService.registerMany(Object.values(ld))}registerAdapters(){const t=this.options.config.environment||"sandbox";this.registry.register(new Sd(t))}initialize(){return ee(this,null,function*(){const t=P(m({},this.options.config),{environment:this.options.environment||this.options.config.environment});yield this.registry.initialize(t),this.registerPaymentMethods()})}registerPaymentMethods(){this.registry.getAll().forEach(n=>{n.registerOnrampMethods(this.paymentMethodService)})}isInitialized(){return this.registry.isInitialized()}getAvailableVendors(){return this.registry.getAdapterIds()}hasVendor(t){return this.registry.has(t)}getCurrencies(){return this.currencyService.getAllCurrencies()}getCurrency(t){return this.currencyService.getCurrency(t)}getPaymentMethods(){return this.paymentMethodService.getAllPaymentMethods()}openCheckout(t){return ee(this,null,function*(){var o,s;const n=((o=t.metadata)==null?void 0:o.selectedVendor)||((s=t.metadata)==null?void 0:s.vendorId);if(!n)throw new Ve("Vendor ID not found in session metadata");try{const i=this.registry.get(n);if(!i.openCheckout)throw new ze(`Vendor ${n} does not support client-side checkout opening`);return yield i.openCheckout(t)}catch(i){throw new ze(`Checkout opening failed: ${i instanceof Error?i.message:"Unknown error"}`,{sessionId:t.id,vendorId:n,originalError:i})}})}selectBestVendor(t){const n=this.getAvailableVendors();if(n.length===0)throw new ze("No payment vendors available");return t.preferredVendor&&this.hasVendor(t.preferredVendor)?t.preferredVendor:n[0]}}class kd{constructor(t){W(this,"config");this.config=t}makeRequest(o){return ee(this,arguments,function*(t,n={}){const s=yield globalThis.fetch(`${this.config.endpoint}${t}`,m({headers:m(m({"Content-Type":"application/json"},this.config.headers),n.headers)},n));if(!s.ok)throw new Error(`HTTP ${s.status}: ${s.statusText}`);return s.json()})}createPayment(t){return ee(this,null,function*(){return this.makeRequest("/payment/create",{method:"POST",body:JSON.stringify(t)})})}getPaymentStatus(t,n){return ee(this,null,function*(){return this.makeRequest(`/payment/${t}?vendorId=${n}`,{method:"GET"})})}isInitialized(){return!!this.config.endpoint}}function Me(e){return Object.keys(e)}function eo(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ns(e,t){const n=m({},e),o=t;return eo(e)&&eo(t)&&Object.keys(t).forEach(s=>{eo(o[s])&&s in e?n[s]=ns(n[s],o[s]):n[s]=o[s]}),n}function xd(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Id(e){var t;return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:(t=e.match(/^calc\((.*?)\)$/))==null?void 0:t[1].split("*")[0].trim()}function Ed(e){const t=Id(e);return typeof t=="number"?t:typeof t=="string"?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?Number(t.replace("rem",""))*16:t.includes("em")?Number(t.replace("em",""))*16:Number(t):NaN}function Bi(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function pa(e,{shouldScale:t=!1}={}){function n(o){if(o===0||o==="0")return`0${e}`;if(typeof o=="number"){const s=`${o/16}${e}`;return t?Bi(s):s}if(typeof o=="string"){if(o===""||o.startsWith("calc(")||o.startsWith("clamp(")||o.includes("rgba("))return o;if(o.includes(","))return o.split(",").map(i=>n(i)).join(",");if(o.includes(" "))return o.split(" ").map(i=>n(i)).join(" ");const s=o.replace("px","");if(!Number.isNaN(Number(s))){const i=`${Number(s)/16}${e}`;return t?Bi(i):i}}return o}return n}const M=pa("rem",{shouldScale:!0}),Oi=pa("em");function os(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function ma(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const t=/^[+-]?[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 e.trim().split(/\s+/).every(o=>t.test(o))}return!1}function Pe(e,t="size",n=!0){if(e!==void 0)return ma(e)?n?M(e):e:`var(--${t}-${e})`}function Cn(e){return Pe(e,"mantine-spacing")}function Gt(e){return e===void 0?"var(--mantine-radius-default)":Pe(e,"mantine-radius")}function ga(e){return Pe(e,"mantine-font-size")}function Md(e){return Pe(e,"mantine-line-height",!1)}function Ud(e){if(e)return Pe(e,"mantine-shadow",!1)}function Pd(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(n){return e.addListener(t),()=>e.removeListener(t)}}function Rd(e,t){return typeof window!="undefined"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function Nd(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[o,s]=I.useState(n?t:Rd(e));return I.useEffect(()=>{try{const i=window.matchMedia(e);return s(i.matches),Pd(i,r=>s(r.matches))}catch(i){return}},[e]),o||!1}const ba=typeof document!="undefined"?I.useLayoutEffect:I.useEffect;function Ld(e,t){const n=I.useRef(!1);I.useEffect(()=>()=>{n.current=!1},[]),I.useEffect(()=>{if(n.current)return e();n.current=!0},t)}function Bd(e,t){return Nd("(prefers-reduced-motion: reduce)",e,t)}function ya(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=ya(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function st(){for(var e,t,n=0,o="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=ya(e))&&(o&&(o+=" "),o+=t);return o}const Od={};function Vd(e){const t={};return e.forEach(n=>{Object.entries(n).forEach(([o,s])=>{t[o]?t[o]=st(t[o],s):t[o]=s})}),t}function ss({theme:e,classNames:t,props:n,stylesCtx:o}){const i=(Array.isArray(t)?t:[t]).map(r=>typeof r=="function"?r(e,n,o):r||Od);return Vd(i)}function xo({theme:e,styles:t,props:n,stylesCtx:o}){return(Array.isArray(t)?t:[t]).reduce((i,r)=>typeof r=="function"?m(m({},i),r(e,n,o)):m(m({},i),r),{})}const va=I.createContext(null);function He(){const e=I.useContext(va);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function jd(){return He().cssVariablesResolver}function Fd(){return He().classNamesPrefix}function is(){return He().getStyleNonce}function $d(){return He().withStaticClasses}function Hd(){return He().headless}function _d(){var e;return(e=He().stylesTransform)==null?void 0:e.sx}function zd(){var e;return(e=He().stylesTransform)==null?void 0:e.styles}function Xd(){return He().env||"default"}function Wd(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function Gd(e){let t=e.replace("#","");if(t.length===3){const r=t.split("");t=[r[0],r[0],r[1],r[1],r[2],r[2]].join("")}if(t.length===8){const r=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:r}}const n=parseInt(t,16),o=n>>16&255,s=n>>8&255,i=n&255;return{r:o,g:s,b:i,a:1}}function Yd(e){const[t,n,o,s]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:n,b:o,a:s===void 0?1:s}}function Kd(e){const t=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(t);if(!n)return{r:0,g:0,b:0,a:1};const o=parseInt(n[1],10),s=parseInt(n[2],10)/100,i=parseInt(n[3],10)/100,r=n[5]?parseFloat(n[5]):void 0,a=(1-Math.abs(2*i-1))*s,c=o/60,l=a*(1-Math.abs(c%2-1)),d=i-a/2;let u,f,h;return c>=0&&c<1?(u=a,f=l,h=0):c>=1&&c<2?(u=l,f=a,h=0):c>=2&&c<3?(u=0,f=a,h=l):c>=3&&c<4?(u=0,f=l,h=a):c>=4&&c<5?(u=l,f=0,h=a):(u=a,f=0,h=l),{r:Math.round((u+d)*255),g:Math.round((f+d)*255),b:Math.round((h+d)*255),a:r||1}}function rs(e){return Wd(e)?Gd(e):e.startsWith("rgb")?Yd(e):e.startsWith("hsl")?Kd(e):{r:0,g:0,b:0,a:1}}function on(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${t*100}%)`;const{r:n,g:o,b:s,a:i}=rs(e),r=1-t,a=c=>Math.round(c*r);return`rgba(${a(n)}, ${a(o)}, ${a(s)}, ${i})`}function jt(e,t){return typeof e.primaryShade=="number"?e.primaryShade:t==="dark"?e.primaryShade.dark:e.primaryShade.light}function to(e){return e<=.03928?e/12.92:en((e+.055)/1.055,2.4)}function Zd(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function qd(e){if(e.startsWith("oklch("))return(Zd(e)||0)/100;const{r:t,g:n,b:o}=rs(e),s=t/255,i=n/255,r=o/255,a=to(s),c=to(i),l=to(r);return .2126*a+.7152*c+.0722*l}function Pt(e,t=.179){return e.startsWith("var(")?!1:qd(e)>t}function Yt({color:e,theme:t,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Pt(n==="dark"?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Pt(n==="dark"?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Pt(e==="white"?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[o,s]=e.split("."),i=s?Number(s):void 0,r=o in t.colors;if(r){const a=i!==void 0?t.colors[o][i]:t.colors[o][jt(t,n||"light")];return{color:o,value:a,shade:i,isThemeColor:r,isLight:Pt(a,t.luminanceThreshold),variable:s?`--mantine-color-${o}-${i}`:`--mantine-color-${o}-filled`}}return{color:e,value:e,isThemeColor:r,isLight:Pt(e,t.luminanceThreshold),shade:i,variable:void 0}}function mn(e,t){const n=Yt({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function Io(e,t){var i,r;const n={from:(e==null?void 0:e.from)||t.defaultGradient.from,to:(e==null?void 0:e.to)||t.defaultGradient.to,deg:(r=(i=e==null?void 0:e.deg)!=null?i:t.defaultGradient.deg)!=null?r:0},o=mn(n.from,t),s=mn(n.to,t);return`linear-gradient(${n.deg}deg, ${o} 0%, ${s} 100%)`}function Re(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const i=(1-t)*100;return`color-mix(in srgb, ${e}, transparent ${i}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r:n,g:o,b:s}=rs(e);return`rgba(${n}, ${o}, ${s}, ${t})`}const lt=Re,Qd=({color:e,theme:t,variant:n,gradient:o,autoContrast:s})=>{const i=Yt({color:e,theme:t}),r=typeof s=="boolean"?s:t.autoContrast;if(n==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(n==="filled"){const a=r&&i.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return i.isThemeColor?i.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:a,border:`${M(1)} solid transparent`}:{background:`var(--mantine-color-${i.color}-${i.shade})`,hover:`var(--mantine-color-${i.color}-${i.shade===9?8:i.shade+1})`,color:a,border:`${M(1)} solid transparent`}:{background:e,hover:on(e,.1),color:a,border:`${M(1)} solid transparent`}}if(n==="light"){if(i.isThemeColor){if(i.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${M(1)} solid transparent`};const a=t.colors[i.color][i.shade];return{background:Re(a,.1),hover:Re(a,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${M(1)} solid transparent`}}return{background:Re(e,.1),hover:Re(e,.12),color:e,border:`${M(1)} solid transparent`}}if(n==="outline")return i.isThemeColor?i.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${M(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:Re(t.colors[i.color][i.shade],.05),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${M(1)} solid var(--mantine-color-${i.color}-${i.shade})`}:{background:"transparent",hover:Re(e,.05),color:e,border:`${M(1)} solid ${e}`};if(n==="subtle"){if(i.isThemeColor){if(i.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${M(1)} solid transparent`};const a=t.colors[i.color][i.shade];return{background:"transparent",hover:Re(a,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${M(1)} solid transparent`}}return{background:"transparent",hover:Re(e,.12),color:e,border:`${M(1)} solid transparent`}}return n==="transparent"?i.isThemeColor?i.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${M(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${M(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${M(1)} solid transparent`}:n==="white"?i.isThemeColor?i.shade===void 0?{background:"var(--mantine-color-white)",hover:on(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${M(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:on(t.white,.01),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${M(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:on(t.white,.01),color:e,border:`${M(1)} solid transparent`}:n==="gradient"?{background:Io(o,t),hover:Io(o,t),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:`${M(1)} solid var(--mantine-color-default-border)`}:{}},Jd={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"]},Vi="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",as={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:Jd,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:Qd,autoContrast:!1,luminanceThreshold:.3,fontFamily:Vi,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:Vi,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:M(34),lineHeight:"1.3"},h2:{fontSize:M(26),lineHeight:"1.35"},h3:{fontSize:M(22),lineHeight:"1.4"},h4:{fontSize:M(18),lineHeight:"1.45"},h5:{fontSize:M(16),lineHeight:"1.5"},h6:{fontSize:M(14),lineHeight:"1.5"}}},fontSizes:{xs:M(12),sm:M(14),md:M(16),lg:M(18),xl:M(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:M(2),sm:M(4),md:M(8),lg:M(16),xl:M(32)},spacing:{xs:M(10),sm:M(12),md:M(16),lg:M(20),xl:M(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${M(1)} ${M(3)} rgba(0, 0, 0, 0.05), 0 ${M(1)} ${M(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${M(1)} ${M(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${M(10)} ${M(15)} ${M(-5)}, rgba(0, 0, 0, 0.04) 0 ${M(7)} ${M(7)} ${M(-5)}`,md:`0 ${M(1)} ${M(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${M(20)} ${M(25)} ${M(-5)}, rgba(0, 0, 0, 0.04) 0 ${M(10)} ${M(10)} ${M(-5)}`,lg:`0 ${M(1)} ${M(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${M(28)} ${M(23)} ${M(-7)}, rgba(0, 0, 0, 0.04) 0 ${M(12)} ${M(12)} ${M(-7)}`,xl:`0 ${M(1)} ${M(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${M(36)} ${M(28)} ${M(-7)}, rgba(0, 0, 0, 0.04) 0 ${M(17)} ${M(17)} ${M(-7)}`},other:{},components:{}};function ji(e){return e==="auto"||e==="dark"||e==="light"}function eu({key:e="mantine-color-scheme-value"}={}){let t;return{get:n=>{if(typeof window=="undefined")return n;try{const o=window.localStorage.getItem(e);return ji(o)?o:n}catch(o){return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(o){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",o)}},subscribe:n=>{t=o=>{o.storageArea===window.localStorage&&o.key===e&&ji(o.newValue)&&n(o.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}const tu="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",Fi="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function no(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function $i(e){if(!(e.primaryColor in e.colors))throw new Error(tu);if(typeof e.primaryShade=="object"&&(!no(e.primaryShade.dark)||!no(e.primaryShade.light)))throw new Error(Fi);if(typeof e.primaryShade=="number"&&!no(e.primaryShade))throw new Error(Fi)}function nu(e,t){var o;if(!t)return $i(e),e;const n=ns(e,t);return t.fontFamily&&!((o=t.headings)!=null&&o.fontFamily)&&(n.headings.fontFamily=t.fontFamily),$i(n),n}const cs=I.createContext(null),ou=()=>I.useContext(cs)||as;function it(){const e=I.useContext(cs);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function Ta({theme:e,children:t,inherit:n=!0}){const o=ou(),s=I.useMemo(()=>nu(n?o:as,e),[e,o,n]);return y.jsx(cs.Provider,{value:s,children:t})}Ta.displayName="@mantine/core/MantineThemeProvider";function su(){const e=it(),t=is(),n=Me(e.breakpoints).reduce((o,s)=>{const i=e.breakpoints[s].includes("px"),r=Ed(e.breakpoints[s]),a=i?`${r-.1}px`:Oi(r-.1),c=i?`${r}px`:Oi(r);return`${o}@media (max-width: ${a}) {.mantine-visible-from-${s} {display: none !important;}}@media (min-width: ${c}) {.mantine-hidden-from-${s} {display: none !important;}}`},"");return y.jsx("style",{"data-mantine-styles":"classes",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:n}})}function oo(e){return Object.entries(e).map(([t,n])=>`${t}: ${n};`).join("")}function wa(e,t){const n=t?[t]:[":root",":host"],o=oo(e.variables),s=o?`${n.join(", ")}{${o}}`:"",i=oo(e.dark),r=oo(e.light),a=d=>n.map(u=>u===":host"?`${u}([data-mantine-color-scheme="${d}"])`:`${u}[data-mantine-color-scheme="${d}"]`).join(", "),c=i?`${a("dark")}{${i}}`:"",l=r?`${a("light")}{${r}}`:"";return`${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}
14
7
 
15
8
  ${c}
16
9
 
17
- ${l}`}function iu({color:e,theme:t,autoContrast:n}){return t.autoContrast&&Yt({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function Hi(e,t){return iu({color:e.colors[e.primaryColor][jt(e,t)],theme:e,autoContrast:null})}function sn({theme:e,color:t,colorScheme:n,name:o=t,withColorValues:s=!0}){if(!e.colors[t])return{};if(n==="light"){const a=jt(e,"light"),c={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-filled)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${a})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${a===9?8:a+1})`,[`--mantine-color-${o}-light`]:lt(e.colors[t][a],.1),[`--mantine-color-${o}-light-hover`]:lt(e.colors[t][a],.12),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${a})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${a})`,[`--mantine-color-${o}-outline-hover`]:lt(e.colors[t][a],.05)};return s?m({[`--mantine-color-${o}-0`]:e.colors[t][0],[`--mantine-color-${o}-1`]:e.colors[t][1],[`--mantine-color-${o}-2`]:e.colors[t][2],[`--mantine-color-${o}-3`]:e.colors[t][3],[`--mantine-color-${o}-4`]:e.colors[t][4],[`--mantine-color-${o}-5`]:e.colors[t][5],[`--mantine-color-${o}-6`]:e.colors[t][6],[`--mantine-color-${o}-7`]:e.colors[t][7],[`--mantine-color-${o}-8`]:e.colors[t][8],[`--mantine-color-${o}-9`]:e.colors[t][9]},c):c}const i=jt(e,"dark"),r={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-4)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${i})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${i===9?8:i+1})`,[`--mantine-color-${o}-light`]:lt(e.colors[t][Math.max(0,i-2)],.15),[`--mantine-color-${o}-light-hover`]:lt(e.colors[t][Math.max(0,i-2)],.2),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${Math.max(i-5,0)})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${Math.max(i-4,0)})`,[`--mantine-color-${o}-outline-hover`]:lt(e.colors[t][Math.max(i-4,0)],.05)};return s?m({[`--mantine-color-${o}-0`]:e.colors[t][0],[`--mantine-color-${o}-1`]:e.colors[t][1],[`--mantine-color-${o}-2`]:e.colors[t][2],[`--mantine-color-${o}-3`]:e.colors[t][3],[`--mantine-color-${o}-4`]:e.colors[t][4],[`--mantine-color-${o}-5`]:e.colors[t][5],[`--mantine-color-${o}-6`]:e.colors[t][6],[`--mantine-color-${o}-7`]:e.colors[t][7],[`--mantine-color-${o}-8`]:e.colors[t][8],[`--mantine-color-${o}-9`]:e.colors[t][9]},r):r}function ru(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function dt(e,t,n){Me(t).forEach(o=>Object.assign(e,{[`--mantine-${n}-${o}`]:t[o]}))}const Sa=e=>{const t=jt(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:M(e.defaultRadius),o={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":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":Hi(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--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":Hi(e,"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-${e.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)"}};dt(o.variables,e.breakpoints,"breakpoint"),dt(o.variables,e.spacing,"spacing"),dt(o.variables,e.fontSizes,"font-size"),dt(o.variables,e.lineHeights,"line-height"),dt(o.variables,e.shadows,"shadow"),dt(o.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((i,r)=>{o.variables[`--mantine-primary-color-${r}`]=`var(--mantine-color-${e.primaryColor}-${r})`}),Me(e.colors).forEach(i=>{const r=e.colors[i];if(ru(r)){Object.assign(o.light,sn({theme:e,name:r.name,color:r.light,colorScheme:"light",withColorValues:!0})),Object.assign(o.dark,sn({theme:e,name:r.name,color:r.dark,colorScheme:"dark",withColorValues:!0}));return}r.forEach((a,c)=>{o.variables[`--mantine-color-${i}-${c}`]=a}),Object.assign(o.light,sn({theme:e,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,sn({theme:e,color:i,colorScheme:"dark",withColorValues:!1}))});const s=e.headings.sizes;return Me(s).forEach(i=>{o.variables[`--mantine-${i}-font-size`]=s[i].fontSize,o.variables[`--mantine-${i}-line-height`]=s[i].lineHeight,o.variables[`--mantine-${i}-font-weight`]=s[i].fontWeight||e.headings.fontWeight}),o};function au({theme:e,generator:t}){const n=Sa(e),o=t==null?void 0:t(e);return o?ns(n,o):n}const so=Sa(as);function cu(e){const t={variables:{},light:{},dark:{}};return Me(e.variables).forEach(n=>{so.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),Me(e.light).forEach(n=>{so.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),Me(e.dark).forEach(n=>{so.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function lu(e){return wa({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},e)}function Da({cssVariablesSelector:e,deduplicateCssVariables:t}){const n=it(),o=is(),s=jd(),i=au({theme:n,generator:s}),r=(e===void 0||e===":root"||e===":host")&&t,a=r?cu(i):i,c=wa(a,e);return c?y.jsx("style",{"data-mantine-styles":!0,nonce:o==null?void 0:o(),dangerouslySetInnerHTML:{__html:`${c}${r?"":lu(e)}`}}):null}Da.displayName="@mantine/CssVariables";function ut(e,t){var s,i;const n=typeof window!="undefined"&&"matchMedia"in window&&((s=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:s.matches),o=e!=="auto"?e:n?"dark":"light";(i=t())==null||i.setAttribute("data-mantine-color-scheme",o)}function du({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:o}){const s=I.useRef(null),[i,r]=I.useState(()=>e.get(t)),a=o||i,c=I.useCallback(d=>{o||(ut(d,n),r(d),e.set(d))},[e.set,a,o]),l=I.useCallback(()=>{r(t),ut(t,n),e.clear()},[e.clear,t]);return I.useEffect(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),ba(()=>{ut(e.get(t),n)},[]),I.useEffect(()=>{var u;if(o)return ut(o,n),()=>{};o===void 0&&ut(i,n),typeof window!="undefined"&&"matchMedia"in window&&(s.current=window.matchMedia("(prefers-color-scheme: dark)"));const d=f=>{i==="auto"&&ut(f.matches?"dark":"light",n)};return(u=s.current)==null||u.addEventListener("change",d),()=>{var f;return(f=s.current)==null?void 0:f.removeEventListener("change",d)}},[i,o]),{colorScheme:a,setColorScheme:c,clearColorScheme:l}}function uu({respectReducedMotion:e,getRootElement:t}){ba(()=>{var n;e&&((n=t())==null||n.setAttribute("data-respect-reduced-motion","true"))},[e])}function Ca({theme:e,children:t,getStyleNonce:n,withStaticClasses:o=!0,withGlobalClasses:s=!0,deduplicateCssVariables:i=!0,withCssVariables:r=!0,cssVariablesSelector:a,classNamesPrefix:c="mantine",colorSchemeManager:l=eu(),defaultColorScheme:d="light",getRootElement:u=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:h,stylesTransform:p,env:g}){const{colorScheme:v,setColorScheme:b,clearColorScheme:w}=du({defaultColorScheme:d,forceColorScheme:h,manager:l,getRootElement:u});return uu({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:u}),y.jsx(va.Provider,{value:{colorScheme:v,setColorScheme:b,clearColorScheme:w,getRootElement:u,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:a!=null?a:":root",withStaticClasses:o,stylesTransform:p,env:g},children:y.jsxs(Ta,{theme:e,children:[r&&y.jsx(Da,{cssVariablesSelector:a,deduplicateCssVariables:i}),s&&y.jsx(su,{}),t]})})}Ca.displayName="@mantine/core/MantineProvider";const fu={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function hu({theme:e,options:t,unstyled:n}){return st((t==null?void 0:t.focusable)&&!n&&(e.focusClassName||fu[e.focusRing]),(t==null?void 0:t.active)&&!n&&e.activeClassName)}function pu({selector:e,stylesCtx:t,options:n,props:o,theme:s}){return ss({theme:s,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||o,stylesCtx:t})[e]}function _i({selector:e,stylesCtx:t,theme:n,classNames:o,props:s}){return ss({theme:n,classNames:o,props:s,stylesCtx:t})[e]}function mu({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function gu({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function bu({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:o}){return o===!1?[]:e.map(s=>`${t}-${s}-${n}`)}function yu({themeName:e,theme:t,selector:n,props:o,stylesCtx:s}){return e.map(i=>{var r,a;return(a=ss({theme:t,classNames:(r=t.components[i])==null?void 0:r.classNames,props:o,stylesCtx:s}))==null?void 0:a[n]})}function vu({options:e,classes:t,selector:n,unstyled:o}){return e!=null&&e.variant&&!o?t[`${n}--${e.variant}`]:void 0}function Tu({theme:e,options:t,themeName:n,selector:o,classNamesPrefix:s,classNames:i,classes:r,unstyled:a,className:c,rootSelector:l,props:d,stylesCtx:u,withStaticClasses:f,headless:h,transformedStyles:p}){return st(hu({theme:e,options:t,unstyled:a||h}),yu({theme:e,themeName:n,selector:o,props:d,stylesCtx:u}),vu({options:t,classes:r,selector:o,unstyled:a}),_i({selector:o,stylesCtx:u,theme:e,classNames:i,props:d}),_i({selector:o,stylesCtx:u,theme:e,classNames:p,props:d}),pu({selector:o,stylesCtx:u,options:t,props:d,theme:e}),mu({rootSelector:l,selector:o,className:c}),gu({selector:o,classes:r,unstyled:a||h}),f&&!h&&bu({themeName:n,classNamesPrefix:s,selector:o,withStaticClass:t==null?void 0:t.withStaticClass}),t==null?void 0:t.className)}function wu({theme:e,themeName:t,props:n,stylesCtx:o,selector:s}){return t.map(i=>{var r;return xo({theme:e,styles:(r=e.components[i])==null?void 0:r.styles,props:n,stylesCtx:o})[s]}).reduce((i,r)=>m(m({},i),r),{})}function Eo({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((n,o)=>m(m({},n),Eo({style:o,theme:t})),{}):typeof e=="function"?e(t):e==null?{}:e}function Su(e){return e.reduce((t,n)=>(n&&Object.keys(n).forEach(o=>{t[o]=m(m({},t[o]),os(n[o]))}),t),{})}function Du({vars:e,varsResolver:t,theme:n,props:o,stylesCtx:s,selector:i,themeName:r,headless:a}){var c;return(c=Su([a?{}:t==null?void 0:t(n,o,s),...r.map(l=>{var d,u,f;return(f=(u=(d=n.components)==null?void 0:d[l])==null?void 0:u.vars)==null?void 0:f.call(u,n,o,s)}),e==null?void 0:e(n,o,s)]))==null?void 0:c[i]}function Cu({theme:e,themeName:t,selector:n,options:o,props:s,stylesCtx:i,rootSelector:r,styles:a,style:c,vars:l,varsResolver:d,headless:u,withStylesTransform:f}){return m(m(m(m(m(m({},!f&&wu({theme:e,themeName:t,props:s,stylesCtx:i,selector:n})),!f&&xo({theme:e,styles:a,props:s,stylesCtx:i})[n]),!f&&xo({theme:e,styles:o==null?void 0:o.styles,props:(o==null?void 0:o.props)||s,stylesCtx:i})[n]),Du({theme:e,props:s,stylesCtx:i,vars:l,varsResolver:d,selector:n,themeName:t,headless:u})),r===n?Eo({style:c,theme:e}):null),Eo({style:o==null?void 0:o.style,theme:e}))}function Au({props:e,stylesCtx:t,themeName:n}){var r;const o=it(),s=(r=zd())==null?void 0:r();return{getTransformedStyles:a=>s?[...a.map(l=>s(l,{props:e,theme:o,ctx:t})),...n.map(l=>{var d;return s((d=o.components[l])==null?void 0:d.styles,{props:e,theme:o,ctx:t})})].filter(Boolean):[],withStylesTransform:!!s}}function be({name:e,classes:t,props:n,stylesCtx:o,className:s,style:i,rootSelector:r="root",unstyled:a,classNames:c,styles:l,vars:d,varsResolver:u,attributes:f}){const h=it(),p=Fd(),g=$d(),v=Hd(),b=(Array.isArray(e)?e:[e]).filter(S=>S),{withStylesTransform:w,getTransformedStyles:T}=Au({props:n,stylesCtx:o,themeName:b});return(S,C)=>m({className:Tu({theme:h,options:C,themeName:b,selector:S,classNamesPrefix:p,classNames:c,classes:t,unstyled:a,className:s,rootSelector:r,props:n,stylesCtx:o,withStaticClasses:g,headless:v,transformedStyles:T([C==null?void 0:C.styles,l])}),style:Cu({theme:h,themeName:b,selector:S,options:C,props:n,stylesCtx:o,rootSelector:r,styles:l,style:i,vars:d,varsResolver:u,headless:v,withStylesTransform:w})},f==null?void 0:f[S])}function me(e,t,n){var r;const o=it(),s=(r=o.components[e])==null?void 0:r.defaultProps,i=typeof s=="function"?s(o):s;return m(m(m({},t),i),os(n))}function io(e){return Me(e).reduce((t,n)=>e[n]!==void 0?`${t}${xd(n)}:${e[n]};`:t,"").trim()}function ku({selector:e,styles:t,media:n,container:o}){const s=t?io(t):"",i=Array.isArray(n)?n.map(a=>`@media${a.query}{${e}{${io(a.styles)}}}`):[],r=Array.isArray(o)?o.map(a=>`@container ${a.query}{${e}{${io(a.styles)}}}`):[];return`${s?`${e}{${s}}`:""}${i.join("")}${r.join("")}`.trim()}function xu(e){const t=is();return y.jsx("style",{"data-mantine-styles":"inline",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:ku(e)}})}function Iu(e){const Ks=e,{m:t,mx:n,my:o,mt:s,mb:i,ml:r,mr:a,me:c,ms:l,p:d,px:u,py:f,pt:h,pb:p,pl:g,pr:v,pe:b,ps:w,bd:T,bdrs:S,bg:C,c:A,opacity:k,ff:D,fz:E,fw:U,lts:R,ta:N,lh:L,fs:O,tt:X,td:de,w:G,miw:q,maw:ce,h:se,mih:x,mah:j,bgsz:B,bgp:Y,bgr:ye,bga:ke,pos:$,top:te,left:fe,bottom:he,right:F,inset:ne,display:H,flex:K,hiddenFrom:at,visibleFrom:xe,lightHidden:Dl,darkHidden:Cl,sx:Al}=Ks,kl=_(Ks,["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:os({m:t,mx:n,my:o,mt:s,mb:i,ml:r,mr:a,me:c,ms:l,p:d,px:u,py:f,pt:h,pb:p,pl:g,pr:v,pe:b,ps:w,bd:T,bg:C,c:A,opacity:k,ff:D,fz:E,fw:U,lts:R,ta:N,lh:L,fs:O,tt:X,td:de,w:G,miw:q,maw:ce,h:se,mih:x,mah:j,bgsz:B,bgp:Y,bgr:ye,bga:ke,pos:$,top:te,left:fe,bottom:he,right:F,inset:ne,display:H,flex:K,bdrs:S,hiddenFrom:at,visibleFrom:xe,lightHidden:Dl,darkHidden:Cl,sx:Al}),rest:kl}}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 ls(e,t){const n=Yt({color:e,theme:t});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function Mu(e,t){const n=Yt({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:ls(e,t)}function Uu(e,t){if(typeof e=="number")return M(e);if(typeof e=="string"){const[n,o,...s]=e.split(" ").filter(r=>r.trim()!=="");let i=`${M(n)}`;return o&&(i+=` ${o}`),s.length>0&&(i+=` ${ls(s.join(" "),t)}`),i.trim()}return e}const zi={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 Pu(e){return typeof e=="string"&&e in zi?zi[e]:e}const Ru=["h1","h2","h3","h4","h5","h6"];function Nu(e,t){return typeof e=="string"&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&Ru.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?M(e):e}function Lu(e){return e}const Bu=["h1","h2","h3","h4","h5","h6"];function Ou(e,t){return typeof e=="string"&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&Bu.includes(e)?`var(--mantine-${e}-line-height)`:e}function Vu(e,t){return typeof e=="string"&&e in t.radius?`var(--mantine-radius-${e})`:typeof e=="number"||typeof e=="string"?M(e):e}function ju(e){return typeof e=="number"?M(e):e}function Fu(e,t){if(typeof e=="number")return M(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in t.spacing))return M(e);const o=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${o}) * -1)`:`var(${o})`}return e}const ro={color:ls,textColor:Mu,fontSize:Nu,spacing:Fu,radius:Vu,identity:Lu,size:ju,lineHeight:Ou,fontFamily:Pu,border:Uu};function Xi(e){return e.replace("(min-width: ","").replace("em)","")}function $u(n){var o=n,{media:e}=o,t=_(o,["media"]);const i=Object.keys(e).sort((r,a)=>Number(Xi(r))-Number(Xi(a))).map(r=>({query:r,styles:e[r]}));return P(m({},t),{media:i})}function Hu(e){if(typeof e!="object"||e===null)return!1;const t=Object.keys(e);return!(t.length===1&&t[0]==="base")}function _u(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function zu(e){return typeof e=="object"&&e!==null?Me(e).filter(t=>t!=="base"):[]}function Xu(e,t){return typeof e=="object"&&e!==null&&t in e?e[t]:e}function Wu({styleProps:e,data:t,theme:n}){return $u(Me(e).reduce((o,s)=>{if(s==="hiddenFrom"||s==="visibleFrom"||s==="sx")return o;const i=t[s],r=Array.isArray(i.property)?i.property:[i.property],a=_u(e[s]);if(!Hu(e[s]))return r.forEach(l=>{o.inlineStyles[l]=ro[i.type](a,n)}),o;o.hasResponsiveStyles=!0;const c=zu(e[s]);return r.forEach(l=>{a!=null&&(o.styles[l]=ro[i.type](a,n)),c.forEach(d=>{const u=`(min-width: ${n.breakpoints[d]})`;o.media[u]=P(m({},o.media[u]),{[l]:ro[i.type](Xu(e[s],d),n)})})}),o},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Gu(){return`__m__-${I.useId().replace(/[:«»]/g,"")}`}function Aa(e){return e.startsWith("data-")?e:`data-${e}`}function Yu(e){return Object.keys(e).reduce((t,n)=>{const o=e[n];return o===void 0||o===""||o===!1||o===null||(t[Aa(n)]=e[n]),t},{})}function ka(e){return e?typeof e=="string"?{[Aa(e)]:!0}:Array.isArray(e)?[...e].reduce((t,n)=>m(m({},t),ka(n)),{}):Yu(e):null}function Mo(e,t){return Array.isArray(e)?[...e].reduce((n,o)=>m(m({},n),Mo(o,t)),{}):typeof e=="function"?e(t):e==null?{}:e}function Ku({theme:e,style:t,vars:n,styleProps:o}){const s=Mo(t,e),i=Mo(n,e);return m(m(m({},s),i),o)}const xa=I.forwardRef((g,p)=>{var v=g,{component:e,style:t,__vars:n,className:o,variant:s,mod:i,size:r,hiddenFrom:a,visibleFrom:c,lightHidden:l,darkHidden:d,renderRoot:u,__size:f}=v,h=_(v,["component","style","__vars","className","variant","mod","size","hiddenFrom","visibleFrom","lightHidden","darkHidden","renderRoot","__size"]);var U;const b=it(),w=e||"div",{styleProps:T,rest:S}=Iu(h),C=_d(),A=(U=C==null?void 0:C())==null?void 0:U(T.sx),k=Gu(),D=Wu({styleProps:T,theme:b,data:Eu}),E=m(m({ref:p,style:Ku({theme:b,style:t,vars:n,styleProps:D.inlineStyles}),className:st(o,A,{[k]:D.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":d,[`mantine-hidden-from-${a}`]:a,[`mantine-visible-from-${c}`]:c}),"data-variant":s,"data-size":ma(r)?void 0:r||void 0,size:f},ka(i)),S);return y.jsxs(y.Fragment,{children:[D.hasResponsiveStyles&&y.jsx(xu,{selector:`.${k}`,styles:D.styles,media:D.media}),typeof u=="function"?u(E):y.jsx(w,m({},E))]})});xa.displayName="@mantine/core/Box";const z=xa;function Ia(e){return e}function Dt(e){const t=I.forwardRef(e);return t.extend=Ia,t.withProps=n=>{const o=I.forwardRef((s,i)=>y.jsx(t,P(m(m({},n),s),{ref:i})));return o.extend=t.extend,o.displayName=`WithProps(${t.displayName})`,o},t}function rt(e){const t=I.forwardRef(e);return t.withProps=n=>{const o=I.forwardRef((s,i)=>y.jsx(t,P(m(m({},n),s),{ref:i})));return o.extend=t.extend,o.displayName=`WithProps(${t.displayName})`,o},t.extend=Ia,t}var Ea={root:"m_87cf2631"};const Zu={__staticSelector:"UnstyledButton"},ds=rt((e,t)=>{const n=me("UnstyledButton",Zu,e),h=n,{className:o,component:s="button",__staticSelector:i,unstyled:r,classNames:a,styles:c,style:l,attributes:d}=h,u=_(h,["className","component","__staticSelector","unstyled","classNames","styles","style","attributes"]),f=be({name:i,props:n,classes:Ea,className:o,style:l,classNames:a,styles:c,unstyled:r,attributes:d});return y.jsx(z,m(P(m({},f("root",{focusable:!0})),{component:s,ref:t,type:s==="button"?"button":void 0}),u))});ds.classes=Ea;ds.displayName="@mantine/core/UnstyledButton";var Ma={root:"m_1b7284a3"};const qu=(e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:Gt(t),"--paper-shadow":Ud(n)}}),ft=rt((e,t)=>{const n=me("Paper",null,e),b=n,{classNames:o,className:s,style:i,styles:r,unstyled:a,withBorder:c,vars:l,radius:d,shadow:u,variant:f,mod:h,attributes:p}=b,g=_(b,["classNames","className","style","styles","unstyled","withBorder","vars","radius","shadow","variant","mod","attributes"]),v=be({name:"Paper",props:n,classes:Ma,className:s,style:i,classNames:o,styles:r,unstyled:a,attributes:p,vars:l,varsResolver:qu});return y.jsx(z,m(P(m({ref:t,mod:[{"data-with-border":c},h]},v("root")),{variant:f}),g))});ft.classes=Ma;ft.displayName="@mantine/core/Paper";const Rt=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),rn={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:P(m({},Rt("bottom")),{common:{transformOrigin:"center center"}}),"pop-bottom-left":P(m({},Rt("bottom")),{common:{transformOrigin:"bottom left"}}),"pop-bottom-right":P(m({},Rt("bottom")),{common:{transformOrigin:"bottom right"}}),"pop-top-left":P(m({},Rt("top")),{common:{transformOrigin:"top left"}}),"pop-top-right":P(m({},Rt("top")),{common:{transformOrigin:"top right"}})},Wi={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function Qu({transition:e,state:t,duration:n,timingFunction:o}){const s={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:o};return typeof e=="string"?e in rn?m(m(m({transitionProperty:rn[e].transitionProperty},s),rn[e].common),rn[e][Wi[t]]):{}:m(m(m({transitionProperty:e.transitionProperty},s),e.common),e[Wi[t]])}function Ju({duration:e,exitDuration:t,timingFunction:n,mounted:o,onEnter:s,onExit:i,onEntered:r,onExited:a,enterDelay:c,exitDelay:l}){const d=it(),u=Bd(),f=d.respectReducedMotion?u:!1,[h,p]=I.useState(f?0:e),[g,v]=I.useState(o?"entered":"exited"),b=I.useRef(-1),w=I.useRef(-1),T=I.useRef(-1);function S(){window.clearTimeout(b.current),window.clearTimeout(w.current),cancelAnimationFrame(T.current)}const C=k=>{S();const D=k?s:i,E=k?r:a,U=f?0:k?e:t;p(U),U===0?(typeof D=="function"&&D(),typeof E=="function"&&E(),v(k?"entered":"exited")):T.current=requestAnimationFrame(()=>{Ml.flushSync(()=>{v(k?"pre-entering":"pre-exiting")}),T.current=requestAnimationFrame(()=>{typeof D=="function"&&D(),v(k?"entering":"exiting"),b.current=window.setTimeout(()=>{typeof E=="function"&&E(),v(k?"entered":"exited")},U)})})},A=k=>{if(S(),typeof(k?c:l)!="number"){C(k);return}w.current=window.setTimeout(()=>{C(k)},k?c:l)};return Ld(()=>{A(o)},[o]),I.useEffect(()=>()=>{S()},[]),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:n||"ease"}}function Ua({keepMounted:e,transition:t="fade",duration:n=250,exitDuration:o=n,mounted:s,children:i,timingFunction:r="ease",onExit:a,onEntered:c,onEnter:l,onExited:d,enterDelay:u,exitDelay:f}){const h=Xd(),{transitionDuration:p,transitionStatus:g,transitionTimingFunction:v}=Ju({mounted:s,exitDuration:o,duration:n,timingFunction:r,onExit:a,onEntered:c,onEnter:l,onExited:d,enterDelay:u,exitDelay:f});return p===0||h==="test"?s?y.jsx(y.Fragment,{children:i({})}):e?i({display:"none"}):null:g==="exited"?e?i({display:"none"}):null:y.jsx(y.Fragment,{children:i(Qu({transition:t,duration:p,state:g,timingFunction:v}))})}Ua.displayName="@mantine/core/Transition";var Ce={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 Pa=I.forwardRef((o,n)=>{var s=o,{className:e}=s,t=_(s,["className"]);return y.jsxs(z,P(m({component:"span",className:st(Ce.barsLoader,e)},t),{ref:n,children:[y.jsx("span",{className:Ce.bar}),y.jsx("span",{className:Ce.bar}),y.jsx("span",{className:Ce.bar})]}))});Pa.displayName="@mantine/core/Bars";const Ra=I.forwardRef((o,n)=>{var s=o,{className:e}=s,t=_(s,["className"]);return y.jsxs(z,P(m({component:"span",className:st(Ce.dotsLoader,e)},t),{ref:n,children:[y.jsx("span",{className:Ce.dot}),y.jsx("span",{className:Ce.dot}),y.jsx("span",{className:Ce.dot})]}))});Ra.displayName="@mantine/core/Dots";const Na=I.forwardRef((o,n)=>{var s=o,{className:e}=s,t=_(s,["className"]);return y.jsx(z,P(m({component:"span",className:st(Ce.ovalLoader,e)},t),{ref:n}))});Na.displayName="@mantine/core/Oval";const La={bars:Pa,oval:Na,dots:Ra},ef={loaders:La,type:"oval"},tf=(e,{size:t,color:n})=>({root:{"--loader-size":Pe(t,"loader-size"),"--loader-color":n?mn(n,e):void 0}}),Tt=Dt((e,t)=>{const n=me("Loader",ef,e),w=n,{size:o,color:s,type:i,vars:r,className:a,style:c,classNames:l,styles:d,unstyled:u,loaders:f,variant:h,children:p,attributes:g}=w,v=_(w,["size","color","type","vars","className","style","classNames","styles","unstyled","loaders","variant","children","attributes"]),b=be({name:"Loader",props:n,classes:Ce,className:a,style:c,classNames:l,styles:d,unstyled:u,attributes:g,vars:r,varsResolver:tf});return p?y.jsx(z,P(m(P(m({},b("root")),{ref:t}),v),{children:p})):y.jsx(z,m(P(m({},b("root")),{ref:t,component:f[i],variant:h,size:o}),v))});Tt.defaultLoaders=La;Tt.classes=Ce;Tt.displayName="@mantine/core/Loader";var Ct={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const Gi={orientation:"horizontal"},nf=(e,{borderWidth:t})=>({group:{"--ai-border-width":M(t)}}),us=Dt((e,t)=>{const n=me("ActionIconGroup",Gi,e),v=me("ActionIconGroup",Gi,e),{className:o,style:s,classNames:i,styles:r,unstyled:a,orientation:c,vars:l,borderWidth:d,variant:u,mod:f,attributes:h}=v,p=_(v,["className","style","classNames","styles","unstyled","orientation","vars","borderWidth","variant","mod","attributes"]),g=be({name:"ActionIconGroup",props:n,classes:Ct,className:o,style:s,classNames:i,styles:r,unstyled:a,attributes:h,vars:l,varsResolver:nf,rootSelector:"group"});return y.jsx(z,m(P(m({},g("group")),{ref:t,variant:u,mod:[{"data-orientation":c},f],role:"group"}),p))});us.classes=Ct;us.displayName="@mantine/core/ActionIconGroup";const of=(e,{radius:t,color:n,gradient:o,variant:s,autoContrast:i,size:r})=>{const a=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:s||"filled",autoContrast:i});return{groupSection:{"--section-height":Pe(r,"section-height"),"--section-padding-x":Pe(r,"section-padding-x"),"--section-fz":ga(r),"--section-radius":t===void 0?void 0:Gt(t),"--section-bg":n||s?a.background:void 0,"--section-color":a.color,"--section-bd":n||s?a.border:void 0}}},fs=Dt((e,t)=>{const n=me("ActionIconGroupSection",null,e),v=n,{className:o,style:s,classNames:i,styles:r,unstyled:a,vars:c,variant:l,gradient:d,radius:u,autoContrast:f,attributes:h}=v,p=_(v,["className","style","classNames","styles","unstyled","vars","variant","gradient","radius","autoContrast","attributes"]),g=be({name:"ActionIconGroupSection",props:n,classes:Ct,className:o,style:s,classNames:i,styles:r,unstyled:a,attributes:h,vars:c,varsResolver:of,rootSelector:"groupSection"});return y.jsx(z,m(P(m({},g("groupSection")),{ref:t,variant:l}),p))});fs.classes=Ct;fs.displayName="@mantine/core/ActionIconGroupSection";const sf=(e,{size:t,radius:n,variant:o,gradient:s,color:i,autoContrast:r})=>{const a=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:s,variant:o||"filled",autoContrast:r});return{root:{"--ai-size":Pe(t,"ai-size"),"--ai-radius":n===void 0?void 0:Gt(n),"--ai-bg":i||o?a.background:void 0,"--ai-hover":i||o?a.hover:void 0,"--ai-hover-color":i||o?a.hoverColor:void 0,"--ai-color":a.color,"--ai-bd":i||o?a.border:void 0}}},tt=rt((e,t)=>{const n=me("ActionIcon",null,e),E=n,{className:o,unstyled:s,variant:i,classNames:r,styles:a,style:c,loading:l,loaderProps:d,size:u,color:f,radius:h,__staticSelector:p,gradient:g,vars:v,children:b,disabled:w,"data-disabled":T,autoContrast:S,mod:C,attributes:A}=E,k=_(E,["className","unstyled","variant","classNames","styles","style","loading","loaderProps","size","color","radius","__staticSelector","gradient","vars","children","disabled","data-disabled","autoContrast","mod","attributes"]),D=be({name:["ActionIcon",p],props:n,className:o,style:c,classes:Ct,classNames:r,styles:a,unstyled:s,attributes:A,vars:v,varsResolver:sf});return y.jsxs(ds,P(m(m({},D("root",{active:!w&&!l&&!T})),k),{unstyled:s,variant:i,size:u,disabled:w||l,ref:t,mod:[{loading:l,disabled:w||T},C],children:[typeof l=="boolean"&&y.jsx(Ua,{mounted:l,transition:"slide-down",duration:150,children:U=>y.jsx(z,P(m({component:"span"},D("loader",{style:U})),{"aria-hidden":!0,children:y.jsx(Tt,m({color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)"},d))}))}),y.jsx(z,P(m({component:"span",mod:{loading:l}},D("icon")),{children:b}))]}))});tt.classes=Ct;tt.displayName="@mantine/core/ActionIcon";tt.Group=us;tt.GroupSection=fs;function rf(e){return I.Children.toArray(e).filter(Boolean)}var Ba={root:"m_4081bf90"};const af={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},cf=(e,{grow:t,preventGrowOverflow:n,gap:o,align:s,justify:i,wrap:r},{childWidth:a})=>({root:{"--group-child-width":t&&n?a:void 0,"--group-gap":Cn(o),"--group-align":s,"--group-justify":i,"--group-wrap":r}}),ge=Dt((e,t)=>{const n=me("Group",af,e),R=n,{classNames:o,className:s,style:i,styles:r,unstyled:a,children:c,gap:l,align:d,justify:u,wrap:f,grow:h,preventGrowOverflow:p,vars:g,variant:v,__size:b,mod:w,attributes:T}=R,S=_(R,["classNames","className","style","styles","unstyled","children","gap","align","justify","wrap","grow","preventGrowOverflow","vars","variant","__size","mod","attributes"]),C=rf(c),A=C.length,k=Cn(l!=null?l:"md"),E={childWidth:`calc(${100/A}% - (${k} - ${k} / ${A}))`},U=be({name:"Group",props:n,stylesCtx:E,className:s,style:i,classes:Ba,classNames:o,styles:r,unstyled:a,attributes:T,vars:g,varsResolver:cf});return y.jsx(z,P(m(P(m({},U("root")),{ref:t,variant:v,mod:[{grow:h},w],size:b}),S),{children:C}))});ge.classes=Ba;ge.displayName="@mantine/core/Group";var Oa={root:"m_b6d8b162"};function lf(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const df={inherit:!1},uf=(e,{variant:t,lineClamp:n,gradient:o,size:s,color:i})=>({root:{"--text-fz":ga(s),"--text-lh":Md(s),"--text-gradient":t==="gradient"?Io(o,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":i?mn(i,e):void 0}}),ie=rt((e,t)=>{const n=me("Text",df,e),A=n,{lineClamp:o,truncate:s,inline:i,inherit:r,gradient:a,span:c,__staticSelector:l,vars:d,className:u,style:f,classNames:h,styles:p,unstyled:g,variant:v,mod:b,size:w,attributes:T}=A,S=_(A,["lineClamp","truncate","inline","inherit","gradient","span","__staticSelector","vars","className","style","classNames","styles","unstyled","variant","mod","size","attributes"]),C=be({name:["Text",l],props:n,classes:Oa,className:u,style:f,classNames:h,styles:p,unstyled:g,attributes:T,vars:d,varsResolver:uf});return y.jsx(z,m(P(m({},C("root",{focusable:!0})),{ref:t,component:c?"span":"p",variant:v,mod:[{"data-truncate":lf(s),"data-line-clamp":typeof o=="number","data-inline":i,"data-inherit":r},b],size:w}),S))});ie.classes=Oa;ie.displayName="@mantine/core/Text";const Va=I.createContext(null),ff=Va.Provider;function hf(){return{withinGroup:!!I.useContext(Va)}}var An={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const pf=(e,{spacing:t})=>({group:{"--ag-spacing":Cn(t)}}),hs=Dt((e,t)=>{const n=me("AvatarGroup",null,e),h=n,{classNames:o,className:s,style:i,styles:r,unstyled:a,vars:c,spacing:l,attributes:d}=h,u=_(h,["classNames","className","style","styles","unstyled","vars","spacing","attributes"]),f=be({name:"AvatarGroup",classes:An,props:n,className:s,style:i,classNames:o,styles:r,unstyled:a,attributes:d,vars:c,varsResolver:pf,rootSelector:"group"});return y.jsx(ff,{value:!0,children:y.jsx(z,m(m({ref:t},f("group")),u))})});hs.classes=An;hs.displayName="@mantine/core/AvatarGroup";function mf(e){return y.jsx("svg",P(m({},e),{"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.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 gf(e){let t=0;for(let n=0;n<e.length;n+=1){const o=e.charCodeAt(n);t=(t<<5)-t+o,t|=0}return t}const bf=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"];function yf(e,t=bf){const n=gf(e),o=Math.abs(n)%t.length;return t[o]}function vf(e,t=2){const n=e.split(" ");return n.length===1?e.slice(0,t).toUpperCase():n.map(o=>o[0]).slice(0,t).join("").toUpperCase()}const Tf=(e,{size:t,radius:n,variant:o,gradient:s,color:i,autoContrast:r,name:a,allowedInitialsColors:c})=>{const l=i==="initials"&&typeof a=="string"?yf(a,c):i,d=e.variantColorResolver({color:l||"gray",theme:e,gradient:s,variant:o||"light",autoContrast:r});return{root:{"--avatar-size":Pe(t,"avatar-size"),"--avatar-radius":n===void 0?void 0:Gt(n),"--avatar-bg":l||o?d.background:void 0,"--avatar-color":l||o?d.color:void 0,"--avatar-bd":l||o?d.border:void 0}}},Ft=rt((e,t)=>{const n=me("Avatar",null,e),U=n,{classNames:o,className:s,style:i,styles:r,unstyled:a,vars:c,src:l,alt:d,radius:u,color:f,gradient:h,imageProps:p,children:g,autoContrast:v,mod:b,name:w,allowedInitialsColors:T,attributes:S}=U,C=_(U,["classNames","className","style","styles","unstyled","vars","src","alt","radius","color","gradient","imageProps","children","autoContrast","mod","name","allowedInitialsColors","attributes"]),A=hf(),[k,D]=I.useState(!l),E=be({name:"Avatar",props:n,classes:An,className:s,style:i,classNames:o,styles:r,unstyled:a,attributes:S,vars:c,varsResolver:Tf});return I.useEffect(()=>D(!l),[l]),y.jsx(z,P(m(P(m({},E("root")),{mod:[{"within-group":A.withinGroup},b],ref:t}),C),{children:k||!l?y.jsx("span",P(m({},E("placeholder")),{title:d,children:g||typeof w=="string"&&vf(w)||y.jsx(mf,{})})):y.jsx("img",P(m(m({},p),E("image")),{src:l,alt:d,onError:R=>{var N;D(!0),(N=p==null?void 0:p.onError)==null||N.call(p,R)}}))}))});Ft.classes=An;Ft.displayName="@mantine/core/Avatar";Ft.Group=hs;var ja={root:"m_4451eb3a"};const ps=rt((e,t)=>{const n=me("Center",null,e),p=n,{classNames:o,className:s,style:i,styles:r,unstyled:a,vars:c,inline:l,mod:d,attributes:u}=p,f=_(p,["classNames","className","style","styles","unstyled","vars","inline","mod","attributes"]),h=be({name:"Center",props:n,classes:ja,className:s,style:i,classNames:o,styles:r,unstyled:a,attributes:u,vars:c});return y.jsx(z,m(m({ref:t,mod:[{inline:l},d]},h("root")),f))});ps.classes=ja;ps.displayName="@mantine/core/Center";var Fa={root:"m_9e117634"};const wf=(e,{radius:t,fit:n})=>({root:{"--image-radius":t===void 0?void 0:Gt(t),"--image-object-fit":n}}),Qe=rt((e,t)=>{const n=me("Image",null,e),S=n,{classNames:o,className:s,style:i,styles:r,unstyled:a,vars:c,onError:l,src:d,radius:u,fit:f,fallbackSrc:h,mod:p,attributes:g}=S,v=_(S,["classNames","className","style","styles","unstyled","vars","onError","src","radius","fit","fallbackSrc","mod","attributes"]),[b,w]=I.useState(!d);I.useEffect(()=>w(!d),[d]);const T=be({name:"Image",classes:Fa,props:n,className:s,style:i,classNames:o,styles:r,unstyled:a,attributes:g,vars:c,varsResolver:wf});return b&&h?y.jsx(z,m(P(m({component:"img",ref:t,src:h},T("root")),{onError:l,mod:["fallback",p]}),v)):y.jsx(z,m(P(m({component:"img",ref:t},T("root")),{src:d,onError:C=>{l==null||l(C),w(!0)},mod:p}),v))});Qe.classes=Fa;Qe.displayName="@mantine/core/Image";var $a={root:"m_6d731127"};const Sf={gap:"md",align:"stretch",justify:"flex-start"},Df=(e,{gap:t,align:n,justify:o})=>({root:{"--stack-gap":Cn(t),"--stack-align":n,"--stack-justify":o}}),Ee=Dt((e,t)=>{const n=me("Stack",Sf,e),v=n,{classNames:o,className:s,style:i,styles:r,unstyled:a,vars:c,align:l,justify:d,gap:u,variant:f,attributes:h}=v,p=_(v,["classNames","className","style","styles","unstyled","vars","align","justify","gap","variant","attributes"]),g=be({name:"Stack",props:n,classes:$a,className:s,style:i,classNames:o,styles:r,unstyled:a,attributes:h,vars:c,varsResolver:Df});return y.jsx(z,m(P(m({ref:t},g("root")),{variant:f}),p))});Ee.classes=$a;Ee.displayName="@mantine/core/Stack";const ms=I.createContext(null);ms.displayName="W3PaymentsContext";const Cf=({endpoint:e,environment:t="sandbox",children:n})=>{const{w3payments:o,httpClient:s,isInitialized:i,initError:r}=I.useMemo(()=>{try{console.debug("W3PaymentsProvider: Initializing clients...");const c=ts.createClient(t),l=new kd({endpoint:e});return console.debug("W3PaymentsProvider: Both clients initialized successfully"),{w3payments:c,httpClient:l,isInitialized:!0,initError:null}}catch(c){const l=c instanceof Error?c.message:"Failed to initialize W3Payments clients";return console.error("W3PaymentsProvider initialization error:",c),{w3payments:null,httpClient:null,isInitialized:!1,initError:l}}},[e,t]),a={w3payments:o,httpClient:s,isInitialized:i,endpoint:e};return r?y.jsxs("div",{className:"w3-error-container",style:{padding:"16px",border:"2px solid #ef4444",borderRadius:"8px",backgroundColor:"#fef2f2",color:"#dc2626",fontFamily:"system-ui, sans-serif"},children:[y.jsx("strong",{children:"W3PaymentsProvider Error:"}),y.jsx("p",{style:{margin:"8px 0 0 0"},children:r})]}):i?y.jsx(Ca,{children:y.jsx(ms.Provider,{value:a,children:n})}):y.jsx("div",{className:"w3-loading-container",style:{padding:"16px",backgroundColor:"#f9fafb",color:"#374151",fontFamily:"system-ui, sans-serif"},children:"Initializing W3Payments..."})},gs=I.createContext({});function bs(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const ys=typeof window!="undefined",Ha=ys?I.useLayoutEffect:I.useEffect,kn=I.createContext(null);function vs(e,t){e.indexOf(t)===-1&&e.push(t)}function Ts(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ne=(e,t,n)=>n>t?t:n<e?e:n;function Uo(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let At=()=>{},Le=()=>{};process.env.NODE_ENV!=="production"&&(At=(e,t,n)=>{!e&&typeof console!="undefined"&&console.warn(Uo(t,n))},Le=(e,t,n)=>{if(!e)throw new Error(Uo(t,n))});const Be={},_a=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function za(e){return typeof e=="object"&&e!==null}const Xa=e=>/^0[^.\s]+$/u.test(e);function ws(e){let t;return()=>(t===void 0&&(t=e()),t)}const we=e=>e,Af=(e,t)=>n=>t(e(n)),Kt=(...e)=>e.reduce(Af),$t=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class Ss{constructor(){this.subscriptions=[]}add(t){return vs(this.subscriptions,t),()=>Ts(this.subscriptions,t)}notify(t,n,o){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,o);else for(let i=0;i<s;i++){const r=this.subscriptions[i];r&&r(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ae=e=>e*1e3,Te=e=>e/1e3;function Wa(e,t){return t?e*(1e3/t):0}const Yi=new Set;function Ds(e,t,n){e||Yi.has(t)||(console.warn(Uo(t,n)),Yi.add(t))}const Ga=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,kf=1e-7,xf=12;function If(e,t,n,o,s){let i,r,a=0;do r=t+(n-t)/2,i=Ga(r,o,s)-e,i>0?n=r:t=r;while(Math.abs(i)>kf&&++a<xf);return r}function Zt(e,t,n,o){if(e===t&&n===o)return we;const s=i=>If(i,0,1,e,n);return i=>i===0||i===1?i:Ga(s(i),t,o)}const Ya=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ka=e=>t=>1-e(1-t),Za=Zt(.33,1.53,.69,.99),Cs=Ka(Za),qa=Ya(Cs),Qa=e=>(e*=2)<1?.5*Cs(e):.5*(2-Math.pow(2,-10*(e-1))),As=e=>1-Math.sin(Math.acos(e)),Ja=Ka(As),ec=Ya(As),Ef=Zt(.42,0,1,1),Mf=Zt(0,0,.58,1),tc=Zt(.42,0,.58,1),Uf=e=>Array.isArray(e)&&typeof e[0]!="number",nc=e=>Array.isArray(e)&&typeof e[0]=="number",Ki={linear:we,easeIn:Ef,easeInOut:tc,easeOut:Mf,circIn:As,circInOut:ec,circOut:Ja,backIn:Cs,backInOut:qa,backOut:Za,anticipate:Qa},Pf=e=>typeof e=="string",Zi=e=>{if(nc(e)){Le(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,o,s]=e;return Zt(t,n,o,s)}else if(Pf(e))return Le(Ki[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Ki[e];return e},an=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Rf(e,t){let n=new Set,o=new Set,s=!1,i=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(d){r.has(d)&&(l.schedule(d),e()),d(a)}const l={schedule:(d,u=!1,f=!1)=>{const p=f&&s?n:o;return u&&r.add(d),p.has(d)||p.add(d),d},cancel:d=>{o.delete(d),r.delete(d)},process:d=>{if(a=d,s){i=!0;return}s=!0,[n,o]=[o,n],n.forEach(c),n.clear(),s=!1,i&&(i=!1,l.process(d))}};return l}const Nf=40;function oc(e,t){let n=!1,o=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,r=an.reduce((T,S)=>(T[S]=Rf(i),T),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:d,update:u,preRender:f,render:h,postRender:p}=r,g=()=>{const T=Be.useManualTiming?s.timestamp:performance.now();n=!1,Be.useManualTiming||(s.delta=o?1e3/60:Math.max(Math.min(T-s.timestamp,Nf),1)),s.timestamp=T,s.isProcessing=!0,a.process(s),c.process(s),l.process(s),d.process(s),u.process(s),f.process(s),h.process(s),p.process(s),s.isProcessing=!1,n&&t&&(o=!1,e(g))},v=()=>{n=!0,o=!0,s.isProcessing||e(g)};return{schedule:an.reduce((T,S)=>{const C=r[S];return T[S]=(A,k=!1,D=!1)=>(n||v(),C.schedule(A,k,D)),T},{}),cancel:T=>{for(let S=0;S<an.length;S++)r[an[S]].cancel(T)},state:s,steps:r}}const{schedule:Z,cancel:Fe,state:ae,steps:ao}=oc(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:we,!0);let un;function Lf(){un=void 0}const pe={now:()=>(un===void 0&&pe.set(ae.isProcessing||Be.useManualTiming?ae.timestamp:performance.now()),un),set:e=>{un=e,queueMicrotask(Lf)}},sc=e=>t=>typeof t=="string"&&t.startsWith(e),ic=sc("--"),Bf=sc("var(--"),ks=e=>Bf(e)?Of.test(e.split("/*")[0].trim()):!1,Of=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,kt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ht=P(m({},kt),{transform:e=>Ne(0,1,e)}),cn=P(m({},kt),{default:1}),Bt=e=>Math.round(e*1e5)/1e5,xs=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Vf(e){return e==null}const jf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Is=(e,t)=>n=>!!(typeof n=="string"&&jf.test(n)&&n.startsWith(e)||t&&!Vf(n)&&Object.prototype.hasOwnProperty.call(n,t)),rc=(e,t,n)=>o=>{if(typeof o!="string")return o;const[s,i,r,a]=o.match(xs);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Ff=e=>Ne(0,255,e),co=P(m({},kt),{transform:e=>Math.round(Ff(e))}),Ze={test:Is("rgb","red"),parse:rc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+co.transform(e)+", "+co.transform(t)+", "+co.transform(n)+", "+Bt(Ht.transform(o))+")"};function $f(e){let t="",n="",o="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,o+=o,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:s?parseInt(s,16)/255:1}}const Po={test:Is("#"),parse:$f,transform:Ze.transform},qt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),je=qt("deg"),Ue=qt("%"),V=qt("px"),Hf=qt("vh"),_f=qt("vw"),qi=P(m({},Ue),{parse:e=>Ue.parse(e)/100,transform:e=>Ue.transform(e*100)}),ht={test:Is("hsl","hue"),parse:rc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Ue.transform(Bt(t))+", "+Ue.transform(Bt(n))+", "+Bt(Ht.transform(o))+")"},oe={test:e=>Ze.test(e)||Po.test(e)||ht.test(e),parse:e=>Ze.test(e)?Ze.parse(e):ht.test(e)?ht.parse(e):Po.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ze.transform(e):ht.transform(e),getAnimatableNone:e=>{const t=oe.parse(e);return t.alpha=0,oe.transform(t)}},zf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Xf(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(xs))==null?void 0:t.length)||0)+(((n=e.match(zf))==null?void 0:n.length)||0)>0}const ac="number",cc="color",Wf="var",Gf="var(",Qi="${}",Yf=/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 _t(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(Yf,c=>(oe.test(c)?(o.color.push(i),s.push(cc),n.push(oe.parse(c))):c.startsWith(Gf)?(o.var.push(i),s.push(Wf),n.push(c)):(o.number.push(i),s.push(ac),n.push(parseFloat(c))),++i,Qi)).split(Qi);return{values:n,split:a,indexes:o,types:s}}function lc(e){return _t(e).values}function dc(e){const{split:t,types:n}=_t(e),o=t.length;return s=>{let i="";for(let r=0;r<o;r++)if(i+=t[r],s[r]!==void 0){const a=n[r];a===ac?i+=Bt(s[r]):a===cc?i+=oe.transform(s[r]):i+=s[r]}return i}}const Kf=e=>typeof e=="number"?0:oe.test(e)?oe.getAnimatableNone(e):e;function Zf(e){const t=lc(e);return dc(e)(t.map(Kf))}const $e={test:Xf,parse:lc,createTransformer:dc,getAnimatableNone:Zf};function lo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qf({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let s=0,i=0,r=0;if(!t)s=i=r=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;s=lo(c,a,e+1/3),i=lo(c,a,e),r=lo(c,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(r*255),alpha:o}}function gn(e,t){return n=>n>0?t:e}const J=(e,t,n)=>e+(t-e)*n,uo=(e,t,n)=>{const o=e*e,s=n*(t*t-o)+o;return s<0?0:Math.sqrt(s)},Qf=[Po,Ze,ht],Jf=e=>Qf.find(t=>t.test(e));function Ji(e){const t=Jf(e);if(At(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===ht&&(n=qf(n)),n}const er=(e,t)=>{const n=Ji(e),o=Ji(t);if(!n||!o)return gn(e,t);const s=m({},n);return i=>(s.red=uo(n.red,o.red,i),s.green=uo(n.green,o.green,i),s.blue=uo(n.blue,o.blue,i),s.alpha=J(n.alpha,o.alpha,i),Ze.transform(s))},Ro=new Set(["none","hidden"]);function eh(e,t){return Ro.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function th(e,t){return n=>J(e,t,n)}function Es(e){return typeof e=="number"?th:typeof e=="string"?ks(e)?gn:oe.test(e)?er:sh:Array.isArray(e)?uc:typeof e=="object"?oe.test(e)?er:nh:gn}function uc(e,t){const n=[...e],o=n.length,s=e.map((i,r)=>Es(i)(i,t[r]));return i=>{for(let r=0;r<o;r++)n[r]=s[r](i);return n}}function nh(e,t){const n=m(m({},e),t),o={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(o[s]=Es(e[s])(e[s],t[s]));return s=>{for(const i in o)n[i]=o[i](s);return n}}function oh(e,t){var s;const n=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const r=t.types[i],a=e.indexes[r][o[r]],c=(s=e.values[a])!=null?s:0;n[i]=c,o[r]++}return n}const sh=(e,t)=>{const n=$e.createTransformer(t),o=_t(e),s=_t(t);return o.indexes.var.length===s.indexes.var.length&&o.indexes.color.length===s.indexes.color.length&&o.indexes.number.length>=s.indexes.number.length?Ro.has(e)&&!s.values.length||Ro.has(t)&&!o.values.length?eh(e,t):Kt(uc(oh(o,s),s.values),n):(At(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),gn(e,t))};function fc(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?J(e,t,n):Es(e)(e,t)}const ih=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Z.update(t,n),stop:()=>Fe(t),now:()=>ae.isProcessing?ae.timestamp:pe.now()}},hc=(e,t,n=10)=>{let o="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)o+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},bn=2e4;function Ms(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<bn;)t+=n,o=e.next(t);return t>=bn?1/0:t}function rh(e,t=100,n){const o=n(P(m({},e),{keyframes:[0,t]})),s=Math.min(Ms(o),bn);return{type:"keyframes",ease:i=>o.next(s*i).value/t,duration:Te(s)}}const ah=5;function pc(e,t,n){const o=Math.max(t-ah,0);return Wa(n-e(o),t-o)}const Q={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},fo=.001;function ch({duration:e=Q.duration,bounce:t=Q.bounce,velocity:n=Q.velocity,mass:o=Q.mass}){let s,i;At(e<=Ae(Q.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-t;r=Ne(Q.minDamping,Q.maxDamping,r),e=Ne(Q.minDuration,Q.maxDuration,Te(e)),r<1?(s=l=>{const d=l*r,u=d*e,f=d-n,h=No(l,r),p=Math.exp(-u);return fo-f/h*p},i=l=>{const u=l*r*e,f=u*n+n,h=Math.pow(r,2)*Math.pow(l,2)*e,p=Math.exp(-u),g=No(Math.pow(l,2),r);return(-s(l)+fo>0?-1:1)*((f-h)*p)/g}):(s=l=>{const d=Math.exp(-l*e),u=(l-n)*e+1;return-fo+d*u},i=l=>{const d=Math.exp(-l*e),u=(n-l)*(e*e);return d*u});const a=5/e,c=dh(s,i,a);if(e=Ae(e),isNaN(c))return{stiffness:Q.stiffness,damping:Q.damping,duration:e};{const l=Math.pow(c,2)*o;return{stiffness:l,damping:r*2*Math.sqrt(o*l),duration:e}}}const lh=12;function dh(e,t,n){let o=n;for(let s=1;s<lh;s++)o=o-e(o)/t(o);return o}function No(e,t){return e*Math.sqrt(1-t*t)}const uh=["duration","bounce"],fh=["stiffness","damping","mass"];function tr(e,t){return t.some(n=>e[n]!==void 0)}function hh(e){let t=m({velocity:Q.velocity,stiffness:Q.stiffness,damping:Q.damping,mass:Q.mass,isResolvedFromDuration:!1},e);if(!tr(e,fh)&&tr(e,uh))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),s=o*o,i=2*Ne(.05,1,1-(e.bounce||0))*Math.sqrt(s);t=P(m({},t),{mass:Q.mass,stiffness:s,damping:i})}else{const n=ch(e);t=P(m(m({},t),n),{mass:Q.mass}),t.isResolvedFromDuration=!0}return t}function yn(e=Q.visualDuration,t=Q.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:s}=n;const i=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:d,duration:u,velocity:f,isResolvedFromDuration:h}=hh(P(m({},n),{velocity:-Te(n.velocity||0)})),p=f||0,g=l/(2*Math.sqrt(c*d)),v=r-i,b=Te(Math.sqrt(c/d)),w=Math.abs(v)<5;o||(o=w?Q.restSpeed.granular:Q.restSpeed.default),s||(s=w?Q.restDelta.granular:Q.restDelta.default);let T;if(g<1){const C=No(b,g);T=A=>{const k=Math.exp(-g*b*A);return r-k*((p+g*b*v)/C*Math.sin(C*A)+v*Math.cos(C*A))}}else if(g===1)T=C=>r-Math.exp(-b*C)*(v+(p+b*v)*C);else{const C=b*Math.sqrt(g*g-1);T=A=>{const k=Math.exp(-g*b*A),D=Math.min(C*A,300);return r-k*((p+g*b*v)*Math.sinh(D)+C*v*Math.cosh(D))/C}}const S={calculatedDuration:h&&u||null,next:C=>{const A=T(C);if(h)a.done=C>=u;else{let k=C===0?p:0;g<1&&(k=C===0?Ae(p):pc(T,C,A));const D=Math.abs(k)<=o,E=Math.abs(r-A)<=s;a.done=D&&E}return a.value=a.done?r:A,a},toString:()=>{const C=Math.min(Ms(S),bn),A=hc(k=>S.next(C*k).value,C,30);return C+"ms "+A},toTransition:()=>{}};return S}yn.applyToOptions=e=>{const t=rh(e,100,yn);return e.ease=t.ease,e.duration=Ae(t.duration),e.type="keyframes",e};function Lo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:r,min:a,max:c,restDelta:l=.5,restSpeed:d}){const u=e[0],f={done:!1,value:u},h=D=>a!==void 0&&D<a||c!==void 0&&D>c,p=D=>a===void 0?c:c===void 0||Math.abs(a-D)<Math.abs(c-D)?a:c;let g=n*t;const v=u+g,b=r===void 0?v:r(v);b!==v&&(g=b-u);const w=D=>-g*Math.exp(-D/o),T=D=>b+w(D),S=D=>{const E=w(D),U=T(D);f.done=Math.abs(E)<=l,f.value=f.done?b:U};let C,A;const k=D=>{h(f.value)&&(C=D,A=yn({keyframes:[f.value,p(f.value)],velocity:pc(T,D,f.value),damping:s,stiffness:i,restDelta:l,restSpeed:d}))};return k(0),{calculatedDuration:null,next:D=>{let E=!1;return!A&&C===void 0&&(E=!0,S(D),k(D)),C!==void 0&&D>=C?A.next(D-C):(!E&&S(D),f)}}}function ph(e,t,n){const o=[],s=n||Be.mix||fc,i=e.length-1;for(let r=0;r<i;r++){let a=s(e[r],e[r+1]);if(t){const c=Array.isArray(t)?t[r]||we:t;a=Kt(c,a)}o.push(a)}return o}function mh(e,t,{clamp:n=!0,ease:o,mixer:s}={}){const i=e.length;if(Le(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const r=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=ph(t,o,s),c=a.length,l=d=>{if(r&&d<e[0])return t[0];let u=0;if(c>1)for(;u<e.length-2&&!(d<e[u+1]);u++);const f=$t(e[u],e[u+1],d);return a[u](f)};return n?d=>l(Ne(e[0],e[i-1],d)):l}function gh(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const s=$t(0,t,o);e.push(J(n,1,s))}}function bh(e){const t=[0];return gh(t,e.length-1),t}function yh(e,t){return e.map(n=>n*t)}function vh(e,t){return e.map(()=>t||tc).splice(0,e.length-1)}function pt({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const s=Uf(o)?o.map(Zi):Zi(o),i={done:!1,value:t[0]},r=yh(n&&n.length===t.length?n:bh(t),e),a=mh(r,t,{ease:Array.isArray(s)?s:vh(t,s)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const Th=e=>e!==null;function Us(e,{repeat:t,repeatType:n="loop"},o,s=1){const i=e.filter(Th),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||o===void 0?i[a]:o}const wh={decay:Lo,inertia:Lo,tween:pt,keyframes:pt,spring:yn};function mc(e){typeof e.type=="string"&&(e.type=wh[e.type])}class Ps{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Sh=e=>e/100;class Rs extends Ps{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var o,s;const{motionValue:n}=this.options;n&&n.updatedAt!==pe.now()&&this.tick(pe.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(o=this.options).onStop)==null||s.call(o))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;mc(t);const{type:n=pt,repeat:o=0,repeatDelay:s=0,repeatType:i,velocity:r=0}=t;let{keyframes:a}=t;const c=n||pt;process.env.NODE_ENV!=="production"&&c!==pt&&Le(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==pt&&typeof a[0]!="number"&&(this.mixKeyframes=Kt(Sh,fc(a[0],a[1])),a=[0,100]);const l=c(P(m({},t),{keyframes:a}));i==="mirror"&&(this.mirroredGenerator=c(P(m({},t),{keyframes:[...a].reverse(),velocity:-r}))),l.calculatedDuration===null&&(l.calculatedDuration=Ms(l));const{calculatedDuration:d}=l;this.calculatedDuration=d,this.resolvedDuration=d+s,this.totalDuration=this.resolvedDuration*(o+1)-s,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:o,totalDuration:s,mixKeyframes:i,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return o.next(0);const{delay:l=0,keyframes:d,repeat:u,repeatType:f,repeatDelay:h,type:p,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?b<0:b>s;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let T=this.currentTime,S=o;if(u){const D=Math.min(this.currentTime,s)/a;let E=Math.floor(D),U=D%1;!U&&D>=1&&(U=1),U===1&&E--,E=Math.min(E,u+1),!!(E%2)&&(f==="reverse"?(U=1-U,h&&(U-=h/a)):f==="mirror"&&(S=r)),T=Ne(0,1,U)*a}const C=w?{done:!1,value:d[0]}:S.next(T);i&&(C.value=i(C.value));let{done:A}=C;!w&&c!==null&&(A=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return k&&p!==Lo&&(C.value=Us(d,this.options,v,this.speed)),g&&g(C.value),k&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return Te(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Te(t)}get time(){return Te(this.currentTime)}set time(t){var n;t=Ae(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(pe.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Te(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=ih,startTime:n}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),(i=(s=this.options).onPlay)==null||i.call(s);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n!=null?n:o),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(pe.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Dh(e){var t;for(let n=1;n<e.length;n++)(t=e[n])!=null||(e[n]=e[n-1])}const qe=e=>e*180/Math.PI,Bo=e=>{const t=qe(Math.atan2(e[1],e[0]));return Oo(t)},Ch={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Bo,rotateZ:Bo,skewX:e=>qe(Math.atan(e[1])),skewY:e=>qe(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Oo=e=>(e=e%360,e<0&&(e+=360),e),nr=Bo,or=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),sr=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ah={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:or,scaleY:sr,scale:e=>(or(e)+sr(e))/2,rotateX:e=>Oo(qe(Math.atan2(e[6],e[5]))),rotateY:e=>Oo(qe(Math.atan2(-e[2],e[0]))),rotateZ:nr,rotate:nr,skewX:e=>qe(Math.atan(e[4])),skewY:e=>qe(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Vo(e){return e.includes("scale")?1:0}function jo(e,t){if(!e||e==="none")return Vo(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,s;if(n)o=Ah,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Ch,s=a}if(!s)return Vo(t);const i=o[t],r=s[1].split(",").map(xh);return typeof i=="function"?i(r):r[i]}const kh=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return jo(n,t)};function xh(e){return parseFloat(e.trim())}const xt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],It=new Set(xt),ir=e=>e===kt||e===V,Ih=new Set(["x","y","z"]),Eh=xt.filter(e=>!Ih.has(e));function Mh(e){const t=[];return Eh.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const Je={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>jo(t,"x"),y:(e,{transform:t})=>jo(t,"y")};Je.translateX=Je.x;Je.translateY=Je.y;const et=new Set;let Fo=!1,$o=!1,Ho=!1;function gc(){if($o){const e=Array.from(et).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const s=Mh(o);s.length&&(n.set(o,s),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const s=n.get(o);s&&s.forEach(([i,r])=>{var a;(a=o.getValue(i))==null||a.set(r)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}$o=!1,Fo=!1,et.forEach(e=>e.complete(Ho)),et.clear()}function bc(){et.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($o=!0)})}function Uh(){Ho=!0,bc(),gc(),Ho=!1}class Ns{constructor(t,n,o,s,i,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=s,this.element=i,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(et.add(this),Fo||(Fo=!0,Z.read(bc),Z.resolveKeyframes(gc))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),r=t[t.length-1];if(i!==void 0)t[0]=i;else if(o&&n){const a=o.readValue(n,r);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=r),s&&i===void 0&&s.set(t[0])}Dh(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),et.delete(this)}cancel(){this.state==="scheduled"&&(et.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ph=e=>e.startsWith("--");function Rh(e,t,n){Ph(t)?e.style.setProperty(t,n):e.style[t]=n}const Nh=ws(()=>window.ScrollTimeline!==void 0),Lh={};function Bh(e,t){const n=ws(e);return()=>{var o;return(o=Lh[t])!=null?o:n()}}const yc=Bh(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),Lt=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,rr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Lt([0,.65,.55,1]),circOut:Lt([.55,0,1,.45]),backIn:Lt([.31,.01,.66,-.59]),backOut:Lt([.33,1.53,.69,.99])};function vc(e,t){if(e)return typeof e=="function"?yc()?hc(e,t):"ease-out":nc(e)?Lt(e):Array.isArray(e)?e.map(n=>vc(n,t)||rr.easeOut):rr[e]}function Oh(e,t,n,{delay:o=0,duration:s=300,repeat:i=0,repeatType:r="loop",ease:a="easeOut",times:c}={},l=void 0){const d={[t]:n};c&&(d.offset=c);const u=vc(a,s);Array.isArray(u)&&(d.easing=u);const f={delay:o,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:r==="reverse"?"alternate":"normal"};return l&&(f.pseudoElement=l),e.animate(d,f)}function Tc(e){return typeof e=="function"&&"applyToOptions"in e}function Vh(n){var o=n,{type:e}=o,t=_(o,["type"]);var s,i;return Tc(e)&&yc()?e.applyToOptions(t):((s=t.duration)!=null||(t.duration=300),(i=t.ease)!=null||(t.ease="easeOut"),t)}class jh extends Ps{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:o,keyframes:s,pseudoElement:i,allowFlatten:r=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=r,this.options=t,Le(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=Vh(t);this.animation=Oh(n,o,s,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Us(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):Rh(n,o,d),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 t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,o;const t=((o=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:o.call(n).duration)||0;return Te(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Te(t)}get time(){return Te(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ae(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Nh()?(this.animation.timeline=t,we):n(this)}}const wc={anticipate:Qa,backInOut:qa,circInOut:ec};function Fh(e){return e in wc}function $h(e){typeof e.ease=="string"&&Fh(e.ease)&&(e.ease=wc[e.ease])}const ar=10;class Hh extends jh{constructor(t){$h(t),mc(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){var d;const l=this.options,{motionValue:n,onUpdate:o,onComplete:s,element:i}=l,r=_(l,["motionValue","onUpdate","onComplete","element"]);if(!n)return;if(t!==void 0){n.set(t);return}const a=new Rs(P(m({},r),{autoplay:!1})),c=Ae((d=this.finishedTime)!=null?d:this.time);n.setWithVelocity(a.sample(c-ar).value,a.sample(c).value,ar),a.stop()}}const cr=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&($e.test(e)||e==="0")&&!e.startsWith("url("));function _h(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function zh(e,t,n,o){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],r=cr(s,t),a=cr(i,t);return At(r===a,`You are trying to animate ${t} from "${s}" to "${i}". "${r?i:s}" is not an animatable value.`,"value-not-animatable"),!r||!a?!1:_h(e)||(n==="spring"||Tc(n))&&o}function _o(e){e.duration=0,e.type="keyframes"}const Xh=new Set(["opacity","clipPath","filter","transform"]),Wh=ws(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Gh(e){var d;const{motionValue:t,name:n,repeatDelay:o,repeatType:s,damping:i,type:r}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Wh()&&n&&Xh.has(n)&&(n!=="transform"||!l)&&!c&&!o&&s!=="mirror"&&i!==0&&r!=="inertia"}const Yh=40;class Kh extends Ps{constructor(f){var h=f,{autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r="loop",keyframes:a,name:c,motionValue:l,element:d}=h,u=_(h,["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"]);var v;super(),this.stop=()=>{var b,w;this._animation&&(this._animation.stop(),(b=this.stopTimeline)==null||b.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=pe.now();const p=m({autoplay:t,delay:n,type:o,repeat:s,repeatDelay:i,repeatType:r,name:c,motionValue:l,element:d},u),g=(d==null?void 0:d.KeyframeResolver)||Ns;this.keyframeResolver=new g(a,(b,w,T)=>this.onKeyframesResolved(b,w,p,!T),c,l,d),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,o,s){this.keyframeResolver=void 0;const{name:i,type:r,velocity:a,delay:c,isHandoff:l,onUpdate:d}=o;this.resolvedAt=pe.now(),zh(t,i,r,a)||((Be.instantAnimations||!c)&&(d==null||d(Us(t,o,n))),t[0]=t[t.length-1],_o(o),o.repeat=0);const u=s?this.resolvedAt?this.resolvedAt-this.createdAt>Yh?this.resolvedAt:this.createdAt:this.createdAt:void 0,f=P(m({startTime:u,finalKeyframe:n},o),{keyframes:t}),h=!l&&Gh(f)?new Hh(P(m({},f),{element:f.motionValue.owner.current})):new Rs(f);h.finished.then(()=>this.notifyFinished()).catch(we),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(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Uh()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const Zh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qh(e){const t=Zh.exec(e);if(!t)return[,];const[,n,o,s]=t;return[`--${n!=null?n:o}`,s]}const Qh=4;function Sc(e,t,n=1){Le(n<=Qh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[o,s]=qh(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const r=i.trim();return _a(r)?parseFloat(r):r}return ks(s)?Sc(s,t,n+1):s}function Ls(e,t){var n,o;return(o=(n=e==null?void 0:e[t])!=null?n:e==null?void 0:e.default)!=null?o:e}const Dc=new Set(["width","height","top","left","right","bottom",...xt]),Jh={test:e=>e==="auto",parse:e=>e},Cc=e=>t=>t.test(e),Ac=[kt,V,Ue,je,_f,Hf,Jh],lr=e=>Ac.find(Cc(e));function ep(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Xa(e):!0}const tp=new Set(["brightness","contrast","saturate","opacity"]);function np(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(xs)||[];if(!o)return e;const s=n.replace(o,"");let i=tp.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+s+")"}const op=/\b([a-z-]*)\(.*?\)/gu,zo=P(m({},$e),{getAnimatableNone:e=>{const t=e.match(op);return t?t.map(np).join(" "):e}}),dr=P(m({},kt),{transform:Math.round}),sp={rotate:je,rotateX:je,rotateY:je,rotateZ:je,scale:cn,scaleX:cn,scaleY:cn,scaleZ:cn,skew:je,skewX:je,skewY:je,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Ht,originX:qi,originY:qi,originZ:V},Bs=P(m({borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V},sp),{zIndex:dr,fillOpacity:Ht,strokeOpacity:Ht,numOctaves:dr}),ip=P(m({},Bs),{color:oe,backgroundColor:oe,outlineColor:oe,fill:oe,stroke:oe,borderColor:oe,borderTopColor:oe,borderRightColor:oe,borderBottomColor:oe,borderLeftColor:oe,filter:zo,WebkitFilter:zo}),kc=e=>ip[e];function xc(e,t){let n=kc(e);return n!==zo&&(n=$e),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const rp=new Set(["auto","none","0"]);function ap(e,t,n){let o=0,s;for(;o<e.length&&!s;){const i=e[o];typeof i=="string"&&!rp.has(i)&&_t(i).values.length&&(s=e[o]),o++}if(s&&n)for(const i of t)e[i]=xc(n,s)}class cp extends Ns{constructor(t,n,o,s,i){super(t,n,o,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let l=t[c];if(typeof l=="string"&&(l=l.trim(),ks(l))){const d=Sc(l,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Dc.has(o)||t.length!==2)return;const[s,i]=t,r=lr(s),a=lr(i);if(r!==a)if(ir(r)&&ir(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else Je[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let s=0;s<t.length;s++)(t[s]===null||ep(t[s]))&&o.push(s);o.length&&ap(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Je[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(o,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=o.length-1,r=o[i];o[i]=Je[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([c,l])=>{t.getValue(c).set(l)}),this.resolveNoneKeyframes()}}function lp(e,t,n){var o;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const i=(o=n==null?void 0:n[e])!=null?o:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Ic=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ec(e){return za(e)&&"offsetHeight"in e}const ur=30,dp=e=>!isNaN(parseFloat(e));class up{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var i;const s=pe.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=pe.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=dp(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ds(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ss);const o=this.events[t].add(n);return t==="change"?()=>{o(),Z.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=pe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ur)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ur);return Wa(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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 t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function wt(e,t){return new up(e,t)}const{schedule:Os}=oc(queueMicrotask,!1),De={x:!1,y:!1};function Mc(){return De.x||De.y}function fp(e){return e==="x"||e==="y"?De[e]?null:(De[e]=!0,()=>{De[e]=!1}):De.x||De.y?null:(De.x=De.y=!0,()=>{De.x=De.y=!1})}function Uc(e,t){const n=lp(e),o=new AbortController,s=P(m({passive:!0},t),{signal:o.signal});return[n,s,()=>o.abort()]}function fr(e){return!(e.pointerType==="touch"||Mc())}function hp(e,t,n={}){const[o,s,i]=Uc(e,n),r=a=>{if(!fr(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const d=u=>{fr(u)&&(l(u),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,s)};return o.forEach(a=>{a.addEventListener("pointerenter",r,s)}),i}const Pc=(e,t)=>t?e===t?!0:Pc(e,t.parentElement):!1,Vs=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,pp=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function mp(e){return pp.has(e.tagName)||e.tabIndex!==-1}const fn=new WeakSet;function hr(e){return t=>{t.key==="Enter"&&e(t)}}function ho(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const gp=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=hr(()=>{if(fn.has(n))return;ho(n,"down");const s=hr(()=>{ho(n,"up")}),i=()=>ho(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function pr(e){return Vs(e)&&!Mc()}function bp(e,t,n={}){const[o,s,i]=Uc(e,n),r=a=>{const c=a.currentTarget;if(!pr(a))return;fn.add(c);const l=t(c,a),d=(h,p)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",f),fn.has(c)&&fn.delete(c),pr(h)&&typeof l=="function"&&l(h,{success:p})},u=h=>{d(h,c===window||c===document||n.useGlobalTarget||Pc(c,h.target))},f=h=>{d(h,!1)};window.addEventListener("pointerup",u,s),window.addEventListener("pointercancel",f,s)};return o.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,s),Ec(a)&&(a.addEventListener("focus",l=>gp(l,s)),!mp(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Rc(e){return za(e)&&"ownerSVGElement"in e}function yp(e){return Rc(e)&&e.tagName==="svg"}const le=e=>!!(e&&e.getVelocity),vp=[...Ac,oe,$e],Tp=e=>vp.find(Cc(e)),js=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function mr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function wp(...e){return t=>{let n=!1;const o=e.map(s=>{const i=mr(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<o.length;s++){const i=o[s];typeof i=="function"?i():mr(e[s],null)}}}}function Sp(...e){return Sn.useCallback(wp(...e),e)}class Dp extends Sn.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const o=n.offsetParent,s=Ec(o)&&o.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=s-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Cp({children:e,isPresent:t,anchorX:n,root:o}){const s=I.useId(),i=I.useRef(null),r=I.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=I.useContext(js),c=Sp(i,e==null?void 0:e.ref);return I.useInsertionEffect(()=>{const{width:l,height:d,top:u,left:f,right:h}=r.current;if(t||!i.current||!l||!d)return;const p=n==="left"?`left: ${f}`:`right: ${h}`;i.current.dataset.motionPopId=s;const g=document.createElement("style");a&&(g.nonce=a);const v=o!=null?o:document.head;return v.appendChild(g),g.sheet&&g.sheet.insertRule(`
18
- [data-motion-pop-id="${s}"] {
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(`
11
+ [data-motion-pop-id="${i}"] {
19
12
  position: absolute !important;
20
13
  width: ${l}px !important;
21
- height: ${d}px !important;
22
- ${p}px !important;
23
- top: ${u}px !important;
14
+ height: ${u}px !important;
15
+ ${m}px !important;
16
+ top: ${f}px !important;
24
17
  }
25
- `),()=>{v.contains(g)&&v.removeChild(g)}},[t]),y.jsx(Dp,{isPresent:t,childRef:i,sizeRef:r,children:Sn.cloneElement(e,{ref:c})})}const Ap=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:s,presenceAffectsLayout:i,mode:r,anchorX:a,root:c})=>{const l=bs(kp),d=I.useId();let u=!0,f=I.useMemo(()=>(u=!1,{id:d,initial:t,isPresent:n,custom:s,onExitComplete:h=>{l.set(h,!0);for(const p of l.values())if(!p)return;o&&o()},register:h=>(l.set(h,!1),()=>l.delete(h))}),[n,l,o]);return i&&u&&(f=m({},f)),I.useMemo(()=>{l.forEach((h,p)=>l.set(p,!1))},[n]),Sn.useEffect(()=>{!n&&!l.size&&o&&o()},[n]),r==="popLayout"&&(e=y.jsx(Cp,{isPresent:n,anchorX:a,root:c,children:e})),y.jsx(kn.Provider,{value:f,children:e})};function kp(){return new Map}function Nc(e=!0){const t=I.useContext(kn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:s}=t,i=I.useId();I.useEffect(()=>{if(e)return s(i)},[e]);const r=I.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,r]:[!0]}const ln=e=>e.key||"";function gr(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const xp=({children:e,custom:t,initial:n=!0,onExitComplete:o,presenceAffectsLayout:s=!0,mode:i="sync",propagate:r=!1,anchorX:a="left",root:c})=>{const[l,d]=Nc(r),u=I.useMemo(()=>gr(e),[e]),f=r&&!l?[]:u.map(ln),h=I.useRef(!0),p=I.useRef(u),g=bs(()=>new Map),[v,b]=I.useState(u),[w,T]=I.useState(u);Ha(()=>{h.current=!1,p.current=u;for(let A=0;A<w.length;A++){const k=ln(w[A]);f.includes(k)?g.delete(k):g.get(k)!==!0&&g.set(k,!1)}},[w,f.length,f.join("-")]);const S=[];if(u!==v){let A=[...u];for(let k=0;k<w.length;k++){const D=w[k],E=ln(D);f.includes(E)||(A.splice(k,0,D),S.push(D))}return i==="wait"&&S.length&&(A=S),T(gr(A)),b(u),null}process.env.NODE_ENV!=="production"&&i==="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:C}=I.useContext(gs);return y.jsx(y.Fragment,{children:w.map(A=>{const k=ln(A),D=r&&!l?!1:u===w||f.includes(k),E=()=>{if(g.has(k))g.set(k,!0);else return;let U=!0;g.forEach(R=>{R||(U=!1)}),U&&(C==null||C(),T(p.current),r&&(d==null||d()),o&&o())};return y.jsx(Ap,{isPresent:D,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:i,root:c,onExitComplete:D?void 0:E,anchorX:a,children:A},k)})})},Lc=I.createContext({strict:!1}),br={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"]},St={};for(const e in br)St[e]={isEnabled:t=>br[e].some(n=>!!t[n])};function Ip(e){for(const t in e)St[t]=m(m({},St[t]),e[t])}const Ep=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 vn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ep.has(e)}let Bc=e=>!vn(e);function Mp(e){typeof e=="function"&&(Bc=t=>t.startsWith("on")?!vn(t):e(t))}try{Mp(require("@emotion/is-prop-valid").default)}catch(e){}function Up(e,t,n){const o={};for(const s in e)s==="values"&&typeof e.values=="object"||(Bc(s)||n===!0&&vn(s)||!t&&!vn(s)||e.draggable&&s.startsWith("onDrag"))&&(o[s]=e[s]);return o}const xn=I.createContext({});function In(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function zt(e){return typeof e=="string"||Array.isArray(e)}const Fs=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$s=["initial",...Fs];function En(e){return In(e.animate)||$s.some(t=>zt(e[t]))}function Oc(e){return!!(En(e)||e.variants)}function Pp(e,t){if(En(e)){const{initial:n,animate:o}=e;return{initial:n===!1||zt(n)?n:void 0,animate:zt(o)?o:void 0}}return e.inherit!==!1?t:{}}function Rp(e){const{initial:t,animate:n}=Pp(e,I.useContext(xn));return I.useMemo(()=>({initial:t,animate:n}),[yr(t),yr(n)])}function yr(e){return Array.isArray(e)?e.join(" "):e}function vr(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Nt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=vr(e,t.target.x),o=vr(e,t.target.y);return`${n}% ${o}%`}},Np={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,s=$e.parse(e);if(s.length>5)return o;const i=$e.createTransformer(e),r=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;s[0+r]/=a,s[1+r]/=c;const l=J(a,c,.5);return typeof s[2+r]=="number"&&(s[2+r]/=l),typeof s[3+r]=="number"&&(s[3+r]/=l),i(s)}},Xo={borderRadius:P(m({},Nt),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Nt,borderTopRightRadius:Nt,borderBottomLeftRadius:Nt,borderBottomRightRadius:Nt,boxShadow:Np};function Vc(e,{layout:t,layoutId:n}){return It.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Xo[e]||e==="opacity")}const Lp={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Bp=xt.length;function Op(e,t,n){let o="",s=!0;for(let i=0;i<Bp;i++){const r=xt[i],a=e[r];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(r.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const l=Ic(a,Bs[r]);if(!c){s=!1;const d=Lp[r]||r;o+=`${d}(${l}) `}n&&(t[r]=l)}}return o=o.trim(),n?o=n(t,s?"":o):s&&(o="none"),o}function Hs(e,t,n){const{style:o,vars:s,transformOrigin:i}=e;let r=!1,a=!1;for(const c in t){const l=t[c];if(It.has(c)){r=!0;continue}else if(ic(c)){s[c]=l;continue}else{const d=Ic(l,Bs[c]);c.startsWith("origin")?(a=!0,i[c]=d):o[c]=d}}if(t.transform||(r||n?o.transform=Op(t,e.transform,n):o.transform&&(o.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:d=0}=i;o.transformOrigin=`${c} ${l} ${d}`}}const _s=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jc(e,t,n){for(const o in t)!le(t[o])&&!Vc(o,n)&&(e[o]=t[o])}function Vp({transformTemplate:e},t){return I.useMemo(()=>{const n=_s();return Hs(n,t,e),Object.assign({},n.vars,n.style)},[t])}function jp(e,t){const n=e.style||{},o={};return jc(o,n,e),Object.assign(o,Vp(e,t)),o}function Fp(e,t){const n={},o=jp(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const $p={offset:"stroke-dashoffset",array:"stroke-dasharray"},Hp={offset:"strokeDashoffset",array:"strokeDasharray"};function _p(e,t,n=1,o=0,s=!0){e.pathLength=1;const i=s?$p:Hp;e[i.offset]=V.transform(-o);const r=V.transform(t),a=V.transform(n);e[i.array]=`${r} ${a}`}function Fc(e,u,c,l,d){var f=u,{attrX:t,attrY:n,attrScale:o,pathLength:s,pathSpacing:i=1,pathOffset:r=0}=f,a=_(f,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]);var g,v;if(Hs(e,a,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:p}=e;h.transform&&(p.transform=h.transform,delete h.transform),(p.transform||h.transformOrigin)&&(p.transformOrigin=(g=h.transformOrigin)!=null?g:"50% 50%",delete h.transformOrigin),p.transform&&(p.transformBox=(v=d==null?void 0:d.transformBox)!=null?v:"fill-box",delete h.transformBox),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),o!==void 0&&(h.scale=o),s!==void 0&&_p(h,s,i,r,!1)}const $c=()=>P(m({},_s()),{attrs:{}}),Hc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function zp(e,t,n,o){const s=I.useMemo(()=>{const i=$c();return Fc(i,t,Hc(o),e.transformTemplate,e.style),P(m({},i.attrs),{style:m({},i.style)})},[t]);if(e.style){const i={};jc(i,e.style,e),s.style=m(m({},i),s.style)}return s}const Xp=["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 zs(e){return typeof e!="string"||e.includes("-")?!1:!!(Xp.indexOf(e)>-1||/[A-Z]/u.test(e))}function Wp(e,t,n,{latestValues:o},s,i=!1){const a=(zs(e)?zp:Fp)(t,o,s,e),c=Up(t,typeof e=="string",i),l=e!==I.Fragment?P(m(m({},c),a),{ref:n}):{},{children:d}=t,u=I.useMemo(()=>le(d)?d.get():d,[d]);return I.createElement(e,P(m({},l),{children:u}))}function Tr(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function Xs(e,t,n,o){if(typeof t=="function"){const[s,i]=Tr(o);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=Tr(o);t=t(n!==void 0?n:e.custom,s,i)}return t}function hn(e){return le(e)?e.get():e}function Gp({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,s){return{latestValues:Yp(n,o,s,e),renderState:t()}}function Yp(e,t,n,o){const s={},i=o(e,{});for(const h in i)s[h]=hn(i[h]);let{initial:r,animate:a}=e;const c=En(e),l=Oc(e);t&&l&&!c&&e.inherit!==!1&&(r===void 0&&(r=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||r===!1;const u=d?a:r;if(u&&typeof u!="boolean"&&!In(u)){const h=Array.isArray(u)?u:[u];for(let p=0;p<h.length;p++){const g=Xs(e,h[p]);if(g){const f=g,{transitionEnd:v,transition:b}=f,w=_(f,["transitionEnd","transition"]);for(const T in w){let S=w[T];if(Array.isArray(S)){const C=d?S.length-1:0;S=S[C]}S!==null&&(s[T]=S)}for(const T in v)s[T]=v[T]}}}return s}const _c=e=>(t,n)=>{const o=I.useContext(xn),s=I.useContext(kn),i=()=>Gp(e,t,o,s);return n?i():bs(i)};function Ws(e,t,n){var i;const{style:o}=e,s={};for(const r in o)(le(o[r])||t.style&&le(t.style[r])||Vc(r,e)||((i=n==null?void 0:n.getValue(r))==null?void 0:i.liveStyle)!==void 0)&&(s[r]=o[r]);return s}const Kp=_c({scrapeMotionValuesFromProps:Ws,createRenderState:_s});function zc(e,t,n){const o=Ws(e,t,n);for(const s in e)if(le(e[s])||le(t[s])){const i=xt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;o[i]=e[s]}return o}const Zp=_c({scrapeMotionValuesFromProps:zc,createRenderState:$c}),qp=Symbol.for("motionComponentSymbol");function mt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Qp(e,t,n){return I.useCallback(o=>{o&&e.onMount&&e.onMount(o),t&&(o?t.mount(o):t.unmount()),n&&(typeof n=="function"?n(o):mt(n)&&(n.current=o))},[t])}const Gs=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Jp="framerAppearId",Xc="data-"+Gs(Jp),Wc=I.createContext({});function em(e,t,n,o,s){var g,v;const{visualElement:i}=I.useContext(xn),r=I.useContext(Lc),a=I.useContext(kn),c=I.useContext(js).reducedMotion,l=I.useRef(null);o=o||r.renderer,!l.current&&o&&(l.current=o(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const d=l.current,u=I.useContext(Wc);d&&!d.projection&&s&&(d.type==="html"||d.type==="svg")&&tm(l.current,n,s,u);const f=I.useRef(!1);I.useInsertionEffect(()=>{d&&f.current&&d.update(n,a)});const h=n[Xc],p=I.useRef(!!h&&!((g=window.MotionHandoffIsComplete)!=null&&g.call(window,h))&&((v=window.MotionHasOptimisedAnimation)==null?void 0:v.call(window,h)));return Ha(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),p.current&&d.animationState&&d.animationState.animateChanges())}),I.useEffect(()=>{d&&(!p.current&&d.animationState&&d.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)==null||b.call(window,h)}),p.current=!1),d.enteringChildren=void 0)}),d}function tm(e,t,n,o){const{layoutId:s,layout:i,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Gc(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!r||a&&mt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:c,layoutRoot:l})}function Gc(e){if(e)return e.options.allowProjection!==!1?e.projection:Gc(e.parent)}function po(e,{forwardMotionProps:t=!1}={},n,o){var a,c;n&&Ip(n);const s=zs(e)?Zp:Kp;function i(l,d){let u;const f=P(m(m({},I.useContext(js)),l),{layoutId:nm(l)}),{isStatic:h}=f,p=Rp(l),g=s(l,h);if(!h&&ys){om(f,n);const v=sm(f);u=v.MeasureLayout,p.visualElement=em(e,g,f,o,v.ProjectionNode)}return y.jsxs(xn.Provider,{value:p,children:[u&&p.visualElement?y.jsx(u,m({visualElement:p.visualElement},f)):null,Wp(e,l,Qp(g,p.visualElement,d),g,h,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${(c=(a=e.displayName)!=null?a:e.name)!=null?c:""})`}`;const r=I.forwardRef(i);return r[qp]=e,r}function nm({layoutId:e}){const t=I.useContext(gs).id;return t&&e!==void 0?t+"-"+e:e}function om(e,t){const n=I.useContext(Lc).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?At(!1,o,"lazy-strict-mode"):Le(!1,o,"lazy-strict-mode")}}function sm(e){const{drag:t,layout:n}=St;if(!t&&!n)return{};const o=m(m({},t),n);return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function im(e,t){if(typeof Proxy=="undefined")return po;const n=new Map,o=(i,r)=>po(i,r,e,t),s=(i,r)=>(process.env.NODE_ENV!=="production"&&Ds(!1,"motion() is deprecated. Use motion.create() instead."),o(i,r));return new Proxy(s,{get:(i,r)=>r==="create"?o:(n.has(r)||n.set(r,po(r,void 0,e,t)),n.get(r))})}function Yc({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function rm({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function am(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function mo(e){return e===void 0||e===1}function Wo({scale:e,scaleX:t,scaleY:n}){return!mo(e)||!mo(t)||!mo(n)}function We(e){return Wo(e)||Kc(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Kc(e){return wr(e.x)||wr(e.y)}function wr(e){return e&&e!=="0%"}function Tn(e,t,n){const o=e-n,s=t*o;return n+s}function Sr(e,t,n,o,s){return s!==void 0&&(e=Tn(e,s,o)),Tn(e,n,o)+t}function Go(e,t=0,n=1,o,s){e.min=Sr(e.min,t,n,o,s),e.max=Sr(e.max,t,n,o,s)}function Zc(e,{x:t,y:n}){Go(e.x,t.translate,t.scale,t.originPoint),Go(e.y,n.translate,n.scale,n.originPoint)}const Dr=.999999999999,Cr=1.0000000000001;function cm(e,t,n,o=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,r;for(let a=0;a<s;a++){i=n[a],r=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&bt(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),r&&(t.x*=r.x.scale,t.y*=r.y.scale,Zc(e,r)),o&&We(i.latestValues)&&bt(e,i.latestValues))}t.x<Cr&&t.x>Dr&&(t.x=1),t.y<Cr&&t.y>Dr&&(t.y=1)}function gt(e,t){e.min=e.min+t,e.max=e.max+t}function Ar(e,t,n,o,s=.5){const i=J(e.min,e.max,s);Go(e,t,n,i,o)}function bt(e,t){Ar(e.x,t.x,t.scaleX,t.scale,t.originX),Ar(e.y,t.y,t.scaleY,t.scale,t.originY)}function qc(e,t){return Yc(am(e.getBoundingClientRect(),t))}function lm(e,t,n){const o=qc(e,n),{scroll:s}=t;return s&&(gt(o.x,s.offset.x),gt(o.y,s.offset.y)),o}const kr=()=>({translate:0,scale:1,origin:0,originPoint:0}),yt=()=>({x:kr(),y:kr()}),xr=()=>({min:0,max:0}),re=()=>({x:xr(),y:xr()}),Yo={current:null},Qc={current:!1};function dm(){if(Qc.current=!0,!!ys)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Yo.current=e.matches;e.addEventListener("change",t),t()}else Yo.current=!1}const um=new WeakMap;function fm(e,t,n){for(const o in t){const s=t[o],i=n[o];if(le(s))e.addValue(o,s);else if(le(i))e.addValue(o,wt(s,{owner:e}));else if(i!==s)if(e.hasValue(o)){const r=e.getValue(o);r.liveStyle===!0?r.jump(s):r.hasAnimated||r.set(s)}else{const r=e.getStaticValue(o);e.addValue(o,wt(r!==void 0?r:s,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Ir=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class hm{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:s,blockInitialAnimation:i,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ns,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=pe.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Z.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=r;this.latestValues=c,this.baseTarget=m({},c),this.initialValues=n.initial?m({},c):{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=En(n),this.isVariantNode=Oc(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const f=this.scrapeMotionValuesFromProps(n,{},this),{willChange:d}=f,u=_(f,["willChange"]);for(const h in u){const p=u[h];c[h]!==void 0&&le(p)&&p.set(c[h])}}mount(t){var n;this.current=t,um.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,s)=>this.bindToMotionValue(s,o)),Qc.current||dm(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Yo.current,process.env.NODE_ENV!=="production"&&Ds(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 t;this.projection&&this.projection.unmount(),Fe(this.notifyUpdate),Fe(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const o=this.features[n];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(t){var n;this.children.add(t),(n=this.enteringChildren)!=null||(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const o=It.has(t);o&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",r=>{this.latestValues[t]=r,this.props.onUpdate&&Z.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in St){const n=St[t];if(!n)continue;const{isEnabled:o,Feature:s}=n;if(!this.features[t]&&s&&o(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):re()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;o<Ir.length;o++){const s=Ir[o];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,r=t[i];r&&(this.propEventSubscriptions[s]=this.on(s,r))}this.prevMotionValues=fm(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const o=this.values.get(t);n!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&n!==void 0&&(o=wt(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){var s;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!=null?s:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(_a(o)||Xa(o))?o=parseFloat(o):!Tp(o)&&$e.test(n)&&(o=xc(t,n)),this.setBaseTarget(t,le(o)?o.get():o)),le(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const r=Xs(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);r&&(o=r[t])}if(n&&o!==void 0)return o;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!le(s)?s:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ss),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Os.render(this.render)}}class Jc extends hm{constructor(){super(...arguments),this.KeyframeResolver=cp}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;le(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function el(e,{style:t,vars:n},o,s){const i=e.style;let r;for(r in t)i[r]=t[r];s==null||s.applyProjectionStyles(i,o);for(r in n)i.setProperty(r,n[r])}function pm(e){return window.getComputedStyle(e)}class mm extends Jc{constructor(){super(...arguments),this.type="html",this.renderInstance=el}readValueFromInstance(t,n){var o;if(It.has(n))return(o=this.projection)!=null&&o.isProjecting?Vo(n):kh(t,n);{const s=pm(t),i=(ic(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return qc(t,n)}build(t,n,o){Hs(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return Ws(t,n,o)}}const tl=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 gm(e,t,n,o){el(e,t,void 0,o);for(const s in t.attrs)e.setAttribute(tl.has(s)?s:Gs(s),t.attrs[s])}class bm extends Jc{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=re}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(It.has(n)){const o=kc(n);return o&&o.default||0}return n=tl.has(n)?n:Gs(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return zc(t,n,o)}build(t,n,o){Fc(t,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,n,o,s){gm(t,n,o,s)}mount(t){this.isSVGTag=Hc(t.tagName),super.mount(t)}}const ym=(e,t)=>zs(e)?new bm(t):new mm(t,{allowProjection:e!==I.Fragment});function vt(e,t,n){const o=e.getProps();return Xs(o,t,n!==void 0?n:o.custom,e)}const Ko=e=>Array.isArray(e);function vm(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wt(n))}function Tm(e){return Ko(e)?e[e.length-1]||0:e}function wm(e,t){let r=vt(e,t)||{},{transitionEnd:o={},transition:s={}}=r,i=_(r,["transitionEnd","transition"]);i=m(m({},i),o);for(const a in i){const c=Tm(i[a]);vm(e,a,c)}}function Sm(e){return!!(le(e)&&e.add)}function Zo(e,t){const n=e.getValue("willChange");if(Sm(n))return n.add(t);if(!n&&Be.WillChange){const o=new Be.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function nl(e){return e.props[Xc]}const Dm=e=>e!==null;function Cm(e,{repeat:t,repeatType:n="loop"},o){const s=e.filter(Dm),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return s[i]}const Am={type:"spring",stiffness:500,damping:25,restSpeed:10},km=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),xm={type:"keyframes",duration:.8},Im={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Em=(e,{keyframes:t})=>t.length>2?xm:It.has(e)?e.startsWith("scale")?km(t[1]):Am:Im;function Mm(u){var f=u,{when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:s,repeat:i,repeatType:r,repeatDelay:a,from:c,elapsed:l}=f,d=_(f,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(d).length}const Ys=(e,t,n,o={},s,i)=>r=>{const a=Ls(o,e)||{},c=a.delay||o.delay||0;let{elapsed:l=0}=o;l=l-Ae(c);const d=P(m({keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity()},a),{delay:-l,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s});Mm(a)||Object.assign(d,Em(e,d)),d.duration&&(d.duration=Ae(d.duration)),d.repeatDelay&&(d.repeatDelay=Ae(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(_o(d),d.delay===0&&(u=!0)),(Be.instantAnimations||Be.skipAnimations)&&(u=!0,_o(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,u&&!i&&t.get()!==void 0){const f=Cm(d.keyframes,a);if(f!==void 0){Z.update(()=>{d.onUpdate(f),d.onComplete()});return}}return a.isSync?new Rs(d):new Kh(d)};function Um({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function ol(e,t,{delay:n=0,transitionOverride:o,type:s}={}){var u;let d=t,{transition:i=e.getDefaultTransition(),transitionEnd:r}=d,a=_(d,["transition","transitionEnd"]);o&&(i=o);const c=[],l=s&&e.animationState&&e.animationState.getState()[s];for(const f in a){const h=e.getValue(f,(u=e.latestValues[f])!=null?u:null),p=a[f];if(p===void 0||l&&Um(l,f))continue;const g=m({delay:n},Ls(i||{},f)),v=h.get();if(v!==void 0&&!h.isAnimating&&!Array.isArray(p)&&p===v&&!g.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const T=nl(e);if(T){const S=window.MotionHandoffAnimation(T,f,Z);S!==null&&(g.startTime=S,b=!0)}}Zo(e,f),h.start(Ys(f,h,p,e.shouldReduceMotion&&Dc.has(f)?{type:!1}:g,e,b));const w=h.animation;w&&c.push(w)}return r&&Promise.all(c).then(()=>{Z.update(()=>{r&&wm(e,r)})}),c}function sl(e,t,n,o=0,s=1){const i=Array.from(e).sort((l,d)=>l.sortNodePosition(d)).indexOf(t),r=e.size,a=(r-1)*o;return typeof n=="function"?n(i,r):s===1?i*o:a-i*o}function qo(e,t,n={}){var c;const o=vt(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const i=o?()=>Promise.all(ol(e,o,n)):()=>Promise.resolve(),r=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:f}=s;return Pm(e,t,l,d,u,f,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[l,d]=a==="beforeChildren"?[i,r]:[r,i];return l().then(()=>d())}else return Promise.all([i(),r(n.delay)])}function Pm(e,t,n=0,o=0,s=0,i=1,r){const a=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),a.push(qo(c,t,P(m({},r),{delay:n+(typeof o=="function"?0:o)+sl(e.variantChildren,c,o,s,i)})).then(()=>c.notify("AnimationComplete",t)));return Promise.all(a)}function Rm(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const s=t.map(i=>qo(e,i,n));o=Promise.all(s)}else if(typeof t=="string")o=qo(e,t,n);else{const s=typeof t=="function"?vt(e,t,n.custom):t;o=Promise.all(ol(e,s,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}function il(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const Nm=$s.length;function rl(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?rl(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Nm;n++){const o=$s[n],s=e.props[o];(zt(s)||s===!1)&&(t[o]=s)}return t}const Lm=[...Fs].reverse(),Bm=Fs.length;function Om(e){return t=>Promise.all(t.map(({animation:n,options:o})=>Rm(e,n,o)))}function Vm(e){let t=Om(e),n=Er(),o=!0;const s=c=>(l,d)=>{var f;const u=vt(e,d,c==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(u){const h=u,{transition:p,transitionEnd:g}=h,v=_(h,["transition","transitionEnd"]);l=m(m(m({},l),v),g)}return l};function i(c){t=c(e)}function r(c){const{props:l}=e,d=rl(e.parent)||{},u=[],f=new Set;let h={},p=1/0;for(let v=0;v<Bm;v++){const b=Lm[v],w=n[b],T=l[b]!==void 0?l[b]:d[b],S=zt(T),C=b===c?w.isActive:null;C===!1&&(p=v);let A=T===d[b]&&T!==l[b]&&S;if(A&&o&&e.manuallyAnimateOnMount&&(A=!1),w.protectedKeys=m({},h),!w.isActive&&C===null||!T&&!w.prevProp||In(T)||typeof T=="boolean")continue;const k=jm(w.prevProp,T);let D=k||b===c&&w.isActive&&!A&&S||v>p&&S,E=!1;const U=Array.isArray(T)?T:[T];let R=U.reduce(s(b),{});C===!1&&(R={});const{prevResolvedValues:N={}}=w,L=m(m({},N),R),O=G=>{D=!0,f.has(G)&&(E=!0,f.delete(G)),w.needsAnimating[G]=!0;const q=e.getValue(G);q&&(q.liveStyle=!1)};for(const G in L){const q=R[G],ce=N[G];if(h.hasOwnProperty(G))continue;let se=!1;Ko(q)&&Ko(ce)?se=!il(q,ce):se=q!==ce,se?q!=null?O(G):f.add(G):q!==void 0&&f.has(G)?O(G):w.protectedKeys[G]=!0}w.prevProp=T,w.prevResolvedValues=R,w.isActive&&(h=m(m({},h),R)),o&&e.blockInitialAnimation&&(D=!1);const X=A&&k;D&&(!X||E)&&u.push(...U.map(G=>{const q={type:b};if(typeof G=="string"&&o&&!X&&e.manuallyAnimateOnMount&&e.parent){const{parent:ce}=e,se=vt(ce,G);if(ce.enteringChildren&&se){const{delayChildren:x}=se.transition||{};q.delay=sl(ce.enteringChildren,e,x)}}return{animation:G,options:q}}))}if(f.size){const v={};if(typeof l.initial!="boolean"){const b=vt(e,Array.isArray(l.initial)?l.initial[0]:l.initial);b&&b.transition&&(v.transition=b.transition)}f.forEach(b=>{const w=e.getBaseTarget(b),T=e.getValue(b);T&&(T.liveStyle=!0),v[b]=w!=null?w:null}),u.push({animation:v})}let g=!!u.length;return o&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?t(u):Promise.resolve()}function a(c,l){var u;if(n[c].isActive===l)return Promise.resolve();(u=e.variantChildren)==null||u.forEach(f=>{var h;return(h=f.animationState)==null?void 0:h.setActive(c,l)}),n[c].isActive=l;const d=r(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:r,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Er()}}}function jm(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!il(t,e):!1}function Xe(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Er(){return{animate:Xe(!0),whileInView:Xe(),whileHover:Xe(),whileTap:Xe(),whileDrag:Xe(),whileFocus:Xe(),exit:Xe()}}class _e{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Fm extends _e{constructor(t){super(t),t.animationState||(t.animationState=Vm(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();In(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let $m=0;class Hm extends _e{constructor(){super(...arguments),this.id=$m++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const _m={animation:{Feature:Fm},exit:{Feature:Hm}};function Xt(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}function Qt(e){return{point:{x:e.pageX,y:e.pageY}}}const zm=e=>t=>Vs(t)&&e(t,Qt(t));function Ot(e,t,n,o){return Xt(e,t,zm(n),o)}const al=1e-4,Xm=1-al,Wm=1+al,cl=.01,Gm=0-cl,Ym=0+cl;function ue(e){return e.max-e.min}function Km(e,t,n){return Math.abs(e-t)<=n}function Mr(e,t,n,o=.5){e.origin=o,e.originPoint=J(t.min,t.max,e.origin),e.scale=ue(n)/ue(t),e.translate=J(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Xm&&e.scale<=Wm||isNaN(e.scale))&&(e.scale=1),(e.translate>=Gm&&e.translate<=Ym||isNaN(e.translate))&&(e.translate=0)}function Vt(e,t,n,o){Mr(e.x,t.x,n.x,o?o.originX:void 0),Mr(e.y,t.y,n.y,o?o.originY:void 0)}function Ur(e,t,n){e.min=n.min+t.min,e.max=e.min+ue(t)}function Zm(e,t,n){Ur(e.x,t.x,n.x),Ur(e.y,t.y,n.y)}function Pr(e,t,n){e.min=t.min-n.min,e.max=e.min+ue(t)}function wn(e,t,n){Pr(e.x,t.x,n.x),Pr(e.y,t.y,n.y)}function ve(e){return[e("x"),e("y")]}const ll=({current:e})=>e?e.ownerDocument.defaultView:null,Rr=(e,t)=>Math.abs(e-t);function qm(e,t){const n=Rr(e.x,t.x),o=Rr(e.y,t.y);return Math.sqrt(en(n,2)+en(o,2))}class dl{constructor(t,n,{transformPagePoint:o,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:r=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 f=bo(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=qm(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!p)return;const{point:g}=f,{timestamp:v}=ae;this.history.push(P(m({},g),{timestamp:v}));const{onStart:b,onMove:w}=this.handlers;h||(b&&b(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=go(h,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=bo(f.type==="pointercancel"?this.lastMoveEventInfo:go(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,b),g&&g(f,b)},!Vs(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=r,this.contextWindow=s||window;const a=Qt(t),c=go(a,this.transformPagePoint),{point:l}=c,{timestamp:d}=ae;this.history=[P(m({},l),{timestamp:d})];const{onSessionStart:u}=n;u&&u(t,bo(c,this.history)),this.removeListeners=Kt(Ot(this.contextWindow,"pointermove",this.handlePointerMove),Ot(this.contextWindow,"pointerup",this.handlePointerUp),Ot(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Fe(this.updatePoint)}}function go(e,t){return t?{point:t(e.point)}:e}function Nr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bo({point:e},t){return{point:e,delta:Nr(e,ul(t)),offset:Nr(e,Qm(t)),velocity:Jm(t,.1)}}function Qm(e){return e[0]}function ul(e){return e[e.length-1]}function Jm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const s=ul(e);for(;n>=0&&(o=e[n],!(s.timestamp-o.timestamp>Ae(t)));)n--;if(!o)return{x:0,y:0};const i=Te(s.timestamp-o.timestamp);if(i===0)return{x:0,y:0};const r={x:(s.x-o.x)/i,y:(s.y-o.y)/i};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function eg(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?J(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?J(n,e,o.max):Math.min(e,n)),e}function Lr(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function tg(e,{top:t,left:n,bottom:o,right:s}){return{x:Lr(e.x,n,s),y:Lr(e.y,t,o)}}function Br(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function ng(e,t){return{x:Br(e.x,t.x),y:Br(e.y,t.y)}}function og(e,t){let n=.5;const o=ue(e),s=ue(t);return s>o?n=$t(t.min,t.max-o,e.min):o>s&&(n=$t(e.min,e.max-s,t.min)),Ne(0,1,n)}function sg(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Qo=.35;function ig(e=Qo){return e===!1?e=0:e===!0&&(e=Qo),{x:Or(e,"left","right"),y:Or(e,"top","bottom")}}function Or(e,t,n){return{min:Vr(e,t),max:Vr(e,n)}}function Vr(e,t){return typeof e=="number"?e:e[t]||0}const rg=new WeakMap;class ag{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=re(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Qt(u).point)},r=(u,f)=>{const{drag:h,dragPropagation:p,onDragStart:g}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fp(h),!this.openDragLock))return;this.latestPointerEvent=u,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ve(b=>{let w=this.getAxisMotionValue(b).get()||0;if(Ue.test(w)){const{projection:T}=this.visualElement;if(T&&T.layout){const S=T.layout.layoutBox[b];S&&(w=ue(S)*(parseFloat(w)/100))}}this.originPoint[b]=w}),g&&Z.postRender(()=>g(u,f)),Zo(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(u,f)=>{this.latestPointerEvent=u,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:g,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:b}=f;if(p&&this.currentDirection===null){this.currentDirection=cg(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,b),this.updateAxis("y",f.point,b),this.visualElement.render(),v&&v(u,f)},c=(u,f)=>{this.latestPointerEvent=u,this.latestPanInfo=f,this.stop(u,f),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>ve(u=>{var f;return this.getAnimationState(u)==="paused"&&((f=this.getAxisMotionValue(u).animation)==null?void 0:f.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new dl(t,{onSessionStart:i,onStart:r,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:ll(this.visualElement)})}stop(t,n){const o=t||this.latestPointerEvent,s=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!o)return;const{velocity:r}=s;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&Z.postRender(()=>a(o,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,o){const{drag:s}=this.getProps();if(!o||!dn(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let r=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(r=eg(r,this.constraints[t],this.elastic[t])),i.set(r)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,s=this.constraints;t&&mt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=tg(o.layoutBox,t):this.constraints=!1,this.elastic=ig(n),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ve(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=sg(o.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!mt(t))return!1;const o=t.current;Le(o!==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:s}=this.visualElement;if(!s||!s.layout)return!1;const i=lm(o,s.root,this.visualElement.getTransformPagePoint());let r=ng(s.layout.layoutBox,i);if(n){const a=n(rm(r));this.hasMutatedConstraints=!!a,a&&(r=Yc(a))}return r}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:s,dragTransition:i,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=ve(d=>{if(!dn(d,n,this.currentDirection))return;let u=c&&c[d]||{};r&&(u={min:0,max:0});const f=s?200:1e6,h=s?40:1e7,p=m(m({type:"inertia",velocity:o?t[d]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10},i),u);return this.startAxisValueAnimation(d,p)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return Zo(this.visualElement,t),o.start(Ys(t,o,0,n,this.visualElement,!1))}stopAnimation(){ve(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ve(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),s=o[n];return s||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){ve(n=>{const{drag:o}=this.getProps();if(!dn(n,o,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:r,max:a}=s.layout.layoutBox[n];i.set(t[n]-J(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!mt(n)||!o||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};ve(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const c=a.get();s[r]=og({min:c,max:c},this.constraints[r])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),ve(r=>{if(!dn(r,t,null))return;const a=this.getAxisMotionValue(r),{min:c,max:l}=this.constraints[r];a.set(J(c,l,s[r]))})}addListeners(){if(!this.visualElement.current)return;rg.set(this.visualElement,this);const t=this.visualElement.current,n=Ot(t,"pointerdown",c=>{const{drag:l,dragListener:d=!0}=this.getProps();l&&d&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();mt(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",o);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Z.read(o);const r=Xt(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(ve(d=>{const u=this.getAxisMotionValue(d);u&&(this.originPoint[d]+=c[d].translate,u.set(u.get()+c[d].translate))}),this.visualElement.render())}));return()=>{r(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:r=Qo,dragMomentum:a=!0}=t;return P(m({},t),{drag:n,dragDirectionLock:o,dragPropagation:s,dragConstraints:i,dragElastic:r,dragMomentum:a})}}function dn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function cg(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class lg extends _e{constructor(t){super(t),this.removeGroupControls=we,this.removeListeners=we,this.controls=new ag(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||we}unmount(){this.removeGroupControls(),this.removeListeners()}}const jr=e=>(t,n)=>{e&&Z.postRender(()=>e(t,n))};class dg extends _e{constructor(){super(...arguments),this.removePointerDownListener=we}onPointerDown(t){this.session=new dl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ll(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:s}=this.node.getProps();return{onSessionStart:jr(t),onStart:jr(n),onMove:o,onEnd:(i,r)=>{delete this.session,s&&Z.postRender(()=>s(i,r))}}}mount(){this.removePointerDownListener=Ot(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const pn={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let yo=!1;class ug extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:s}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),o&&o.register&&s&&o.register(i),yo&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions(P(m({},i.options),{onExitComplete:()=>this.safeToRemove()}))),pn.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:s,isPresent:i}=this.props,{projection:r}=o;return r&&(r.isPresent=i,yo=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==i?r.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?r.promote():r.relegate()||Z.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Os.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:s}=t;yo=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),o&&o.deregister&&o.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function fl(e){const[t,n]=Nc(),o=I.useContext(gs);return y.jsx(ug,P(m({},e),{layoutGroup:o,switchLayoutGroup:I.useContext(Wc),isPresent:t,safeToRemove:n}))}function fg(e,t,n){const o=le(e)?e:wt(e);return o.start(Ys("",o,t,n)),o.animation}const hg=(e,t)=>e.depth-t.depth;class pg{constructor(){this.children=[],this.isDirty=!1}add(t){vs(this.children,t),this.isDirty=!0}remove(t){Ts(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(hg),this.isDirty=!1,this.children.forEach(t)}}function mg(e,t){const n=pe.now(),o=({timestamp:s})=>{const i=s-n;i>=t&&(Fe(o),e(i-t))};return Z.setup(o,!0),()=>Fe(o)}const hl=["TopLeft","TopRight","BottomLeft","BottomRight"],gg=hl.length,Fr=e=>typeof e=="string"?parseFloat(e):e,$r=e=>typeof e=="number"||V.test(e);function bg(e,t,n,o,s,i){var r,a,c,l;s?(e.opacity=J(0,(r=n.opacity)!=null?r:1,yg(o)),e.opacityExit=J((a=t.opacity)!=null?a:1,0,vg(o))):i&&(e.opacity=J((c=t.opacity)!=null?c:1,(l=n.opacity)!=null?l:1,o));for(let d=0;d<gg;d++){const u=`border${hl[d]}Radius`;let f=Hr(t,u),h=Hr(n,u);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||$r(f)===$r(h)?(e[u]=Math.max(J(Fr(f),Fr(h),o),0),(Ue.test(h)||Ue.test(f))&&(e[u]+="%")):e[u]=h}(t.rotate||n.rotate)&&(e.rotate=J(t.rotate||0,n.rotate||0,o))}function Hr(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const yg=pl(0,.5,Ja),vg=pl(.5,.95,we);function pl(e,t,n){return o=>o<e?0:o>t?1:n($t(e,t,o))}function _r(e,t){e.min=t.min,e.max=t.max}function Se(e,t){_r(e.x,t.x),_r(e.y,t.y)}function zr(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Xr(e,t,n,o,s){return e-=t,e=Tn(e,1/n,o),s!==void 0&&(e=Tn(e,1/s,o)),e}function Tg(e,t=0,n=1,o=.5,s,i=e,r=e){if(Ue.test(t)&&(t=parseFloat(t),t=J(r.min,r.max,t/100)-r.min),typeof t!="number")return;let a=J(i.min,i.max,o);e===i&&(a-=t),e.min=Xr(e.min,t,n,a,s),e.max=Xr(e.max,t,n,a,s)}function Wr(e,t,[n,o,s],i,r){Tg(e,t[n],t[o],t[s],t.scale,i,r)}const wg=["x","scaleX","originX"],Sg=["y","scaleY","originY"];function Gr(e,t,n,o){Wr(e.x,t,wg,n?n.x:void 0,o?o.x:void 0),Wr(e.y,t,Sg,n?n.y:void 0,o?o.y:void 0)}function Yr(e){return e.translate===0&&e.scale===1}function ml(e){return Yr(e.x)&&Yr(e.y)}function Kr(e,t){return e.min===t.min&&e.max===t.max}function Dg(e,t){return Kr(e.x,t.x)&&Kr(e.y,t.y)}function Zr(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function gl(e,t){return Zr(e.x,t.x)&&Zr(e.y,t.y)}function qr(e){return ue(e.x)/ue(e.y)}function Qr(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Cg{constructor(){this.members=[]}add(t){vs(this.members,t),t.scheduleRender()}remove(t){if(Ts(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let o;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ag(e,t,n){let o="";const s=e.x.translate/t.x,i=e.y.translate/t.y,r=(n==null?void 0:n.z)||0;if((s||i||r)&&(o=`translate3d(${s}px, ${i}px, ${r}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:d,rotateX:u,rotateY:f,skewX:h,skewY:p}=n;l&&(o=`perspective(${l}px) ${o}`),d&&(o+=`rotate(${d}deg) `),u&&(o+=`rotateX(${u}deg) `),f&&(o+=`rotateY(${f}deg) `),h&&(o+=`skewX(${h}deg) `),p&&(o+=`skewY(${p}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(o+=`scale(${a}, ${c})`),o||"none"}const vo=["","X","Y","Z"],kg=1e3;let xg=0;function To(e,t,n,o){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),o&&(o[e]=0))}function bl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=nl(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Z,!(s||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&bl(o)}function yl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:s}){return class{constructor(r={},a=t==null?void 0:t()){this.id=xg++,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(Mg),this.nodes.forEach(Ng),this.nodes.forEach(Lg),this.nodes.forEach(Ug)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,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 pg)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Ss),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Rc(r)&&!yp(r),this.instance=r;const{layoutId:a,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),e){let d,u=0;const f=()=>this.root.updateBlockedByResize=!1;Z.read(()=>{u=window.innerWidth}),e(r,()=>{const h=window.innerWidth;h!==u&&(u=h,this.root.updateBlockedByResize=!0,d&&d(),d=mg(f,250),pn.hasAnimatedSinceResize&&(pn.hasAnimatedSinceResize=!1,this.nodes.forEach(ta)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||l.getDefaultTransition()||Fg,{onLayoutAnimationStart:g,onLayoutAnimationComplete:v}=l.getProps(),b=!this.targetLayout||!gl(this.targetLayout,h),w=!u&&f;if(this.options.layoutRoot||this.resumeFrom||w||u&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T=P(m({},Ls(p,"layout")),{onPlay:g,onComplete:v});(l.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(d,w)}else u||ta(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Fe(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(Bg),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&bl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const u=this.path[d];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.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(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Jr);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ea);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Rg),this.nodes.forEach(Ig),this.nodes.forEach(Eg)):this.nodes.forEach(ea),this.clearAllSnapshots();const a=pe.now();ae.delta=Ne(0,1e3/60,a-ae.timestamp),ae.timestamp=a,ae.isProcessing=!0,ao.update.process(ae),ao.preRender.process(ae),ao.render.process(ae),ae.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Os.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Pg),this.sharedNodes.forEach(Og)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ue(this.snapshot.measuredBox.x)&&!ue(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 r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=re(),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,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const c=o(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ml(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,d=l!==this.prevTransformTemplateValue;r&&this.instance&&(a||We(this.latestValues)||d)&&(s(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),$g(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:r}=this.options;if(!r)return re();const a=r.measureViewportBox();if(!(((l=this.scroll)==null?void 0:l.wasRoot)||this.path.some(Hg))){const{scroll:d}=this.root;d&&(gt(a.x,d.offset.x),gt(a.y,d.offset.y))}return a}removeElementScroll(r){var c;const a=re();if(Se(a,r),(c=this.scroll)!=null&&c.wasRoot)return a;for(let l=0;l<this.path.length;l++){const d=this.path[l],{scroll:u,options:f}=d;d!==this.root&&u&&f.layoutScroll&&(u.wasRoot&&Se(a,r),gt(a.x,u.offset.x),gt(a.y,u.offset.y))}return a}applyTransform(r,a=!1){const c=re();Se(c,r);for(let l=0;l<this.path.length;l++){const d=this.path[l];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&bt(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),We(d.latestValues)&&bt(c,d.latestValues)}return We(this.latestValues)&&bt(c,this.latestValues),c}removeTransform(r){const a=re();Se(a,r);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!We(l.latestValues))continue;Wo(l.latestValues)&&l.updateSnapshot();const d=re(),u=l.measurePageBox();Se(d,u),Gr(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,d)}return We(this.latestValues)&&Gr(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options=P(m(m({},this.options),r),{crossfade:r.crossfade!==void 0?r.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!==ae.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!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(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:u}=this.options;if(!this.layout||!(d||u))return;this.resolvedRelativeTargetAt=ae.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=re(),this.targetWithTransforms=re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Zm(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Se(this.target,this.layout.layoutBox),Zc(this.target,this.targetDelta)):Se(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Wo(this.parent.latestValues)||Kc(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,c){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),wn(this.relativeTargetOrigin,a,c),Se(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const r=this.getLead(),a=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ae.timestamp&&(c=!1),c)return;const{layout:l,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||d))return;Se(this.layoutCorrected,this.layout.layoutBox);const u=this.treeScale.x,f=this.treeScale.y;cm(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=re());const{target:h}=r;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(zr(this.prevProjectionDelta.x,this.projectionDelta.x),zr(this.prevProjectionDelta.y,this.projectionDelta.y)),Vt(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==f||!Qr(this.projectionDelta.x,this.prevProjectionDelta.x)||!Qr(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),r){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=yt(),this.projectionDelta=yt(),this.projectionDeltaWithTransform=yt()}setAnimationOrigin(r,a=!1){const c=this.snapshot,l=c?c.latestValues:{},d=m({},this.latestValues),u=yt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=re(),h=c?c.source:void 0,p=this.layout?this.layout.source:void 0,g=h!==p,v=this.getStack(),b=!v||v.members.length<=1,w=!!(g&&!b&&this.options.crossfade===!0&&!this.path.some(jg));this.animationProgress=0;let T;this.mixTargetDelta=S=>{const C=S/1e3;na(u.x,r.x,C),na(u.y,r.y,C),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wn(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Vg(this.relativeTarget,this.relativeTargetOrigin,f,C),T&&Dg(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=re()),Se(T,this.relativeTarget)),g&&(this.animationValues=d,bg(d,l,this.latestValues,C,w,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){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&&(Fe(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{pn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=wt(0)),this.currentAnimation=fg(this.motionValue,[0,1e3],P(m({},r),{velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),r.onUpdate&&r.onUpdate(d)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.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 r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(kg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:d}=r;if(!(!a||!c||!l)){if(this!==r&&this.layout&&l&&vl(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||re();const u=ue(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+u;const f=ue(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+f}Se(a,c),bt(a,d),Vt(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Cg),this.sharedNodes.get(r).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 r=this.getStack();return r?r.lead===this:!0}getLead(){var a;const{layoutId:r}=this.options;return r?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:r}=this.options;return r?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&To("z",r,l,this.animationValues);for(let d=0;d<vo.length;d++)To(`rotate${vo[d]}`,r,l,this.animationValues),To(`skew${vo[d]}`,r,l,this.animationValues);r.render();for(const d in l)r.setStaticValue(d,l[d]),this.animationValues&&(this.animationValues[d]=l[d]);r.scheduleRender()}applyProjectionStyles(r,a){var p,g;if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=hn(a==null?void 0:a.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=hn(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!We(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const d=l.animationValues||l.latestValues;this.applyTransformsToTarget();let u=Ag(this.projectionDeltaWithTransform,this.treeScale,d);c&&(u=c(d,u)),r.transform=u;const{x:f,y:h}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${h.origin*100}% 0`,l.animationValues?r.opacity=l===this?(g=(p=d.opacity)!=null?p:this.latestValues.opacity)!=null?g:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:r.opacity=l===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const v in Xo){if(d[v]===void 0)continue;const{correct:b,applyTo:w,isCSSVariable:T}=Xo[v],S=u==="none"?d[v]:b(d[v],l);if(w){const C=w.length;for(let A=0;A<C;A++)r[w[A]]=S}else T?this.options.visualElement.renderState.vars[v]=S:r[v]=S}this.options.layoutId&&(r.pointerEvents=l===this?hn(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Jr),this.root.sharedNodes.clear()}}}function Ig(e){e.updateLayout()}function Eg(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:s}=e.layout,{animationType:i}=e.options,r=t.source!==e.layout.source;i==="size"?ve(u=>{const f=r?t.measuredBox[u]:t.layoutBox[u],h=ue(f);f.min=o[u].min,f.max=f.min+h}):vl(i,t.layoutBox,o)&&ve(u=>{const f=r?t.measuredBox[u]:t.layoutBox[u],h=ue(o[u]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+h)});const a=yt();Vt(a,o,t.layoutBox);const c=yt();r?Vt(c,e.applyTransform(s,!0),t.measuredBox):Vt(c,o,t.layoutBox);const l=!ml(a);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:f,layout:h}=u;if(f&&h){const p=re();wn(p,t.layoutBox,f.layoutBox);const g=re();wn(g,o,h.layoutBox),gl(p,g)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=p,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:t,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function Mg(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Ug(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Pg(e){e.clearSnapshot()}function Jr(e){e.clearMeasurements()}function ea(e){e.isLayoutDirty=!1}function Rg(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ta(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ng(e){e.resolveTargetDelta()}function Lg(e){e.calcProjection()}function Bg(e){e.resetSkewAndRotation()}function Og(e){e.removeLeadSnapshot()}function na(e,t,n){e.translate=J(t.translate,0,n),e.scale=J(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function oa(e,t,n,o){e.min=J(t.min,n.min,o),e.max=J(t.max,n.max,o)}function Vg(e,t,n,o){oa(e.x,t.x,n.x,o),oa(e.y,t.y,n.y,o)}function jg(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Fg={duration:.45,ease:[.4,0,.1,1]},sa=e=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ia=sa("applewebkit/")&&!sa("chrome/")?Math.round:we;function ra(e){e.min=ia(e.min),e.max=ia(e.max)}function $g(e){ra(e.x),ra(e.y)}function vl(e,t,n){return e==="position"||e==="preserve-aspect"&&!Km(qr(t),qr(n),.2)}function Hg(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const _g=yl({attachResizeListener:(e,t)=>Xt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wo={current:void 0},Tl=yl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wo.current){const e=new _g({});e.mount(window),e.setOptions({layoutScroll:!0}),wo.current=e}return wo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),zg={pan:{Feature:dg},drag:{Feature:lg,ProjectionNode:Tl,MeasureLayout:fl}};function aa(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=o[s];i&&Z.postRender(()=>i(t,Qt(t)))}class Xg extends _e{mount(){const{current:t}=this.node;t&&(this.unmount=hp(t,(n,o)=>(aa(this.node,o,"Start"),s=>aa(this.node,s,"End"))))}unmount(){}}class Wg extends _e{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(n){t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Kt(Xt(this.node.current,"focus",()=>this.onFocus()),Xt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ca(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=o[s];i&&Z.postRender(()=>i(t,Qt(t)))}class Gg extends _e{mount(){const{current:t}=this.node;t&&(this.unmount=bp(t,(n,o)=>(ca(this.node,o,"Start"),(s,{success:i})=>ca(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Jo=new WeakMap,So=new WeakMap,Yg=e=>{const t=Jo.get(e.target);t&&t(e)},Kg=e=>{e.forEach(Yg)};function Zg(n){var o=n,{root:e}=o,t=_(o,["root"]);const s=e||document;So.has(s)||So.set(s,{});const i=So.get(s),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(Kg,m({root:e},t))),i[r]}function qg(e,t,n){const o=Zg(t);return Jo.set(e,n),o.observe(e),()=>{Jo.delete(e),o.unobserve(e)}}const Qg={some:0,all:1};class Jg extends _e{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:s="some",once:i}=t,r={root:n?n.current:void 0,rootMargin:o,threshold:typeof s=="number"?s:Qg[s]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:d,onViewportLeave:u}=this.node.getProps(),f=l?d:u;f&&f(c)};return qg(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver=="undefined")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(eb(t,n))&&this.startObserver()}unmount(){}}function eb({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const tb={inView:{Feature:Jg},tap:{Feature:Gg},focus:{Feature:Wg},hover:{Feature:Xg}},nb={layout:{ProjectionNode:Tl,MeasureLayout:fl}},ob=m(m(m(m({},_m),tb),zg),nb),sb=im(ob,ym),wl=()=>{const e=I.useContext(ms);if(!e)throw new Error("useW3Payments must be used within W3PaymentsProvider. Make sure your component is wrapped with <W3PaymentsProvider>.");return e},la=({id:e,name:t,description:n,iconUrl:o,fallbackText:s,avatarColor:i="blue",onClick:r,disabled:a=!1})=>{const[c,l]=I.useState(!1);return y.jsxs(ge,{justify:"space-between",w:"100%",p:"md",style:{backgroundColor:"var(--w3-background)",borderBottom:"0.25px solid var(--w3-border)",cursor:a?"not-allowed":"pointer",opacity:a?.4:1,transition:"all 200ms ease",position:"relative",overflow:"hidden",color:"var(--w3-text)"},onClick:a?void 0:r,onMouseEnter:()=>!a&&l(!0),onMouseLeave:()=>l(!1),className:"payment-method-row",children:[y.jsxs(ge,{gap:"md",style:{flexShrink:0},children:[y.jsx(z,{style:{width:"40px",height:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 200ms ease",transform:c?"scale(1.1)":"scale(1)"},children:o?y.jsx(Ft,{size:32,src:o,radius:"lg"}):y.jsx(Ft,{size:32,color:i,radius:"lg",children:s})}),y.jsxs(z,{style:{minWidth:0},children:[y.jsx(ie,{fw:700,size:"xs",tt:"capitalize",style:{letterSpacing:"-0.02em",color:"var(--w3-text)"},children:t}),y.jsx(ie,{size:"xs",fw:500,style:{letterSpacing:"-0.01em",fontSize:"11px",color:"var(--w3-textSecondary)"},children:n})]})]}),y.jsx(ge,{gap:"sm",align:"center",children:y.jsx(tt,{variant:"subtle",size:"sm",style:{opacity:c?1:0,transform:c?"translateX(0)":"translateX(-8px)",transition:"all 200ms ease",color:"var(--mantine-color-gray-6)"},children:"→"})})]},e)},ib="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",rb="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",ab="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",cb=({style:e})=>y.jsx(ge,{justify:"flex-end",py:"lg",px:"md",style:m({backgroundColor:"var(--w3-background)",borderTop:"0.25px solid var(--w3-border)",borderBottomLeftRadius:"var(--mantine-radius-xl)",borderBottomRightRadius:"var(--mantine-radius-xl)",flexShrink:0,height:"80px",minHeight:"80px"},e),children:y.jsxs(ge,{gap:"xs",align:"center",style:{opacity:.5,cursor:"pointer",transition:"opacity 200ms ease"},onClick:()=>window.open("https://w3.io","_blank"),onMouseEnter:t=>t.currentTarget.style.opacity="0.8",onMouseLeave:t=>t.currentTarget.style.opacity="0.5",children:[y.jsxs(ge,{gap:"1px",align:"center",wrap:"nowrap",children:[y.jsx(Qe,{src:ib,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%)"}}),y.jsx(Qe,{src:rb,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%)"}}),y.jsx(Qe,{src:ab,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%)"}})]}),y.jsx(ie,{size:"xs",fw:700,style:{color:"var(--w3-textSecondary)"},children:"Payments"})]})}),lb="_widget_1x924_3",db={widget:lb},ub=({title:e="🔥 Add Your Brand Here",subtitle:t="CHOOSE A PAYMENT METHOD",logo:n,showAmount:o=!0,showHeader:s=!0,theme:i="default",appearance:r,userId:a,transactionId:c,amount:l="",editable:d=!0,currency:u="USD",targetCurrency:f,targetNetwork:h,destinations:p,walletFilter:g,exchangeFilter:v,fiatFilter:b,onInitiate:w,onComplete:T,onError:S})=>{const{w3payments:C,httpClient:A,isInitialized:k}=wl(),D=Ll(i,r),[E,U]=I.useState(l),[R,N]=I.useState(null),[L,O]=I.useState(!1),[X,de]=I.useState(null),[G,q]=I.useState(""),[ce,se]=I.useState(""),[x,j]=I.useState(!1),B=I.useMemo(()=>C?C.getCurrency(u):null,[C,u]);I.useEffect(()=>{L&&X&&B?ee(null,null,function*(){try{const ne=yield rd(X.address,B.code,E,{width:176,margin:1});q(ne),se("")}catch(ne){se("Failed to generate QR code"),console.error("QR generation error:",ne)}}):(q(""),se(""))},[L,X,B,E]);const Y=I.useMemo(()=>!k||!C?[]:C.paymentMethodService.getDisplayOptions({walletFilter:g,exchangeFilter:v,fiatFilter:b,targetCurrency:f,targetNetwork:h}).map(ne=>{const H=ne.id.includes("-")?ne.id.split("-")[0]:ne.id;return P(m({},ne),{currency:H,available:!0})}),[k,C,g,v,b,f,h]),ye=()=>{if(!B||!E)return;const F=parseFloat(E);if(!isNaN(F))return B.code==="USD"?F:B.code==="BTC"?F*1e5:0},ke=()=>{U(""),N(null)},$=F=>ee(null,null,function*(){if(R)return;if(F.startsWith("direct-")&&p){const H=F.replace("direct-",""),K=p.find(at=>at.symbol===H);if(K){de(K),O(!0);return}}const ne=Y.find(H=>H.id===F);if(ne&&ne.method==="wallet"&&p&&p.length>0){const H=p.find(K=>K.symbol===ne.currency||K.symbol===f);if(H){de(H),O(!0);return}}yield fe(F)}),te=()=>{O(!1),de(null)},fe=F=>ee(null,null,function*(){var ne;if(!(!E||!F||!B||!C||!k)){N(F);try{yield w==null?void 0:w(m({amount:E,currency:B.code,paymentMethodId:F},a&&{userId:a}));const H=yield A.createPayment({id:c||`payment_${Date.now()}`,amount:parseFloat(E),currency:B.code,customerId:a||"anonymous",destinations:p,metadata:{paymentMethodId:F}});if(C&&H)try{const K=yield C.openCheckout({id:H.id,url:H.url,expiresAt:H.expiresAt,metadata:P(m({},H.metadata),{selectedVendor:H.selectedVendor,vendorId:H.selectedVendor})});K.status==="cancelled"?S==null||S({message:"Payment cancelled by user",transactionId:H.id,userId:a||"anonymous",code:"PAYMENT_CANCELLED"}):K.status==="failed"?S==null||S({message:((ne=K.data)==null?void 0:ne.message)||"Payment failed",transactionId:H.id,userId:a||"anonymous",details:K.data}):(T==null||T(P(m({amount:E,currency:B.code,paymentMethodId:F,transactionId:K.id,vendorId:H.selectedVendor||"unknown",status:K.status},a&&{userId:a}),{checkoutData:K.data})),ke())}catch(K){S==null||S({message:`Checkout failed: ${K instanceof Error?K.message:"Unknown error"}`,transactionId:H.id,userId:a||"anonymous",details:K})}else T==null||T(m({amount:E,currency:B.code,paymentMethodId:F,transactionId:H.id,vendorId:H.selectedVendor||"unknown",status:"pending"},a&&{userId:a}))}catch(H){S==null||S(P(m(m({message:H instanceof Error?H.message:"Payment failed"},c&&{transactionId:c}),a&&{userId:a}),{details:H}))}finally{N(null)}}});if(!k)return y.jsx(ft,{children:y.jsxs(Ee,{align:"center",children:[y.jsx(Tt,{}),y.jsx(ie,{children:"Loading..."})]})});const he=ye();return y.jsx(ft,{shadow:"md",radius:"xl",p:0,className:db.widget,style:m({height:"600px"},D),"data-w3-payment-widget":!0,children:y.jsxs(z,{style:{position:"relative",overflow:"hidden",height:"100%",display:"flex",flexDirection:"column"},children:[y.jsx(z,{style:{flex:1,position:"relative",overflow:"hidden"},children:y.jsx(xp,{mode:"wait",children:L&&X&&B?y.jsx(sb.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-background)",borderTopLeftRadius:"var(--mantine-radius-xl)",borderTopRightRadius:"var(--mantine-radius-xl)",zIndex:10,overflow:"auto"},children:y.jsxs(z,{style:{height:"100%",display:"flex",flexDirection:"column",backgroundColor:"var(--w3-background)"},children:[y.jsxs(ge,{justify:"space-between",px:"xs",pt:"md",pb:"sm",style:{flexShrink:0},children:[y.jsx(z,{style:{width:"40px"}}),y.jsxs(ie,{fw:700,size:"sm",style:{textAlign:"center",flex:1,color:"var(--w3-text)"},children:["Send ",B==null?void 0:B.code," to Complete Payment"]}),y.jsx(tt,{variant:"subtle",onClick:te,style:{width:"40px",height:"40px",color:"var(--w3-text)"},children:"→"})]}),y.jsx(z,{className:"w3-scrollable",style:{flex:1,overflow:"auto",backgroundColor:"var(--w3-background)"},children:y.jsxs(Ee,{px:"xl",pb:"md",align:"center",gap:"sm",children:[y.jsxs(Ee,{align:"center",gap:0,children:[y.jsxs(ie,{style:{fontSize:"var(--w3-fontSizeLarge)",fontWeight:"bold",letterSpacing:"-0.02em",textAlign:"center",color:"var(--w3-text)"},children:[E," ",B==null?void 0:B.code]}),he!==void 0&&he>0&&y.jsxs("div",{style:{padding:"4px 12px",backgroundColor:"var(--w3-background)",color:"var(--w3-textSecondary)",borderRadius:"20px",fontSize:"var(--w3-fontSizeBase)",fontWeight:"bold",marginTop:"-8px"},children:["≈ $",he.toFixed(2)," USD"]})]}),y.jsx(ft,{radius:"xl",p:"sm",style:{width:"176px",height:"176px",backgroundColor:"var(--w3-background)",border:"2px solid var(--mantine-color-gray-2)"},children:y.jsx(ps,{style:{width:"100%",height:"100%"},children:ce?y.jsx(ie,{size:"xs",style:{color:"var(--w3-danger)"},children:"Error"}):G?y.jsx(Qe,{src:G,alt:"Payment QR Code",style:{width:"100%",height:"100%"}}):y.jsx(Tt,{})})}),y.jsxs(Ee,{w:"100%",gap:4,children:[y.jsxs(ie,{fw:700,tt:"uppercase",style:{letterSpacing:"0.05em",fontSize:"10px",color:"var(--w3-textSecondary)"},children:[B==null?void 0:B.code," Address"]}),y.jsx(z,{px:"xs",py:4,style:{backgroundColor:"var(--w3-border)",borderRadius:"var(--mantine-radius-lg)",border:"1px solid var(--w3-border)"},children:y.jsxs(ge,{gap:"xs",children:[y.jsx(ie,{style:{flex:1,fontFamily:"monospace",fontSize:"10px",color:"var(--w3-text)"},children:X==null?void 0:X.address}),y.jsx(tt,{variant:"outline",radius:"lg",size:"lg",style:{backgroundColor:"var(--w3-background)",borderColor:x?"var(--w3-success)":"var(--w3-border)",color:x?"var(--w3-success)":"var(--w3-text)"},onClick:()=>ee(null,null,function*(){X!=null&&X.address&&(yield ad(X.address))&&(j(!0),setTimeout(()=>j(!1),2e3))}),children:x?y.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:y.jsx("polyline",{points:"20,6 9,17 4,12"})}):y.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[y.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),y.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})]})})]}),y.jsx(z,{p:"md",style:{backgroundColor:"var(--w3-border)",borderRadius:"var(--mantine-radius-md)",width:"100%"},children:y.jsxs(ge,{gap:"md",align:"flex-start",children:[y.jsx("div",{style:{width:"20px",height:"20px",borderRadius:"50%",backgroundColor:"#dbeafe",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:y.jsx(ie,{size:"xs",style:{color:"var(--w3-textSecondary)"},children:"ℹ"})}),y.jsxs(ie,{size:"xs",style:{lineHeight:1.5,flex:1,color:"var(--w3-textSecondary)"},children:["Send exactly"," ",y.jsxs(ie,{component:"span",fw:700,style:{color:"var(--w3-text)"},children:[E," ",B==null?void 0:B.code]})," ","to complete your payment. The transaction will be confirmed automatically."]})]})})]})})]})},"direct-deposit"):y.jsxs(z,{style:{height:"100%",display:"flex",flexDirection:"column",zIndex:1},children:[s&&y.jsxs(Ee,{align:"center",gap:"xl",pt:40,pb:32,px:"xl",style:{background:"var(--w3-background)",borderTopLeftRadius:"var(--mantine-radius-xl)",borderTopRightRadius:"var(--mantine-radius-xl)",borderBottom:"0.25px solid var(--w3-border)",flexShrink:0},children:[y.jsxs(ge,{gap:"xs",children:[n?y.jsx(Qe,{src:n,alt:"Logo",w:"28px",h:"28px",style:{borderRadius:"50%"}}):y.jsx("div",{style:{width:"28px",height:"28px",borderRadius:"50%",backgroundColor:"var(--mantine-color-w3Accent-5)",display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontWeight:"bold",fontSize:"var(--w3-fontSizeBase)"},children:"🔥"}),y.jsx(ie,{size:"xs",fw:700,style:{letterSpacing:"-0.02em",color:"var(--w3-text)"},children:e})]}),o&&B&&y.jsxs(Ee,{align:"center",gap:"xs",children:[y.jsxs(ge,{gap:"xs",align:"baseline",children:[y.jsx(ie,{style:{fontSize:"var(--w3-fontSizeLarge)",fontWeight:"bold",letterSpacing:"-0.02em",lineHeight:1,color:"var(--w3-text)"},children:d?E||"0":E}),y.jsx(ie,{size:"lg",fw:500,style:{letterSpacing:"-0.01em",color:"var(--w3-textSecondary)"},children:B.code})]}),he!==void 0&&he>0&&y.jsxs(ie,{size:"xs",fw:500,style:{marginTop:"-4px",color:"var(--w3-textSecondary)"},children:["≈ $",he.toFixed(2)," USD"]})]})]}),y.jsx(z,{className:"w3-scrollable",style:{flex:1,overflow:"auto",backgroundColor:"var(--w3-background)"},children:y.jsxs(Ee,{gap:"xs",px:"lg",py:"xs",children:[y.jsx(ie,{size:"xs",fw:700,tt:"uppercase",px:"xs",style:{letterSpacing:"0.1em",fontSize:"var(--w3-fontSizeSmall)",color:"var(--w3-textSecondary)"},children:t}),y.jsx(ft,{radius:"lg",p:0,shadow:"none",style:{backgroundColor:"var(--w3-background)",border:"0.25px solid var(--w3-border)",overflow:"hidden"},children:y.jsxs(Ee,{gap:0,children:[p&&p.map(F=>{var K;const ne=(K=C==null?void 0:C.getCurrency(F.symbol))==null?void 0:K.iconUrl,H=C==null?void 0:C.getCurrency(F.symbol);return y.jsx(la,{id:`direct-${F.symbol}`,name:(H==null?void 0:H.name)||F.symbol,description:"Direct Deposit",iconUrl:ne||void 0,fallbackText:F.symbol,avatarColor:"blue",isPrimary:!1,onClick:()=>$(`direct-${F.symbol}`),disabled:!!R},`direct-${F.symbol}`)}),Y.map(F=>{const H=(K=>{const at=K.toLowerCase();let xe=ud(K);if(xe||(xe=hd(at),xe)||(xe=md(at),xe))return xe})(F.displayName);return y.jsx(la,{id:F.id,name:F.displayName,description:F.method.charAt(0).toUpperCase()+F.method.slice(1),iconUrl:H||void 0,fallbackText:F.displayName[0],avatarColor:"gray",isPrimary:!1,onClick:()=>$(F.id),disabled:!F.available||!!R},F.id)})]})})]})})]},"payment-form")})}),y.jsx(cb,{})]})})},Sl="1.0.0",fb={W3_PAYMENTS_REACT_VERSION:Sl};exports.W3PaymentWidget=ub;exports.W3PaymentsProvider=Cf;exports.W3_PAYMENTS_REACT_VERSION=Sl;exports.default=fb;exports.useW3Payments=wl;
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
+ ]))+`;At.KANJI=new RegExp(n,"g"),At.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),At.BYTE=new RegExp(r,"g"),At.NUMERIC=new RegExp(t,"g"),At.ALPHANUMERIC=new RegExp(e,"g");const i=new RegExp("^"+n+"$"),s=new RegExp("^"+t+"$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return At.testKanji=function(c){return i.test(c)},At.testNumeric=function(c){return s.test(c)},At.testAlphanumeric=function(c){return o.test(c)},At}var Fo;function Qt(){return Fo||(Fo=1,(function(t){const e=ul(),n=fl();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}}})(sr)),sr}var _o;function M0(){return _o||(_o=1,(function(t){const e=Jt(),n=ll(),r=Oi(),i=Qt(),s=ul(),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}})(ir)),ir}var ar={},Uo;function k0(){if(Uo)return ar;Uo=1;const t=Jt(),e=1335,n=21522,r=t.getBCHDigit(e);return ar.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},ar}var cr={},lr,zo;function D0(){if(zo)return lr;zo=1;const t=Qt();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))},lr=e,lr}var ur,Wo;function j0(){if(Wo)return ur;Wo=1;const t=Qt(),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)},ur=n,ur}var fr,Ho;function V0(){if(Ho)return fr;Ho=1;const t=Qt();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)},fr=e,fr}var dr,Go;function I0(){if(Go)return dr;Go=1;const t=Qt(),e=Jt();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)}},dr=n,dr}var hr={exports:{}},qo;function N0(){return qo||(qo=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})(hr)),hr.exports}var Ko;function L0(){return Ko||(Ko=1,(function(t){const e=Qt(),n=D0(),r=j0(),i=V0(),s=I0(),o=fl(),a=Jt(),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 D=A[R],j=""+P+R;C.push(j),x[j]={node:D,lastCount:0},T[j]={};for(let I=0;I<M.length;I++){const L=M[I];x[L]&&x[L].node.mode===D.mode?(T[L][j]=d(x[L].lastCount+D.length,D.mode)-d(x[L].lastCount,D.mode),x[L].lastCount+=D.length):(x[L]&&(x[L].lastCount=D.length),T[L][j]=d(D.length,D.mode)+4+e.getCharCountIndicator(D.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()))}})(cr)),cr}var Yo;function B0(){if(Yo)return Yn;Yo=1;const t=Jt(),e=Oi(),n=w0(),r=C0(),i=T0(),s=S0(),o=P0(),a=ll(),c=R0(),l=M0(),u=k0(),f=Qt(),d=L0();function h(P,A){const C=P.size,R=s.getPositions(A);for(let D=0;D<R.length;D++){const j=R[D][0],I=R[D][1];for(let L=-1;L<=7;L++)if(!(j+L<=-1||C<=j+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(j+L,I+B,!0,!0):P.set(j+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 D=C[R][0],j=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(D+I,j+L,!0,!0):P.set(D+I,j+L,!1,!0)}}function b(P,A){const C=P.size,R=l.getEncodedBits(A);let D,j,I;for(let L=0;L<18;L++)D=Math.floor(L/3),j=L%3+C-8-3,I=(R>>L&1)===1,P.set(D,j,I,!0),P.set(j,D,I,!0)}function v(P,A,C){const R=P.size,D=u.getEncodedBits(A,C);let j,I;for(j=0;j<15;j++)I=(D>>j&1)===1,j<6?P.set(j,8,I,!0):j<8?P.set(j+1,8,I,!0):P.set(R-15+j,8,I,!0),j<8?P.set(8,R-j-1,I,!0):j<9?P.set(8,15-j-1+1,I,!0):P.set(8,15-j-1,I,!0);P.set(R-8,8,1,!0)}function w(P,A){const C=P.size;let R=-1,D=C-1,j=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(D,L-B)){let et=!1;I<A.length&&(et=(A[I]>>>j&1)===1),P.set(D,L-B,et),j--,j===-1&&(I++,j=7)}if(D+=R,D<0||C<=D){D-=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 D=t.getSymbolTotalCodewords(P),j=a.getTotalCodewordsCount(P,A),I=(D-j)*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),D=a.getTotalCodewordsCount(A,C),j=R-D,I=a.getBlocksCount(A,C),L=R%I,B=I-L,et=Math.floor(R/I),lt=Math.floor(j/I),H=lt+1,K=et-lt,it=new c(K);let rt=0;const E=new Array(I),O=new Array(I);let z=0;const q=new Uint8Array(P.buffer);for(let _=0;_<I;_++){const Q=_<B?lt:H;E[_]=q.slice(rt,rt+Q),O[_]=it.encode(E[_]),rt+=Q,z=Math.max(z,Q)}const dt=new Uint8Array(R);let Pt=0,U,N;for(U=0;U<z;U++)for(N=0;N<I;N++)U<E[N].length&&(dt[Pt++]=E[N][U]);for(U=0;U<K;U++)for(N=0;N<I;N++)dt[Pt++]=O[N][U];return dt}function M(P,A,C,R){let D;if(Array.isArray(P))D=d.fromArray(P);else if(typeof P=="string"){let et=A;if(!et){const lt=d.rawSplit(P);et=l.getBestVersionForData(lt,C)}D=d.fromString(P,et||40)}else throw new Error("Invalid data");const j=l.getBestVersionForData(D,C);if(!j)throw new Error("The amount of data is too big to be stored in a QR Code");if(!A)A=j;else if(A<j)throw new Error(`
22
+ The chosen QR Code version cannot contain this amount of data.
23
+ Minimum version required to store current data is: `+j+`.
24
+ `);const I=x(A,C,D),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:D}}return Yn.create=function(A,C){if(typeof A=="undefined"||A==="")throw new Error("No input text");let R=e.M,D,j;return typeof C!="undefined"&&(R=e.from(C.errorCorrectionLevel,e.M),D=l.from(C.version),j=o.from(C.maskPattern),C.toSJISFunc&&t.setToSJISFunction(C.toSJISFunc)),M(A,D,R,j)},Yn}var mr={},pr={},Xo;function dl(){return Xo||(Xo=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}}})(pr)),pr}var Zo;function $0(){return Zo||(Zo=1,(function(t){const e=dl();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)}})(mr)),mr}var gr={},Jo;function O0(){if(Jo)return gr;Jo=1;const t=dl();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 gr.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},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_1uy41_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&&gt.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,{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,{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",overflow:"hidden",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,{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;