@paynext/sdk 0.0.12 → 0.0.13

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.
@@ -1 +1 @@
1
- ._googlePay_1a960_1{border-radius:12px;height:40px;overflow:hidden;background-color:transparent}._googlePay_1a960_1 iframe{width:calc(100% + 12px)!important;height:44px!important;border:none;display:block;transform:translateY(-2px);margin:0 -6px}._hidden_1a960_17{display:none}._applePay_2b2iv_1{border-radius:12px;height:40px;overflow:hidden;background-color:transparent}._applePay_2b2iv_1 iframe{width:calc(100% + 12px)!important;height:44px!important;border:none;display:block;transform:translateY(-2px);margin:0 -6px}._hidden_2b2iv_17{display:none}._button_qsmkn_1{transition-property:transform,color,background,background-color,border-color,text-decoration-color,fill,stroke,opacity;transition-timing-function:ease;transition-duration:.25s;position:relative;z-index:0;box-sizing:border-box;display:inline-flex;height:2.5rem;width:100%;min-width:5rem;transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;justify-content:center;gap:.5rem;overflow:hidden;white-space:nowrap;border-radius:.75rem;--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1));padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto;outline:2px solid transparent;outline-offset:2px}@media (prefers-reduced-motion: reduce){._button_qsmkn_1{transition-property:none}}._button_qsmkn_1>svg{max-width:2rem}._primary_qsmkn_11{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}._success_qsmkn_15{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}._loading_qsmkn_19,._button_qsmkn_1:hover{opacity:.7}._press_qsmkn_24{transform:scale(.95)}._card_ji6om_1{display:grid;gap:.75rem;padding-top:1rem}._title_ji6om_5{font-size:.875rem;line-height:1.25rem;font-weight:600}._error_ji6om_9{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_ji6om_13{display:flex;width:100%;justify-content:space-between}._label_ji6om_13 span{text-wrap:nowrap;text-overflow:ellipsis;overflow:hidden}._cardDataContainer_ji6om_23{display:grid;grid-column-gap:5px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,auto))}._iconContainer_ji6om_30{margin:0 1px}._payButton_ji6om_34{display:flex;align-items:center;justify-content:center}._spinner_ji6om_38{width:24px;height:24px}._wrapper_1n2ol_1{position:relative}._inputContainer_1n2ol_5{background-color:transparent;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding-left:.75rem;padding-right:.75rem}._inputContainer_1n2ol_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1n2ol_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1n2ol_5{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){._inputContainer_1n2ol_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1n2ol_10,._inputContainer_1n2ol_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}._input_1n2ol_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1n2ol_20{display:flex}._errorInput_1n2ol_24{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1n2ol_24:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1n2ol_24:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_1n2ol_24{margin-top:.25rem;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_1n2ol_32{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1n2ol_36{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1n2ol_40{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1n2ol_44{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._cvcIcon_1yx89_1{width:100%;height:100%}._iconContainer_29xfy_1{margin:0 2px}._container_1ari8_1{display:flex;width:100%;flex-grow:1;flex-direction:row;align-items:center;justify-content:flex-start;-moz-column-gap:.25rem;column-gap:.25rem;border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(254 231 239 / var(--tw-bg-opacity, 1));padding:.75rem 1rem}._container_1ari8_1:is(._dark_1ari8_1 *){background-color:#fee7ef80;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}._iconContainer_1ari8_5{width:16px;height:16px}._icon_1ari8_5{width:100%;height:100%}._title_1ari8_15{padding-left:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:300}._svg_1kkac_1{height:100%;width:100%}@keyframes _spin_1kkac_1{to{transform:rotate(360deg)}}._svg_1kkac_1{animation:_spin_1kkac_1 1s linear infinite;fill:#9ca3af;--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}._svg_1kkac_1:is(._dark_1kkac_1 *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._sr_1kkac_5{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}._container_a64yo_1{position:relative;height:auto;min-height:40px;width:100%;max-width:640px}._backBtn_a64yo_5{cursor:pointer}._cardBtn_a64yo_9{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}._btnContainer_a64yo_13{display:grid;gap:.5rem}._spinner_a64yo_17{height:40px;width:40px}._spinnerContainer_a64yo_21{position:absolute;z-index:50;display:flex;height:auto;width:100%;align-items:center;justify-content:center;border-radius:.375rem}._paypalBtn_2m8yd_1{overflow:hidden;border-radius:12px;height:40px}._container_ipway_1{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center}._icon_ipway_5{position:absolute;top:50%;left:50%;width:1.5rem;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));fill:#16a34a}._iconContainer_ipway_9{position:relative;display:grid;height:2.25rem;width:2.25rem;flex:none;place-items:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(232 250 240 / var(--tw-bg-opacity, 1))}._iconContainer_ipway_9:is(._dark_ipway_1 *){--tw-bg-opacity: 1;background-color:rgb(209 244 224 / var(--tw-bg-opacity, 1))}._title_ipway_13{margin-top:.5rem;font-weight:300}
1
+ ._googlePay_1a960_1{border-radius:12px;height:40px;overflow:hidden;background-color:transparent}._googlePay_1a960_1 iframe{width:calc(100% + 12px)!important;height:44px!important;border:none;display:block;transform:translateY(-2px);margin:0 -6px}._hidden_1a960_17{display:none}._applePay_2b2iv_1{border-radius:12px;height:40px;overflow:hidden;background-color:transparent}._applePay_2b2iv_1 iframe{width:calc(100% + 12px)!important;height:44px!important;border:none;display:block;transform:translateY(-2px);margin:0 -6px}._hidden_2b2iv_17{display:none}._button_qsmkn_1{transition-property:transform,color,background,background-color,border-color,text-decoration-color,fill,stroke,opacity;transition-timing-function:ease;transition-duration:.25s;position:relative;z-index:0;box-sizing:border-box;display:inline-flex;height:2.5rem;width:100%;min-width:5rem;transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;justify-content:center;gap:.5rem;overflow:hidden;white-space:nowrap;border-radius:.75rem;--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1));padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto;outline:2px solid transparent;outline-offset:2px}@media (prefers-reduced-motion: reduce){._button_qsmkn_1{transition-property:none}}._button_qsmkn_1>svg{max-width:2rem}._primary_qsmkn_11{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}._success_qsmkn_15{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}._loading_qsmkn_19,._button_qsmkn_1:hover{opacity:.7}._press_qsmkn_24{transform:scale(.95)}._card_ji6om_1{display:grid;gap:.75rem;padding-top:1rem}._title_ji6om_5{font-size:.875rem;line-height:1.25rem;font-weight:600}._error_ji6om_9{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_ji6om_13{display:flex;width:100%;justify-content:space-between}._label_ji6om_13 span{text-wrap:nowrap;text-overflow:ellipsis;overflow:hidden}._cardDataContainer_ji6om_23{display:grid;grid-column-gap:5px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,auto))}._iconContainer_ji6om_30{margin:0 1px}._payButton_ji6om_34{display:flex;align-items:center;justify-content:center}._spinner_ji6om_38{width:24px;height:24px}._wrapper_1n2ol_1{position:relative}._inputContainer_1n2ol_5{background-color:transparent;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding-left:.75rem;padding-right:.75rem}._inputContainer_1n2ol_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1n2ol_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1n2ol_5{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){._inputContainer_1n2ol_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1n2ol_10,._inputContainer_1n2ol_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}._input_1n2ol_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1n2ol_20{display:flex}._errorInput_1n2ol_24{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1n2ol_24:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1n2ol_24:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_1n2ol_24{margin-top:.25rem;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_1n2ol_32{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1n2ol_36{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1n2ol_40{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1n2ol_44{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._cvcIcon_1yx89_1{width:100%;height:100%}._iconContainer_29xfy_1{margin:0 2px}._container_1yamy_1{display:flex;width:100%;flex-grow:1;flex-direction:row;align-items:center;justify-content:flex-start;-moz-column-gap:.25rem;column-gap:.25rem;border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(254 231 239 / var(--tw-bg-opacity, 1));padding:.75rem 1rem}._container_1yamy_1:is(._dark_1yamy_1 *){background-color:#fee7ef80;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}._iconContainer_1yamy_5{width:16px;height:16px}._icon_1yamy_5{width:100%;height:100%}._title_1yamy_15{padding-left:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:300;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}._title_1yamy_15:is(._dark_1yamy_1 *){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}._svg_1kkac_1{height:100%;width:100%}@keyframes _spin_1kkac_1{to{transform:rotate(360deg)}}._svg_1kkac_1{animation:_spin_1kkac_1 1s linear infinite;fill:#9ca3af;--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}._svg_1kkac_1:is(._dark_1kkac_1 *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._sr_1kkac_5{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}._container_a64yo_1{position:relative;height:auto;min-height:40px;width:100%;max-width:640px}._backBtn_a64yo_5{cursor:pointer}._cardBtn_a64yo_9{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}._btnContainer_a64yo_13{display:grid;gap:.5rem}._spinner_a64yo_17{height:40px;width:40px}._spinnerContainer_a64yo_21{position:absolute;z-index:50;display:flex;height:auto;width:100%;align-items:center;justify-content:center;border-radius:.375rem}._paypalBtn_2m8yd_1{overflow:hidden;border-radius:12px;height:40px}._container_ipway_1{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center}._icon_ipway_5{position:absolute;top:50%;left:50%;width:1.5rem;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));fill:#16a34a}._iconContainer_ipway_9{position:relative;display:grid;height:2.25rem;width:2.25rem;flex:none;place-items:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(232 250 240 / var(--tw-bg-opacity, 1))}._iconContainer_ipway_9:is(._dark_ipway_1 *){--tw-bg-opacity: 1;background-color:rgb(209 244 224 / var(--tw-bg-opacity, 1))}._title_ipway_13{margin-top:.5rem;font-weight:300}
package/dist/index.es.js CHANGED
@@ -8402,7 +8402,7 @@ const Mr = [
8402
8402
  endContent: x ? /* @__PURE__ */ h.jsx(P1, {}) : /* @__PURE__ */ h.jsx(N1, { cardTypes: l, supportedCardTypes: i || [] })
8403
8403
  }
8404
8404
  );
8405
- }, B1 = "_container_1ari8_1", _1 = "_iconContainer_1ari8_5", F1 = "_icon_1ari8_5", q1 = "_title_1ari8_15", _t = {
8405
+ }, B1 = "_container_1yamy_1", _1 = "_iconContainer_1yamy_5", F1 = "_icon_1yamy_5", q1 = "_title_1yamy_15", _t = {
8406
8406
  container: B1,
8407
8407
  iconContainer: _1,
8408
8408
  icon: F1,
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(oe,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],f):(oe=typeof globalThis<"u"?globalThis:oe||self,f(oe["Able SDK"]={},oe.React))})(this,function(oe,f){"use strict";var Ar=document.createElement("style");Ar.textContent=`._googlePay_1a960_1{border-radius:12px;height:40px;overflow:hidden;background-color:transparent}._googlePay_1a960_1 iframe{width:calc(100% + 12px)!important;height:44px!important;border:none;display:block;transform:translateY(-2px);margin:0 -6px}._hidden_1a960_17{display:none}._applePay_2b2iv_1{border-radius:12px;height:40px;overflow:hidden;background-color:transparent}._applePay_2b2iv_1 iframe{width:calc(100% + 12px)!important;height:44px!important;border:none;display:block;transform:translateY(-2px);margin:0 -6px}._hidden_2b2iv_17{display:none}._button_qsmkn_1{transition-property:transform,color,background,background-color,border-color,text-decoration-color,fill,stroke,opacity;transition-timing-function:ease;transition-duration:.25s;position:relative;z-index:0;box-sizing:border-box;display:inline-flex;height:2.5rem;width:100%;min-width:5rem;transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;justify-content:center;gap:.5rem;overflow:hidden;white-space:nowrap;border-radius:.75rem;--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1));padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto;outline:2px solid transparent;outline-offset:2px}@media (prefers-reduced-motion: reduce){._button_qsmkn_1{transition-property:none}}._button_qsmkn_1>svg{max-width:2rem}._primary_qsmkn_11{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}._success_qsmkn_15{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}._loading_qsmkn_19,._button_qsmkn_1:hover{opacity:.7}._press_qsmkn_24{transform:scale(.95)}._card_ji6om_1{display:grid;gap:.75rem;padding-top:1rem}._title_ji6om_5{font-size:.875rem;line-height:1.25rem;font-weight:600}._error_ji6om_9{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_ji6om_13{display:flex;width:100%;justify-content:space-between}._label_ji6om_13 span{text-wrap:nowrap;text-overflow:ellipsis;overflow:hidden}._cardDataContainer_ji6om_23{display:grid;grid-column-gap:5px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,auto))}._iconContainer_ji6om_30{margin:0 1px}._payButton_ji6om_34{display:flex;align-items:center;justify-content:center}._spinner_ji6om_38{width:24px;height:24px}._wrapper_1n2ol_1{position:relative}._inputContainer_1n2ol_5{background-color:transparent;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding-left:.75rem;padding-right:.75rem}._inputContainer_1n2ol_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1n2ol_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1n2ol_5{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){._inputContainer_1n2ol_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1n2ol_10,._inputContainer_1n2ol_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}._input_1n2ol_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1n2ol_20{display:flex}._errorInput_1n2ol_24{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1n2ol_24:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1n2ol_24:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_1n2ol_24{margin-top:.25rem;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_1n2ol_32{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1n2ol_36{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1n2ol_40{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1n2ol_44{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._cvcIcon_1yx89_1{width:100%;height:100%}._iconContainer_29xfy_1{margin:0 2px}._container_1ari8_1{display:flex;width:100%;flex-grow:1;flex-direction:row;align-items:center;justify-content:flex-start;-moz-column-gap:.25rem;column-gap:.25rem;border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(254 231 239 / var(--tw-bg-opacity, 1));padding:.75rem 1rem}._container_1ari8_1:is(._dark_1ari8_1 *){background-color:#fee7ef80;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}._iconContainer_1ari8_5{width:16px;height:16px}._icon_1ari8_5{width:100%;height:100%}._title_1ari8_15{padding-left:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:300}._svg_1kkac_1{height:100%;width:100%}@keyframes _spin_1kkac_1{to{transform:rotate(360deg)}}._svg_1kkac_1{animation:_spin_1kkac_1 1s linear infinite;fill:#9ca3af;--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}._svg_1kkac_1:is(._dark_1kkac_1 *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._sr_1kkac_5{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}._container_a64yo_1{position:relative;height:auto;min-height:40px;width:100%;max-width:640px}._backBtn_a64yo_5{cursor:pointer}._cardBtn_a64yo_9{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}._btnContainer_a64yo_13{display:grid;gap:.5rem}._spinner_a64yo_17{height:40px;width:40px}._spinnerContainer_a64yo_21{position:absolute;z-index:50;display:flex;height:auto;width:100%;align-items:center;justify-content:center;border-radius:.375rem}._paypalBtn_2m8yd_1{overflow:hidden;border-radius:12px;height:40px}._container_ipway_1{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center}._icon_ipway_5{position:absolute;top:50%;left:50%;width:1.5rem;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));fill:#16a34a}._iconContainer_ipway_9{position:relative;display:grid;height:2.25rem;width:2.25rem;flex:none;place-items:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(232 250 240 / var(--tw-bg-opacity, 1))}._iconContainer_ipway_9:is(._dark_ipway_1 *){--tw-bg-opacity: 1;background-color:rgb(209 244 224 / var(--tw-bg-opacity, 1))}._title_ipway_13{margin-top:.5rem;font-weight:300}
1
+ (function(oe,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],f):(oe=typeof globalThis<"u"?globalThis:oe||self,f(oe["Able SDK"]={},oe.React))})(this,function(oe,f){"use strict";var Ar=document.createElement("style");Ar.textContent=`._googlePay_1a960_1{border-radius:12px;height:40px;overflow:hidden;background-color:transparent}._googlePay_1a960_1 iframe{width:calc(100% + 12px)!important;height:44px!important;border:none;display:block;transform:translateY(-2px);margin:0 -6px}._hidden_1a960_17{display:none}._applePay_2b2iv_1{border-radius:12px;height:40px;overflow:hidden;background-color:transparent}._applePay_2b2iv_1 iframe{width:calc(100% + 12px)!important;height:44px!important;border:none;display:block;transform:translateY(-2px);margin:0 -6px}._hidden_2b2iv_17{display:none}._button_qsmkn_1{transition-property:transform,color,background,background-color,border-color,text-decoration-color,fill,stroke,opacity;transition-timing-function:ease;transition-duration:.25s;position:relative;z-index:0;box-sizing:border-box;display:inline-flex;height:2.5rem;width:100%;min-width:5rem;transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;justify-content:center;gap:.5rem;overflow:hidden;white-space:nowrap;border-radius:.75rem;--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1));padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto;outline:2px solid transparent;outline-offset:2px}@media (prefers-reduced-motion: reduce){._button_qsmkn_1{transition-property:none}}._button_qsmkn_1>svg{max-width:2rem}._primary_qsmkn_11{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}._success_qsmkn_15{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}._loading_qsmkn_19,._button_qsmkn_1:hover{opacity:.7}._press_qsmkn_24{transform:scale(.95)}._card_ji6om_1{display:grid;gap:.75rem;padding-top:1rem}._title_ji6om_5{font-size:.875rem;line-height:1.25rem;font-weight:600}._error_ji6om_9{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_ji6om_13{display:flex;width:100%;justify-content:space-between}._label_ji6om_13 span{text-wrap:nowrap;text-overflow:ellipsis;overflow:hidden}._cardDataContainer_ji6om_23{display:grid;grid-column-gap:5px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,auto))}._iconContainer_ji6om_30{margin:0 1px}._payButton_ji6om_34{display:flex;align-items:center;justify-content:center}._spinner_ji6om_38{width:24px;height:24px}._wrapper_1n2ol_1{position:relative}._inputContainer_1n2ol_5{background-color:transparent;display:flex;height:40px;width:100%;cursor:text;align-items:center;justify-content:space-between;border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding-left:.75rem;padding-right:.75rem}._inputContainer_1n2ol_5::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1n2ol_5::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}._inputContainer_1n2ol_5{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media (min-width: 640px){._inputContainer_1n2ol_5{font-size:.875rem;line-height:1.25rem}}._inputFocus_1n2ol_10,._inputContainer_1n2ol_5:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}._input_1n2ol_5{background-color:transparent;display:block;height:100%;width:100%;border-style:none;font-size:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._endContent_1n2ol_20{display:flex}._errorInput_1n2ol_24{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._errorInput_1n2ol_24:hover{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._errorInput_1n2ol_24:focus{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1));--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1))}._error_1n2ol_24{margin-top:.25rem;padding-left:.25rem;font-size:.75rem;line-height:1rem;font-weight:400;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._label_1n2ol_32{margin-bottom:2px;display:flex;align-items:flex-end;justify-content:space-between;padding-left:1px;padding-right:.5rem;font-size:.75rem;line-height:1rem;font-weight:400}._labelError_1n2ol_36{font-size:.6875rem;--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}._disabled_1n2ol_40{border-style:none;--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}._disabledInput_1n2ol_44{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}._cvcIcon_1yx89_1{width:100%;height:100%}._iconContainer_29xfy_1{margin:0 2px}._container_1yamy_1{display:flex;width:100%;flex-grow:1;flex-direction:row;align-items:center;justify-content:flex-start;-moz-column-gap:.25rem;column-gap:.25rem;border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(254 231 239 / var(--tw-bg-opacity, 1));padding:.75rem 1rem}._container_1yamy_1:is(._dark_1yamy_1 *){background-color:#fee7ef80;--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}._iconContainer_1yamy_5{width:16px;height:16px}._icon_1yamy_5{width:100%;height:100%}._title_1yamy_15{padding-left:.25rem;font-size:.875rem;line-height:1.25rem;font-weight:300;--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}._title_1yamy_15:is(._dark_1yamy_1 *){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}._svg_1kkac_1{height:100%;width:100%}@keyframes _spin_1kkac_1{to{transform:rotate(360deg)}}._svg_1kkac_1{animation:_spin_1kkac_1 1s linear infinite;fill:#9ca3af;--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}._svg_1kkac_1:is(._dark_1kkac_1 *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}._sr_1kkac_5{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}._container_a64yo_1{position:relative;height:auto;min-height:40px;width:100%;max-width:640px}._backBtn_a64yo_5{cursor:pointer}._cardBtn_a64yo_9{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}._btnContainer_a64yo_13{display:grid;gap:.5rem}._spinner_a64yo_17{height:40px;width:40px}._spinnerContainer_a64yo_21{position:absolute;z-index:50;display:flex;height:auto;width:100%;align-items:center;justify-content:center;border-radius:.375rem}._paypalBtn_2m8yd_1{overflow:hidden;border-radius:12px;height:40px}._container_ipway_1{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:center}._icon_ipway_5{position:absolute;top:50%;left:50%;width:1.5rem;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));fill:#16a34a}._iconContainer_ipway_9{position:relative;display:grid;height:2.25rem;width:2.25rem;flex:none;place-items:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(232 250 240 / var(--tw-bg-opacity, 1))}._iconContainer_ipway_9:is(._dark_ipway_1 *){--tw-bg-opacity: 1;background-color:rgb(209 244 224 / var(--tw-bg-opacity, 1))}._title_ipway_13{margin-top:.5rem;font-weight:300}
2
2
  /*$vite$:1*/`,document.head.appendChild(Ar);function ao(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ye=ao(f);var wt={exports:{}},Ye={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
@@ -28,7 +28,7 @@ React keys must be passed directly to JSX without using spread:
28
28
  ${p}px !important;
29
29
  top: ${u}px !important;
30
30
  }
31
- `),()=>{document.head.contains(m)&&document.head.removeChild(m)}},[t]),h.jsx(Bc,{isPresent:t,childRef:i,sizeRef:s,children:ye.cloneElement(e,{ref:i})})}const Fc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:a,anchorX:o})=>{const l=ln(Kc),u=f.useId();let c=!0,d=f.useMemo(()=>(c=!1,{id:u,initial:t,isPresent:n,custom:i,onExitComplete:p=>{l.set(p,!0);for(const m of l.values())if(!m)return;r&&r()},register:p=>(l.set(p,!1),()=>l.delete(p))}),[n,l,r]);return s&&c&&(d={...d}),f.useMemo(()=>{l.forEach((p,m)=>l.set(m,!1))},[n]),ye.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),a==="popLayout"&&(e=h.jsx(qc,{isPresent:n,anchorX:o,children:e})),h.jsx(At.Provider,{value:d,children:e})};function Kc(){return new Map}function ls(e=!0){const t=f.useContext(At);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=f.useId();f.useEffect(()=>{if(e)return i(s)},[e]);const a=f.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,a]:[!0]}const Dt=e=>e.key||"";function cs(e){const t=[];return f.Children.forEach(e,n=>{f.isValidElement(n)&&t.push(n)}),t}const us=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:a=!1,anchorX:o="left"})=>{const[l,u]=ls(a),c=f.useMemo(()=>cs(e),[e]),d=a&&!l?[]:c.map(Dt),p=f.useRef(!0),m=f.useRef(c),g=ln(()=>new Map),[y,b]=f.useState(c),[v,T]=f.useState(c);Hr(()=>{p.current=!1,m.current=c;for(let w=0;w<v.length;w++){const k=Dt(v[w]);d.includes(k)?g.delete(k):g.get(k)!==!0&&g.set(k,!1)}},[v,d.length,d.join("-")]);const C=[];if(c!==y){let w=[...c];for(let k=0;k<v.length;k++){const E=v[k],P=Dt(E);d.includes(P)||(w.splice(k,0,E),C.push(E))}return s==="wait"&&C.length&&(w=C),T(cs(w)),b(c),null}process.env.NODE_ENV!=="production"&&s==="wait"&&v.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:S}=f.useContext(on);return h.jsx(h.Fragment,{children:v.map(w=>{const k=Dt(w),E=a&&!l?!1:c===v||d.includes(k),P=()=>{if(g.has(k))g.set(k,!0);else return;let V=!0;g.forEach(M=>{M||(V=!1)}),V&&(S?.(),T(m.current),a&&u?.(),r&&r())};return h.jsx(Fc,{isPresent:E,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,onExitComplete:E?void 0:P,anchorX:o,children:w},k)})})},ds=f.createContext({strict:!1}),hs={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"]},Ke={};for(const e in hs)Ke[e]={isEnabled:t=>hs[e].some(n=>!!t[n])};function zc(e){for(const t in e)Ke[t]={...Ke[t],...e[t]}}const Uc=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 Lt(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Uc.has(e)}let ps=e=>!Lt(e);function $c(e){e&&(ps=t=>t.startsWith("on")?!Lt(t):e(t))}try{$c(require("@emotion/is-prop-valid").default)}catch{}function Gc(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(ps(i)||n===!0&&Lt(i)||!t&&!Lt(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Wc(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&fn(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Nt=f.createContext({});function Ot(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ut(e){return typeof e=="string"||Array.isArray(e)}const Zn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xn=["initial",...Zn];function Bt(e){return Ot(e.animate)||Xn.some(t=>ut(e[t]))}function fs(e){return!!(Bt(e)||e.variants)}function Yc(e,t){if(Bt(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ut(n)?n:void 0,animate:ut(r)?r:void 0}}return e.inherit!==!1?t:{}}function Hc(e){const{initial:t,animate:n}=Yc(e,f.useContext(Nt));return f.useMemo(()=>({initial:t,animate:n}),[ms(t),ms(n)])}function ms(e){return Array.isArray(e)?e.join(" "):e}const Zc=Symbol.for("motionComponentSymbol");function ze(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Xc(e,t,n){return f.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ze(n)&&(n.current=r))},[t])}const Jn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),gs="data-"+Jn("framerAppearId"),ys=f.createContext({});function Jc(e,t,n,r,i){const{visualElement:s}=f.useContext(Nt),a=f.useContext(ds),o=f.useContext(At),l=f.useContext(Hn).reducedMotion,u=f.useRef(null);r=r||a.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=f.useContext(ys);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&Qc(u.current,n,i,d);const p=f.useRef(!1);f.useInsertionEffect(()=>{c&&p.current&&c.update(n,o)});const m=n[gs],g=f.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Hr(()=>{c&&(p.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),Gn.render(c.render),g.current&&c.animationState&&c.animationState.animateChanges())}),f.useEffect(()=>{c&&(!g.current&&c.animationState&&c.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),g.current=!1))}),c}function Qc(e,t,n,r){const{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:vs(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&ze(o),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function vs(e){if(e)return e.options.allowProjection!==!1?e.projection:vs(e.parent)}function eu({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&zc(e);function s(o,l){let u;const c={...f.useContext(Hn),...o,layoutId:tu(o)},{isStatic:d}=c,p=Hc(o),m=r(o,d);if(!d&&cn){nu(c,e);const g=ru(c);u=g.MeasureLayout,p.visualElement=Jc(i,m,c,t,g.ProjectionNode)}return h.jsxs(Nt.Provider,{value:p,children:[u&&p.visualElement?h.jsx(u,{visualElement:p.visualElement,...c}):null,n(i,o,Xc(m,p.visualElement,l),m,d,p.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const a=f.forwardRef(s);return a[Zc]=i,a}function tu({layoutId:e}){const t=f.useContext(on).id;return t&&e!==void 0?t+"-"+e:e}function nu(e,t){const n=f.useContext(ds).strict;if(process.env.NODE_ENV!=="production"&&t&&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.";e.ignoreStrict?De(!1,r):fe(!1,r)}}function ru(e){const{drag:t,layout:n}=Ke;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const dt={};function iu(e){for(const t in e)dt[t]=e[t],vn(t)&&(dt[t].isCSSVariable=!0)}function bs(e,{layout:t,layoutId:n}){return qe.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dt[e]||e==="opacity")}const su={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},au=Be.length;function ou(e,t,n){let r="",i=!0;for(let s=0;s<au;s++){const a=Be[s],o=e[a];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(a.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const u=es(o,$n[a]);if(!l){i=!1;const c=su[a]||a;r+=`${c}(${u}) `}n&&(t[a]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Qn(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let a=!1,o=!1;for(const l in t){const u=t[l];if(qe.has(l)){a=!0;continue}else if(vn(l)){i[l]=u;continue}else{const c=es(u,$n[l]);l.startsWith("origin")?(o=!0,s[l]=c):r[l]=c}}if(t.transform||(a||n?r.transform=ou(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${l} ${u} ${c}`}}const er=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function xs(e,t,n){for(const r in t)!G(t[r])&&!bs(r,n)&&(e[r]=t[r])}function lu({transformTemplate:e},t){return f.useMemo(()=>{const n=er();return Qn(n,t,e),Object.assign({},n.vars,n.style)},[t])}function cu(e,t){const n=e.style||{},r={};return xs(r,n,e),Object.assign(r,lu(e,t)),r}function uu(e,t){const n={},r=cu(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.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=r,n}const du={offset:"stroke-dashoffset",array:"stroke-dasharray"},hu={offset:"strokeDashoffset",array:"strokeDasharray"};function pu(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?du:hu;e[s.offset]=A.transform(-r);const a=A.transform(t),o=A.transform(n);e[s.array]=`${a} ${o}`}function Cs(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...o},l,u,c){if(Qn(e,o,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&pu(d,i,s,a,!1)}const ws=()=>({...er(),attrs:{}}),Ts=e=>typeof e=="string"&&e.toLowerCase()==="svg";function fu(e,t,n,r){const i=f.useMemo(()=>{const s=ws();return Cs(s,t,Ts(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};xs(s,e.style,e),i.style={...s,...i.style}}return i}const mu=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function tr(e){return typeof e!="string"||e.includes("-")?!1:!!(mu.indexOf(e)>-1||/[A-Z]/u.test(e))}function gu(e=!1){return(n,r,i,{latestValues:s},a)=>{const l=(tr(n)?fu:uu)(r,s,a,n),u=Gc(r,typeof n=="string",e),c=n!==f.Fragment?{...u,...l,ref:i}:{},{children:d}=r,p=f.useMemo(()=>G(d)?d.get():d,[d]);return f.createElement(n,{...c,children:p})}}function ks(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function nr(e,t,n,r){if(typeof t=="function"){const[i,s]=ks(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=ks(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function qt(e){return G(e)?e.get():e}function yu({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:vu(n,r,i,e),renderState:t()}}const Ss=e=>(t,n)=>{const r=f.useContext(Nt),i=f.useContext(At),s=()=>yu(e,t,r,i);return n?s():ln(s)};function vu(e,t,n,r){const i={},s=r(e,{});for(const p in s)i[p]=qt(s[p]);let{initial:a,animate:o}=e;const l=Bt(e),u=fs(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const d=c?o:a;if(d&&typeof d!="boolean"&&!Ot(d)){const p=Array.isArray(d)?d:[d];for(let m=0;m<p.length;m++){const g=nr(e,p[m]);if(g){const{transitionEnd:y,transition:b,...v}=g;for(const T in v){let C=v[T];if(Array.isArray(C)){const S=c?C.length-1:0;C=C[S]}C!==null&&(i[T]=C)}for(const T in y)i[T]=y[T]}}}return i}function rr(e,t,n){const{style:r}=e,i={};for(const s in r)(G(r[s])||t.style&&G(t.style[s])||bs(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}const bu={useVisualState:Ss({scrapeMotionValuesFromProps:rr,createRenderState:er})};function Ps(e,t,n){const r=rr(e,t,n);for(const i in e)if(G(e[i])||G(t[i])){const s=Be.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const xu={useVisualState:Ss({scrapeMotionValuesFromProps:Ps,createRenderState:ws})};function Cu(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...tr(r)?xu:bu,preloadedFeatures:e,useRender:gu(i),createVisualElement:t,Component:r};return eu(a)}}function ht(e,t,n){const r=e.getProps();return nr(r,t,n!==void 0?n:r.custom,e)}const ir=e=>Array.isArray(e);function wu(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Fe(n))}function Tu(e){return ir(e)?e[e.length-1]||0:e}function ku(e,t){const n=ht(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const o=Tu(s[a]);wu(e,a,o)}}function Su(e){return!!(G(e)&&e.add)}function sr(e,t){const n=e.getValue("willChange");if(Su(n))return n.add(t);if(!n&&me.WillChange){const r=new me.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function As(e){return e.props[gs]}const Pu=e=>e!==null;function Au(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Pu),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const Eu={type:"spring",stiffness:500,damping:25,restSpeed:10},ju=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Vu={type:"keyframes",duration:.8},Ru={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_u=(e,{keyframes:t})=>t.length>2?Vu:qe.has(e)?e.startsWith("scale")?ju(t[1]):Eu:Ru;function Mu({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const ar=(e,t,n,r={},i,s)=>a=>{const o=zn(r,e)||{},l=o.delay||r.delay||0;let{elapsed:u=0}=r;u=u-le(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:p=>{t.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};Mu(o)||Object.assign(c,_u(e,c)),c.duration&&(c.duration=le(c.duration)),c.repeatDelay&&(c.repeatDelay=le(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),(me.instantAnimations||me.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!s&&t.get()!==void 0){const p=Au(c.keyframes,o);if(p!==void 0){D.update(()=>{c.onUpdate(p),c.onComplete()});return}}return o.isSync?new Mn(c):new fc(c)};function Iu({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Es(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...o}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in o){const d=e.getValue(c,e.latestValues[c]??null),p=o[c];if(p===void 0||u&&Iu(u,c))continue;const m={delay:n,...zn(s||{},c)},g=d.get();if(g!==void 0&&!d.isAnimating&&!Array.isArray(p)&&p===g&&!m.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=As(e);if(v){const T=window.MotionHandoffAnimation(v,c,D);T!==null&&(m.startTime=T,y=!0)}}sr(e,c),d.start(ar(c,d,p,e.shouldReduceMotion&&Gi.has(c)?{type:!1}:m,e,y));const b=d.animation;b&&l.push(b)}return a&&Promise.all(l).then(()=>{D.update(()=>{a&&ku(e,a)})}),l}function or(e,t,n={}){const r=ht(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Es(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=i;return Du(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[l,u]=o==="beforeChildren"?[s,a]:[a,s];return l().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function Du(e,t,n=0,r=0,i=1,s){const a=[],o=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>o-u*r;return Array.from(e.variantChildren).sort(Lu).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(or(u,t,{...s,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function Lu(e,t){return e.sortNodePosition(t)}function Nu(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>or(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=or(e,t,n);else{const i=typeof t=="function"?ht(e,t,n.custom):t;r=Promise.all(Es(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function js(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Ou=Xn.length;function Vs(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Vs(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Ou;n++){const r=Xn[n],i=e.props[r];(ut(i)||i===!1)&&(t[r]=i)}return t}const Bu=[...Zn].reverse(),qu=Zn.length;function Fu(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Nu(e,n,r)))}function Ku(e){let t=Fu(e),n=Rs(),r=!0;const i=l=>(u,c)=>{const d=ht(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:p,transitionEnd:m,...g}=d;u={...u,...g,...m}}return u};function s(l){t=l(e)}function a(l){const{props:u}=e,c=Vs(e.parent)||{},d=[],p=new Set;let m={},g=1/0;for(let b=0;b<qu;b++){const v=Bu[b],T=n[v],C=u[v]!==void 0?u[v]:c[v],S=ut(C),w=v===l?T.isActive:null;w===!1&&(g=b);let k=C===c[v]&&C!==u[v]&&S;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),T.protectedKeys={...m},!T.isActive&&w===null||!C&&!T.prevProp||Ot(C)||typeof C=="boolean")continue;const E=zu(T.prevProp,C);let P=E||v===l&&T.isActive&&!k&&S||b>g&&S,V=!1;const M=Array.isArray(C)?C:[C];let q=M.reduce(i(v),{});w===!1&&(q={});const{prevResolvedValues:te={}}=T,Y={...te,...q},U=_=>{P=!0,p.has(_)&&(V=!0,p.delete(_)),T.needsAnimating[_]=!0;const I=e.getValue(_);I&&(I.liveStyle=!1)};for(const _ in Y){const I=q[_],J=te[_];if(m.hasOwnProperty(_))continue;let x=!1;ir(I)&&ir(J)?x=!js(I,J):x=I!==J,x?I!=null?U(_):p.add(_):I!==void 0&&p.has(_)?U(_):T.protectedKeys[_]=!0}T.prevProp=C,T.prevResolvedValues=q,T.isActive&&(m={...m,...q}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(k&&E)||V)&&d.push(...M.map(_=>({animation:_,options:{type:v}})))}if(p.size){const b={};if(typeof u.initial!="boolean"){const v=ht(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(b.transition=v.transition)}p.forEach(v=>{const T=e.getBaseTarget(v),C=e.getValue(v);C&&(C.liveStyle=!0),b[v]=T??null}),d.push({animation:b})}let y=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function o(l,u){if(n[l].isActive===u)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,u)),n[l].isActive=u;const c=a(l);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:a,setActive:o,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Rs(),r=!0}}}function zu(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!js(t,e):!1}function je(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Rs(){return{animate:je(!0),whileInView:je(),whileHover:je(),whileTap:je(),whileDrag:je(),whileFocus:je(),exit:je()}}class we{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Uu extends we{constructor(t){super(t),t.animationState||(t.animationState=Ku(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ot(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(){this.node.animationState.reset(),this.unmountControls?.()}}let $u=0;class Gu extends we{constructor(){super(...arguments),this.id=$u++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.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 Wu={animation:{Feature:Uu},exit:{Feature:Gu}};function pt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ft(e){return{point:{x:e.pageX,y:e.pageY}}}const Yu=e=>t=>Wn(t)&&e(t,ft(t));function mt(e,t,n,r){return pt(e,t,Yu(n),r)}function _s({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Hu({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Zu(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const Ms=1e-4,Xu=1-Ms,Ju=1+Ms,Is=.01,Qu=0-Is,ed=0+Is;function X(e){return e.max-e.min}function td(e,t,n){return Math.abs(e-t)<=n}function Ds(e,t,n,r=.5){e.origin=r,e.originPoint=L(t.min,t.max,e.origin),e.scale=X(n)/X(t),e.translate=L(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Xu&&e.scale<=Ju||isNaN(e.scale))&&(e.scale=1),(e.translate>=Qu&&e.translate<=ed||isNaN(e.translate))&&(e.translate=0)}function gt(e,t,n,r){Ds(e.x,t.x,n.x,r?r.originX:void 0),Ds(e.y,t.y,n.y,r?r.originY:void 0)}function Ls(e,t,n){e.min=n.min+t.min,e.max=e.min+X(t)}function nd(e,t,n){Ls(e.x,t.x,n.x),Ls(e.y,t.y,n.y)}function Ns(e,t,n){e.min=t.min-n.min,e.max=e.min+X(t)}function yt(e,t,n){Ns(e.x,t.x,n.x),Ns(e.y,t.y,n.y)}const Os=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ue=()=>({x:Os(),y:Os()}),Bs=()=>({min:0,max:0}),B=()=>({x:Bs(),y:Bs()});function se(e){return[e("x"),e("y")]}function lr(e){return e===void 0||e===1}function cr({scale:e,scaleX:t,scaleY:n}){return!lr(e)||!lr(t)||!lr(n)}function Ve(e){return cr(e)||qs(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function qs(e){return Fs(e.x)||Fs(e.y)}function Fs(e){return e&&e!=="0%"}function Ft(e,t,n){const r=e-n,i=t*r;return n+i}function Ks(e,t,n,r,i){return i!==void 0&&(e=Ft(e,i,r)),Ft(e,n,r)+t}function ur(e,t=0,n=1,r,i){e.min=Ks(e.min,t,n,r,i),e.max=Ks(e.max,t,n,r,i)}function zs(e,{x:t,y:n}){ur(e.x,t.translate,t.scale,t.originPoint),ur(e.y,n.translate,n.scale,n.originPoint)}const Us=.999999999999,$s=1.0000000000001;function rd(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,a;for(let o=0;o<i;o++){s=n[o],a=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ge(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,zs(e,a)),r&&Ve(s.latestValues)&&Ge(e,s.latestValues))}t.x<$s&&t.x>Us&&(t.x=1),t.y<$s&&t.y>Us&&(t.y=1)}function $e(e,t){e.min=e.min+t,e.max=e.max+t}function Gs(e,t,n,r,i=.5){const s=L(e.min,e.max,i);ur(e,t,n,s,r)}function Ge(e,t){Gs(e.x,t.x,t.scaleX,t.scale,t.originX),Gs(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ws(e,t){return _s(Zu(e.getBoundingClientRect(),t))}function id(e,t,n){const r=Ws(e,n),{scroll:i}=t;return i&&($e(r.x,i.offset.x),$e(r.y,i.offset.y)),r}const Ys=({current:e})=>e?e.ownerDocument.defaultView:null,Hs=(e,t)=>Math.abs(e-t);function sd(e,t){const n=Hs(e.x,t.x),r=Hs(e.y,t.y);return Math.sqrt(n**2+r**2)}class Zs{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=hr(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,m=sd(d.offset,{x:0,y:0})>=3;if(!p&&!m)return;const{point:g}=d,{timestamp:y}=z;this.history.push({...g,timestamp:y});const{onStart:b,onMove:v}=this.handlers;p||(b&&b(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=dr(p,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=hr(d.type==="pointercancel"?this.lastMoveEventInfo:dr(p,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,b),g&&g(d,b)},!Wn(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=ft(t),o=dr(a,this.transformPagePoint),{point:l}=o,{timestamp:u}=z;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,hr(o,this.history)),this.removeListeners=nt(mt(this.contextWindow,"pointermove",this.handlePointerMove),mt(this.contextWindow,"pointerup",this.handlePointerUp),mt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),be(this.updatePoint)}}function dr(e,t){return t?{point:t(e.point)}:e}function Xs(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hr({point:e},t){return{point:e,delta:Xs(e,Js(t)),offset:Xs(e,ad(t)),velocity:od(t,.1)}}function ad(e){return e[0]}function Js(e){return e[e.length-1]}function od(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Js(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>le(t)));)n--;if(!r)return{x:0,y:0};const s=ue(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ld(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?L(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?L(n,e,r.max):Math.min(e,n)),e}function Qs(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 cd(e,{top:t,left:n,bottom:r,right:i}){return{x:Qs(e.x,n,i),y:Qs(e.y,t,r)}}function ea(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ud(e,t){return{x:ea(e.x,t.x),y:ea(e.y,t.y)}}function dd(e,t){let n=.5;const r=X(e),i=X(t);return i>r?n=rt(t.min,t.max-r,e.min):r>i&&(n=rt(e.min,e.max-i,t.min)),pe(0,1,n)}function hd(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 pr=.35;function pd(e=pr){return e===!1?e=0:e===!0&&(e=pr),{x:ta(e,"left","right"),y:ta(e,"top","bottom")}}function ta(e,t,n){return{min:na(e,t),max:na(e,n)}}function na(e,t){return typeof e=="number"?e:e[t]||0}const fd=new WeakMap;class md{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=B(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ft(c).point)},s=(c,d)=>{const{drag:p,dragPropagation:m,onDragStart:g}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Vc(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),se(b=>{let v=this.getAxisMotionValue(b).get()||0;if(de.test(v)){const{projection:T}=this.visualElement;if(T&&T.layout){const C=T.layout.layoutBox[b];C&&(v=X(C)*(parseFloat(v)/100))}}this.originPoint[b]=v}),g&&D.postRender(()=>g(c,d)),sr(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(c,d)=>{const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:g,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:b}=d;if(m&&this.currentDirection===null){this.currentDirection=gd(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,b),this.updateAxis("y",d.point,b),this.visualElement.render(),y&&y(c,d)},o=(c,d)=>this.stop(c,d),l=()=>se(c=>this.getAnimationState(c)==="paused"&&this.getAxisMotionValue(c).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Zs(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ys(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&D.postRender(()=>s(t,n))}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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Kt(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=ld(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&ze(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=cd(r.layoutBox,t):this.constraints=!1,this.elastic=pd(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&se(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=hd(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ze(t))return!1;const r=t.current;fe(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=id(r,i.root,this.visualElement.getTransformPagePoint());let a=ud(i.layout.layoutBox,s);if(n){const o=n(Hu(a));this.hasMutatedConstraints=!!o,o&&(a=_s(o))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=se(c=>{if(!Kt(c,n,this.currentDirection))return;let d=l&&l[c]||{};a&&(d={min:0,max:0});const p=i?200:1e6,m=i?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return sr(this.visualElement,t),r.start(ar(t,r,0,n,this.visualElement,!1))}stopAnimation(){se(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){se(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){se(n=>{const{drag:r}=this.getProps();if(!Kt(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:o}=i.layout.layoutBox[n];s.set(t[n]-L(a,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ze(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};se(a=>{const o=this.getAxisMotionValue(a);if(o&&this.constraints!==!1){const l=o.get();i[a]=dd({min:l,max:l},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),se(a=>{if(!Kt(a,t,null))return;const o=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];o.set(L(l,u,i[a]))})}addListeners(){if(!this.visualElement.current)return;fd.set(this.visualElement,this);const t=this.visualElement.current,n=mt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ze(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),D.read(r);const a=pt(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(se(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:a=pr,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:o}}}function Kt(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function gd(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class yd extends we{constructor(t){super(t),this.removeGroupControls=ie,this.removeListeners=ie,this.controls=new md(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ie}unmount(){this.removeGroupControls(),this.removeListeners()}}const ra=e=>(t,n)=>{e&&D.postRender(()=>e(t,n))};class vd extends we{constructor(){super(...arguments),this.removePointerDownListener=ie}onPointerDown(t){this.session=new Zs(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ys(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:ra(t),onStart:ra(n),onMove:r,onEnd:(s,a)=>{delete this.session,i&&D.postRender(()=>i(s,a))}}}mount(){this.removePointerDownListener=mt(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 zt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ia(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const vt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(A.test(e))e=parseFloat(e);else return e;const n=ia(e,t.target.x),r=ia(e,t.target.y);return`${n}% ${r}%`}},bd={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ce.parse(e);if(i.length>5)return r;const s=Ce.createTransformer(e),a=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=o,i[1+a]/=l;const u=L(o,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),s(i)}};class xd extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;iu(Cd),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),zt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||D.postRender(()=>{const o=a.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Gn.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sa(e){const[t,n]=ls(),r=f.useContext(on);return h.jsx(xd,{...e,layoutGroup:r,switchLayoutGroup:f.useContext(ys),isPresent:t,safeToRemove:n})}const Cd={borderRadius:{...vt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vt,borderTopRightRadius:vt,borderBottomLeftRadius:vt,borderBottomRightRadius:vt,boxShadow:bd};function wd(e,t,n){const r=G(e)?e:Fe(e);return r.start(ar("",r,t,n)),r.animation}const Td=(e,t)=>e.depth-t.depth;class kd{constructor(){this.children=[],this.isDirty=!1}add(t){un(this.children,t),this.isDirty=!0}remove(t){dn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Td),this.isDirty=!1,this.children.forEach(t)}}function Sd(e,t){const n=Q.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(be(r),e(s-t))};return D.setup(r,!0),()=>be(r)}const aa=["TopLeft","TopRight","BottomLeft","BottomRight"],Pd=aa.length,oa=e=>typeof e=="string"?parseFloat(e):e,la=e=>typeof e=="number"||A.test(e);function Ad(e,t,n,r,i,s){i?(e.opacity=L(0,n.opacity??1,Ed(r)),e.opacityExit=L(t.opacity??1,0,jd(r))):s&&(e.opacity=L(t.opacity??1,n.opacity??1,r));for(let a=0;a<Pd;a++){const o=`border${aa[a]}Radius`;let l=ca(t,o),u=ca(n,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||la(l)===la(u)?(e[o]=Math.max(L(oa(l),oa(u),r),0),(de.test(u)||de.test(l))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=L(t.rotate||0,n.rotate||0,r))}function ca(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Ed=ua(0,.5,oi),jd=ua(.5,.95,ie);function ua(e,t,n){return r=>r<e?0:r>t?1:n(rt(e,t,r))}function da(e,t){e.min=t.min,e.max=t.max}function ae(e,t){da(e.x,t.x),da(e.y,t.y)}function ha(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function pa(e,t,n,r,i){return e-=t,e=Ft(e,1/n,r),i!==void 0&&(e=Ft(e,1/i,r)),e}function Vd(e,t=0,n=1,r=.5,i,s=e,a=e){if(de.test(t)&&(t=parseFloat(t),t=L(a.min,a.max,t/100)-a.min),typeof t!="number")return;let o=L(s.min,s.max,r);e===s&&(o-=t),e.min=pa(e.min,t,n,o,i),e.max=pa(e.max,t,n,o,i)}function fa(e,t,[n,r,i],s,a){Vd(e,t[n],t[r],t[i],t.scale,s,a)}const Rd=["x","scaleX","originX"],_d=["y","scaleY","originY"];function ma(e,t,n,r){fa(e.x,t,Rd,n?n.x:void 0,r?r.x:void 0),fa(e.y,t,_d,n?n.y:void 0,r?r.y:void 0)}function ga(e){return e.translate===0&&e.scale===1}function ya(e){return ga(e.x)&&ga(e.y)}function va(e,t){return e.min===t.min&&e.max===t.max}function Md(e,t){return va(e.x,t.x)&&va(e.y,t.y)}function ba(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function xa(e,t){return ba(e.x,t.x)&&ba(e.y,t.y)}function Ca(e){return X(e.x)/X(e.y)}function wa(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Id{constructor(){this.members=[]}add(t){un(this.members,t),t.scheduleRender()}remove(t){if(dn(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(i=>t===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(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Dd(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,a=n?.z||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:p,skewX:m,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const fr=["","X","Y","Z"],Ld={visibility:"hidden"},Nd=1e3;let Od=0;function mr(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ta(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=As(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",D,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ta(r)}function ka({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},o=t?.()){this.id=Od++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,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(Fd),this.nodes.forEach(Gd),this.nodes.forEach(Wd),this.nodes.forEach(Kd)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new kd)}addEventListener(a,o){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new pn),this.eventHandlers.get(a).add(o)}notifyListeners(a,...o){const l=this.eventHandlers.get(a);l&&l.notify(...o)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=os(a)&&!Lc(a),this.instance=a;const{layoutId:o,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||o)&&(this.isLayoutDirty=!0),e){let c;const d=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=Sd(d,250),zt.hasAnimatedSinceResize&&(zt.hasAnimatedSinceResize=!1,this.nodes.forEach(Pa))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&u&&(o||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||Jd,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=u.getProps(),v=!this.targetLayout||!xa(this.targetLayout,m),T=!d&&p;if(this.options.layoutRoot||this.resumeFrom||T||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,T);const C={...zn(g,"layout"),onPlay:y,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else d||Pa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),be(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(Yd),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ta(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Sa);return}this.isUpdating||this.nodes.forEach(Ud),this.isUpdating=!1,this.nodes.forEach($d),this.nodes.forEach(Bd),this.nodes.forEach(qd),this.clearAllSnapshots();const o=Q.now();z.delta=pe(0,1e3/60,o-z.timestamp),z.timestamp=o,z.isProcessing=!0,yn.update.process(z),yn.preRender.process(z),yn.render.process(z),z.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Gn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zd),this.sharedNodes.forEach(Hd)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!X(this.snapshot.measuredBox.x)&&!X(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=B(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(o=!1),o&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!ya(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;a&&this.instance&&(o||Ve(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return a&&(l=this.removeTransform(l)),Qd(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return B();const o=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(e0))){const{scroll:u}=this.root;u&&($e(o.x,u.offset.x),$e(o.y,u.offset.y))}return o}removeElementScroll(a){const o=B();if(ae(o,a),this.scroll?.wasRoot)return o;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:d}=u;u!==this.root&&c&&d.layoutScroll&&(c.wasRoot&&ae(o,a),$e(o.x,c.offset.x),$e(o.y,c.offset.y))}return o}applyTransform(a,o=!1){const l=B();ae(l,a);for(let u=0;u<this.path.length;u++){const c=this.path[u];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ge(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Ve(c.latestValues)&&Ge(l,c.latestValues)}return Ve(this.latestValues)&&Ge(l,this.latestValues),l}removeTransform(a){const o=B();ae(o,a);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Ve(u.latestValues))continue;cr(u.latestValues)&&u.updateSnapshot();const c=B(),d=u.measurePageBox();ae(c,d),ma(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Ve(this.latestValues)&&ma(o,this.latestValues),o}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==z.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==o;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!(!this.layout||!(c||d))){if(this.resolvedRelativeTargetAt=z.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=B(),this.relativeTargetOrigin=B(),yt(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),ae(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=B(),this.targetWithTransforms=B()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),nd(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ae(this.target,this.layout.layoutBox),zs(this.target,this.targetDelta)):ae(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=B(),this.relativeTargetOrigin=B(),yt(this.relativeTargetOrigin,this.target,p.target),ae(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||cr(this.parent.latestValues)||qs(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const a=this.getLead(),o=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===z.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;ae(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,p=this.treeScale.y;rd(this.layoutCorrected,this.treeScale,this.path,o),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=B());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ha(this.prevProjectionDelta.x,this.projectionDelta.x),ha(this.prevProjectionDelta.y,this.projectionDelta.y)),gt(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==p||!wa(this.projectionDelta.x,this.prevProjectionDelta.x)||!wa(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ue(),this.projectionDelta=Ue(),this.projectionDeltaWithTransform=Ue()}setAnimationOrigin(a,o=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Ue();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const p=B(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,y=m!==g,b=this.getStack(),v=!b||b.members.length<=1,T=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(Xd));this.animationProgress=0;let C;this.mixTargetDelta=S=>{const w=S/1e3;Aa(d.x,a.x,w),Aa(d.y,a.y,w),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(yt(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Zd(this.relativeTarget,this.relativeTargetOrigin,p,w),C&&Md(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=B()),ae(C,this.relativeTarget)),y&&(this.animationValues=c,Ad(c,u,this.latestValues,w,T,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(!1),this.resumingFrom?.currentAnimation?.stop(!1),this.pendingAnimation&&(be(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{zt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Fe(0)),this.currentAnimation=wd(this.motionValue,[0,1e3],{...a,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),a.onUpdate&&a.onUpdate(o)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Nd),this.currentAnimation.stop(!1)),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:c}=a;if(!(!o||!l||!u)){if(this!==a&&this.layout&&u&&_a(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||B();const d=X(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const p=X(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}ae(o,l),Ge(o,c),gt(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(a,o){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Id),this.sharedNodes.get(a).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let o=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&mr("z",a,u,this.animationValues);for(let c=0;c<fr.length;c++)mr(`rotate${fr[c]}`,a,u,this.animationValues),mr(`skew${fr[c]}`,a,u,this.animationValues);a.render();for(const c in u)a.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);a.scheduleRender()}getProjectionStyles(a){if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ld;const o={visibility:""},l=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=qt(a?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none",o;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=qt(a?.pointerEvents)||""),this.hasProjected&&!Ve(this.latestValues)&&(m.transform=l?l({},""):"none",this.hasProjected=!1),m}const c=u.animationValues||u.latestValues;this.applyTransformsToTarget(),o.transform=Dd(this.projectionDeltaWithTransform,this.treeScale,c),l&&(o.transform=l(c,o.transform));const{x:d,y:p}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${p.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const m in dt){if(c[m]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:b}=dt[m],v=o.transform==="none"?c[m]:g(c[m],u);if(y){const T=y.length;for(let C=0;C<T;C++)o[y[C]]=v}else b?this.options.visualElement.renderState.vars[m]=v:o[m]=v}return this.options.layoutId&&(o.pointerEvents=u===this?qt(a?.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop(!1)),this.root.nodes.forEach(Sa),this.root.sharedNodes.clear()}}}function Bd(e){e.updateLayout()}function qd(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;i==="size"?se(c=>{const d=s?t.measuredBox[c]:t.layoutBox[c],p=X(d);d.min=n[c].min,d.max=d.min+p}):_a(i,t.layoutBox,n)&&se(c=>{const d=s?t.measuredBox[c]:t.layoutBox[c],p=X(n[c]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+p)});const a=Ue();gt(a,n,t.layoutBox);const o=Ue();s?gt(o,e.applyTransform(r,!0),t.measuredBox):gt(o,n,t.layoutBox);const l=!ya(a);let u=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:p}=c;if(d&&p){const m=B();yt(m,t.layoutBox,d.layoutBox);const g=B();yt(g,n,p.layoutBox),xa(m,g)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Fd(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 Kd(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zd(e){e.clearSnapshot()}function Sa(e){e.clearMeasurements()}function Ud(e){e.isLayoutDirty=!1}function $d(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Pa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Gd(e){e.resolveTargetDelta()}function Wd(e){e.calcProjection()}function Yd(e){e.resetSkewAndRotation()}function Hd(e){e.removeLeadSnapshot()}function Aa(e,t,n){e.translate=L(t.translate,0,n),e.scale=L(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ea(e,t,n,r){e.min=L(t.min,n.min,r),e.max=L(t.max,n.max,r)}function Zd(e,t,n,r){Ea(e.x,t.x,n.x,r),Ea(e.y,t.y,n.y,r)}function Xd(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Jd={duration:.45,ease:[.4,0,.1,1]},ja=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Va=ja("applewebkit/")&&!ja("chrome/")?Math.round:ie;function Ra(e){e.min=Va(e.min),e.max=Va(e.max)}function Qd(e){Ra(e.x),Ra(e.y)}function _a(e,t,n){return e==="position"||e==="preserve-aspect"&&!td(Ca(t),Ca(n),.2)}function e0(e){return e!==e.root&&e.scroll?.wasRoot}const t0=ka({attachResizeListener:(e,t)=>pt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gr={current:void 0},Ma=ka({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gr.current){const e=new t0({});e.mount(window),e.setOptions({layoutScroll:!0}),gr.current=e}return gr.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),n0={pan:{Feature:vd},drag:{Feature:yd,ProjectionNode:Ma,MeasureLayout:sa}};function Ia(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&D.postRender(()=>s(t,ft(t)))}class r0 extends we{mount(){const{current:t}=this.node;t&&(this.unmount=Rc(t,(n,r)=>(Ia(this.node,r,"Start"),i=>Ia(this.node,i,"End"))))}unmount(){}}class i0 extends we{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{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=nt(pt(this.node.current,"focus",()=>this.onFocus()),pt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Da(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&D.postRender(()=>s(t,ft(t)))}class s0 extends we{mount(){const{current:t}=this.node;t&&(this.unmount=Dc(t,(n,r)=>(Da(this.node,r,"Start"),(i,{success:s})=>Da(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const yr=new WeakMap,vr=new WeakMap,a0=e=>{const t=yr.get(e.target);t&&t(e)},o0=e=>{e.forEach(a0)};function l0({root:e,...t}){const n=e||document;vr.has(n)||vr.set(n,{});const r=vr.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(o0,{root:e,...t})),r[i]}function c0(e,t,n){const r=l0(t);return yr.set(e,n),r.observe(e),()=>{yr.delete(e),r.unobserve(e)}}const u0={some:0,all:1};class d0 extends we{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:u0[i]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=u?c:d;p&&p(l)};return c0(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(h0(t,n))&&this.startObserver()}unmount(){}}function h0({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const p0={inView:{Feature:d0},tap:{Feature:s0},focus:{Feature:i0},hover:{Feature:r0}},f0={layout:{ProjectionNode:Ma,MeasureLayout:sa}},br={current:null},La={current:!1};function m0(){if(La.current=!0,!!cn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>br.current=e.matches;e.addListener(t),t()}else br.current=!1}const g0=new WeakMap;function y0(e,t,n){for(const r in t){const i=t[r],s=n[r];if(G(i))e.addValue(r,i);else if(G(s))e.addValue(r,Fe(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Fe(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Na=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class v0{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Fn,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 p=Q.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,D.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=Bt(n),this.isVariantNode=fs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in d){const m=d[p];l[p]!==void 0&&G(m)&&m.set(l[p],!1)}}mount(t){this.current=t,g0.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((n,r)=>this.bindToMotionValue(r,n)),La.current||m0(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:br.current,process.env.NODE_ENV!=="production"&&fn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),be(this.notifyUpdate),be(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=qe.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&D.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),a&&a(),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 Ke){const n=Ke[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];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):B()}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 r=0;r<Na.length;r++){const i=Na[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=t[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=y0(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 r=this.values.get(t);n!==r&&(r&&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 r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Fe(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Zr(r)||Jr(r))?r=parseFloat(r):!Oc(r)&&Ce.test(n)&&(r=Ji(t,n)),this.setBaseTarget(t,G(r)?r.get():r)),G(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=nr(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!G(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new pn),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Oa extends v0{constructor(){super(...arguments),this.KeyframeResolver=Pc}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:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;G(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ba(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}function b0(e){return window.getComputedStyle(e)}class x0 extends Oa{constructor(){super(...arguments),this.type="html",this.renderInstance=Ba}readValueFromInstance(t,n){if(qe.has(n))return this.projection?.isProjecting?Ln(n):$l(t,n);{const r=b0(t),i=(vn(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ws(t,n)}build(t,n,r){Qn(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return rr(t,n,r)}}const qa=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 C0(e,t,n,r){Ba(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(qa.has(i)?i:Jn(i),t.attrs[i])}class w0 extends Oa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=B}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(qe.has(n)){const r=Xi(n);return r&&r.default||0}return n=qa.has(n)?n:Jn(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ps(t,n,r)}build(t,n,r){Cs(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){C0(t,n,r,i)}mount(t){this.isSVGTag=Ts(t.tagName),super.mount(t)}}const T0=(e,t)=>tr(e)?new w0(t):new x0(t,{allowProjection:e!==f.Fragment}),k0=Cu({...Wu,...p0,...n0,...f0},T0),bt=Wc(k0),Ut={initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{height:{duration:.2},opacity:{duration:.2}}},$t={initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{height:{duration:.2},opacity:{duration:.2}}},xr=({error:e,disabled:t,styles:n})=>h.jsx(us,{mode:"wait",children:e&&!t&&h.jsx(bt.div,{initial:Ut.initial,animate:Ut.animate,exit:Ut.exit,transition:Ut.transition,className:ve(re.error,n?.error?.className),style:n?.error?.styles,children:e})}),Cr=({label:e,error:t,disabled:n,styles:r,id:i})=>h.jsxs("label",{htmlFor:i,className:ve(re.label,r?.label?.className),style:r?.label?.styles,children:[h.jsx("span",{className:re.label,children:e},e),h.jsx(us,{mode:"wait",children:t&&!n&&h.jsx(bt.span,{initial:$t.initial,animate:$t.animate,exit:$t.exit,transition:$t.transition,className:re.labelError,children:t},t)})]}),Gt=({label:e,error:t,disabled:n,labelError:r,endContent:i,styles:s,onFocus:a,onBlur:o,...l})=>{const u=f.useRef(null),[c,d]=f.useState(!1),p=(t||r)&&!n,m=f.useCallback(()=>u.current?.focus(),[]),g=f.useCallback(v=>{d(!0),a?.(v)},[a]),y=f.useCallback(v=>{d(!1),o?.(v)},[o]),b=!p&&c&&(s?.container?.focus||re.inputFocus);return h.jsxs("div",{className:re.wrapper,children:[e&&h.jsx(Cr,{id:l.id,error:r,disabled:n,styles:s,label:e}),h.jsxs("div",{className:ve(re.inputContainer,p&&re.errorInput,n&&re.disabled,b,s?.container?.className),style:s?.container?.styles,onClick:m,children:[h.jsx("input",{...l,ref:u,onFocus:g,onBlur:y,style:s?.field?.styles,className:ve(re.input,n&&re.disabledInput,l.className,s?.field?.className)}),i&&h.jsx("div",{className:re.endContent,children:i})]}),h.jsx(xr,{error:t,disabled:n,styles:s})]})},S0={width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},Wt=({className:e})=>h.jsx("div",{style:S0,children:h.jsx("svg",{className:e,focusable:"false",fill:"#dc2626",color:"#dc2626",height:"12",viewBox:"0 0 12 12",width:"12",children:h.jsxs("g",{fill:"none",fillRule:"evenodd",transform:"matrix(1 0 0 -1 0 12)",children:[h.jsx("circle",{cx:"6",cy:"3.2",fill:"currentColor",r:"1"}),h.jsxs("g",{stroke:"currentColor",children:[h.jsx("circle",{cx:"6",cy:"6",r:"5.5"}),h.jsx("path",{d:"m6 9.2v-3.2",strokeLinecap:"round",strokeLinejoin:"round"})]})]})})}),P0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},A0={width:"100%",height:"100%"},E0=({className:e})=>h.jsx("div",{style:P0,className:e,children:h.jsxs("svg",{style:A0,focusable:"false",viewBox:"0 0 32 21",role:"img","aria-label":"CVC",children:[h.jsx("title",{children:"CVC"}),h.jsx("g",{fill:"none",fillRule:"evenodd",children:h.jsxs("g",{fill:"#565656",children:[h.jsxs("g",{transform:"translate(0 2)",children:[h.jsx("path",{d:"M21.68 0H2c-.92 0-2 1.06-2 2v15c0 .94 1.08 2 2 2h25c.92 0 2-1.06 2-2V9.47a5.98 5.98 0 0 1-3 1.45V11c0 .66-.36 1-1 1H3c-.64 0-1-.34-1-1v-1c0-.66.36-1 1-1h17.53a5.98 5.98 0 0 1 1.15-9z",opacity:".2"}),h.jsx("path",{d:"M19.34 3H0v3h19.08a6.04 6.04 0 0 1 .26-3z",opacity:".3"})]}),h.jsx("g",{transform:"translate(18)",children:h.jsx("path",{d:"M7 14A7 7 0 1 1 7 0a7 7 0 0 1 0 14zM4.22 4.1h-.79l-1.93.98v1l1.53-.8V9.9h1.2V4.1zm2.3.8c.57 0 .97.32.97.78 0 .5-.47.85-1.15.85h-.3v.85h.36c.72 0 1.21.36 1.21.88 0 .5-.48.84-1.16.84-.5 0-1-.16-1.52-.47v1c.56.24 1.12.37 1.67.37 1.31 0 2.21-.67 2.21-1.64 0-.68-.42-1.23-1.12-1.45.6-.2.99-.73.99-1.33C8.68 4.64 7.85 4 6.65 4a4 4 0 0 0-1.57.34v.98c.48-.27.97-.42 1.44-.42zm4.32 2.18c.73 0 1.24.43 1.24.99 0 .59-.51 1-1.24 1-.44 0-.9-.14-1.37-.43v1.03c.49.22.99.33 1.48.33.26 0 .5-.04.73-.1.52-.85.82-1.83.82-2.88l-.02-.42a2.3 2.3 0 0 0-1.23-.32c-.18 0-.37.01-.57.04v-1.3h1.44a5.62 5.62 0 0 0-.46-.92H9.64v3.15c.4-.1.8-.17 1.2-.17z"})})]})})]})}),j0=({className:e})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:h.jsx("polyline",{points:"15 18 9 12 15 6"})}),V0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},R0={width:"100%",height:"100%"},_0=({className:e})=>h.jsx("div",{style:V0,className:e,children:h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:R0,children:[h.jsx("rect",{x:"1",y:"1",width:"28",height:"18",rx:"2",ry:"2"}),h.jsx("line",{x1:"1",y1:"8",x2:"27",y2:"8"})]})}),M0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},I0={width:"100%",height:"100%"},D0=({className:e})=>h.jsx("div",{style:M0,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",style:I0,children:h.jsx("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:h.jsx("g",{id:"New-Icons",transform:"translate(-80.000000, -280.000000)",fillRule:"nonzero",children:h.jsx("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)",children:h.jsx("g",{id:"Color",transform:"translate(0.000000, 80.000000)",children:h.jsxs("g",{id:"Visa",transform:"translate(40.000000, 0.000000)",children:[h.jsx("rect",{id:"Container",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF",x:"0.25",y:"0.25",width:"23.5",height:"15.5",rx:"2"}),h.jsx("path",{d:"M2.78773262,5.91443732 C2.26459089,5.62750595 1.6675389,5.39673777 1,5.23659312 L1.0280005,5.1118821 L3.76497922,5.1118821 C4.13596254,5.12488556 4.43699113,5.23650585 4.53494636,5.63071135 L5.12976697,8.46659052 L5.31198338,9.32072617 L6.97796639,5.1118821 L8.77678896,5.1118821 L6.10288111,11.2775284 L4.30396552,11.2775284 L2.78773262,5.91443732 L2.78773262,5.91443732 Z M10.0999752,11.2840738 L8.39882877,11.2840738 L9.46284763,5.1118821 L11.163901,5.1118821 L10.0999752,11.2840738 Z M16.2667821,5.26277458 L16.0354292,6.59558538 L15.881566,6.53004446 C15.5737466,6.40524617 15.1674138,6.28053516 14.6143808,6.29371316 C13.942741,6.29371316 13.6415263,6.56277129 13.6345494,6.82545859 C13.6345494,7.11441463 13.998928,7.3048411 14.5939153,7.58725177 C15.5740257,8.02718756 16.0286384,8.56556562 16.0218476,9.26818871 C16.0080799,10.5486366 14.8460128,11.376058 13.0610509,11.376058 C12.2978746,11.3694253 11.5627918,11.2180965 11.163808,11.0475679 L11.4018587,9.66204513 L11.6258627,9.76066195 C12.1788958,9.99070971 12.5428092,10.0889775 13.221984,10.0889775 C13.7117601,10.0889775 14.2368857,9.89837643 14.2435835,9.48488392 C14.2435835,9.21565125 14.0198586,9.01850486 13.3617074,8.7164581 C12.717789,8.42086943 11.8568435,7.92848346 11.8707973,7.04197926 C11.8780532,5.84042483 13.0610509,5 14.7409877,5 C15.3990458,5 15.9312413,5.13788902 16.2667821,5.26277458 Z M18.5277524,9.0974856 L19.941731,9.0974856 C19.8717762,8.78889347 19.549631,7.31147374 19.549631,7.31147374 L19.4307452,6.77964104 C19.3467437,7.00942698 19.1998574,7.38373457 19.2069273,7.37055657 C19.2069273,7.37055657 18.6678479,8.74290137 18.5277524,9.0974856 Z M20.6276036,5.1118821 L22,11.2839865 L20.4249023,11.2839865 C20.4249023,11.2839865 20.2707601,10.5748181 20.221922,10.3581228 L18.0377903,10.3581228 C17.9746264,10.5221933 17.6807607,11.2839865 17.6807607,11.2839865 L15.8957988,11.2839865 L18.4226343,5.62399144 C18.5977072,5.22341512 18.9059917,5.1118821 19.3117663,5.1118821 L20.6276036,5.1118821 L20.6276036,5.1118821 Z",id:"Shape",fill:"#1434CB"})]})})})})})})}),L0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},N0={width:"100%",height:"100%"},O0=({className:e})=>h.jsx("div",{style:L0,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",viewBox:"0 0 24 16",width:"24",style:N0,children:h.jsxs("g",{fill:"none",fillRule:"evenodd",children:[h.jsx("rect",{fill:"#252525",height:"16",rx:"2",width:"24"}),h.jsx("circle",{cx:"9",cy:"8",fill:"#eb001b",r:"5"}),h.jsx("circle",{cx:"15",cy:"8",fill:"#f79e1b",r:"5"}),h.jsx("path",{d:"m12 3.99963381c1.2144467.91220633 2 2.36454836 2 4.00036619s-.7855533 3.0881599-2 4.0003662c-1.2144467-.9122063-2-2.36454837-2-4.0003662s.7855533-3.08815986 2-4.00036619z",fill:"#ff5f00"})]})})}),B0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},q0={width:"100%",height:"100%"},F0=({className:e})=>h.jsx("div",{style:B0,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",style:q0,children:h.jsx("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:h.jsx("g",{id:"New-Icons",transform:"translate(-320.000000, -280.000000)",fillRule:"nonzero",children:h.jsx("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)",children:h.jsx("g",{id:"Color",transform:"translate(0.000000, 80.000000)",children:h.jsxs("g",{id:"Diners-Club",transform:"translate(280.000000, 0.000000)",children:[h.jsx("path",{d:"M21.9972414,15.749927 L21.999381,15.7499362 C22.9544683,15.7581106 23.73806,14.9772525 23.75,14.0041555 L23.7500083,2.00630219 C23.7461702,1.53568921 23.5588633,1.08617106 23.2297297,0.756801782 C22.9014319,0.428268884 22.4589161,0.246148853 21.9972414,0.250070854 L2.00063,0.250061791 C1.54108393,0.246148853 1.09856813,0.428268884 0.77027028,0.756801782 C0.441136651,1.08617106 0.253829819,1.53568921 0.25,2.00426336 L0.249991686,13.9936957 C0.253829819,14.4643086 0.441136651,14.9138268 0.77027028,15.2431961 C1.09856813,15.571729 1.54108393,15.753849 2.00275862,15.749927 L21.9972414,15.749927 Z M21.996203,16.249927 C21.9958359,16.249924 21.9954688,16.249921 21.9951018,16.2499178 L21.9972414,16.249927 L21.996203,16.249927 Z",id:"shape",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF"}),h.jsx("path",{d:"M10.0021142,2.05179033 L10.0021142,2.03579033 L14.0021142,2.03579033 L14.0021142,2.05179033 C17.1375481,2.28122918 19.5642283,4.89197286 19.5642283,8.03579033 C19.5642283,11.1796078 17.1375481,13.7903515 14.0021142,14.0197903 L14.0021142,14.0357903 L10.0021142,14.0357903 L10.0021142,14.0197903 C6.86668021,13.7903515 4.44,11.1796078 4.44,8.03579033 C4.44,4.89197286 6.86668021,2.28122918 10.0021142,2.05179033 Z",id:"shape",fill:"#0165AC"}),h.jsx("path",{d:"M11.6021142,11.4277903 C13.0374002,10.9175027 13.9961556,9.55908923 13.9961556,8.03579033 C13.9961556,6.51249143 13.0374002,5.15407792 11.6021142,4.64379033 L11.6021142,11.4277903 L11.6021142,11.4277903 Z M9.20211417,4.64379033 C7.76682809,5.15407792 6.80807271,6.51249143 6.80807271,8.03579033 C6.80807271,9.55908923 7.76682809,10.9175027 9.20211417,11.4277903 L9.20211417,4.64379033 L9.20211417,4.64379033 Z M10.4021142,13.2357903 C7.53023347,13.2357903 5.20211417,10.907671 5.20211417,8.03579033 C5.20211417,5.16390963 7.53023347,2.83579033 10.4021142,2.83579033 C13.2739949,2.83579033 15.6021142,5.16390963 15.6021142,8.03579033 C15.6021142,10.907671 13.2739949,13.2357903 10.4021142,13.2357903 Z",id:"shape",fill:"#FFFFFF"})]})})})})})})}),K0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},z0={width:"100%",height:"100%"},U0=({className:e})=>h.jsx("div",{style:K0,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",viewBox:"0 0 23 16",width:"23",style:z0,children:h.jsxs("g",{fill:"none",children:[h.jsx("path",{d:"m.20535714 16h4.51785715c1.0278125 0 2.25892857-1.1946667 2.25892857-2.1333333v-13.8666667h-4.51785715c-1.0278125 0-2.25892857 1.19466667-2.25892857 3.2z",fill:"#047ab1"}),h.jsx("path",{d:"m2.76924107 10.816c-.86733559.0001606-1.73039558-.1147397-2.56388393-.3413333v-1.17333337c.64678874.37770431 1.38610045.59084099 2.14598215.61866667.8696875 0 1.35535714-.576 1.35535714-1.36533333v-3.22133334h2.14598214v3.22133334c0 1.25866666-.70026786 2.26133333-3.0834375 2.26133333z",fill:"#fff"}),h.jsx("path",{d:"m8.11160714 16h4.51785716c1.0278125 0 2.2589286-1.1946667 2.2589286-2.1333333v-13.8666667h-4.5178572c-1.02781249 0-2.25892856 1.19466667-2.25892856 3.2z",fill:"#d42d06"}),h.jsx("path",{d:"m8.11160714 6.08c.65508929-.59733333 1.78455357-.97066667 3.61428576-.88533333.9939285.04266666 2.0330357.32 2.0330357.32v1.184c-.5943231-.3394747-1.2623758-.54734656-1.9539732-.608-1.3892411-.11733334-2.23633933.61866666-2.23633933 1.90933333s.84709823 2.0266667 2.23633933 1.92c.6920185-.06606555 1.3596342-.27744592 1.9539732-.61866667v1.17333337s-1.0391072.288-2.0330357.3306666c-1.82973219.0853334-2.95919647-.288-3.61428576-.8853333z",fill:"#fff"}),h.jsx("path",{d:"m16.0178571 16h4.5178572c1.0278125 0 2.2589286-1.1946667 2.2589286-2.1333333v-13.8666667h-4.5178572c-1.0278125 0-2.2589286 1.19466667-2.2589286 3.2z",fill:"#67b637"}),h.jsx("path",{d:"m21.6651786 9.28c0 .8533333-.7002679 1.3866667-1.6377232 1.3866667h-4.0095983v-5.33333337h3.6481697l.2597768.01066667c.8245089.04266667 1.4344196.50133333 1.4344196 1.29066667 0 .61866666-.4179018 1.152-1.1746428 1.28v.032c.8358035.05333333 1.4795982.55466666 1.4795982 1.33333333zm-2.880134-3.104c-.0486104-.00686658-.0976798-.01043129-.1468303-.01066667h-1.3553572v1.344h1.5021875c.2823661-.064.5195536-.30933333.5195536-.672 0-.36266666-.2371875-.608-.5195536-.66133333zm.1694197 2.176c-.059755-.00886168-.1202559-.01243275-.1807143-.01066667h-1.4908929v1.46133334h1.4908929l.1807143-.02133334c.2823661-.064.5195536-.34133333.5195536-.71466666 0-.37333334-.2258929-.64-.5195536-.71466667z",fill:"#fff"})]})})}),$0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},G0={width:"100%",height:"100%"},W0=({className:e})=>h.jsx("div",{style:$0,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",style:G0,children:h.jsx("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:h.jsx("g",{id:"New-Icons",transform:"translate(-280.000000, -280.000000)",fillRule:"nonzero",children:h.jsx("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)",children:h.jsx("g",{id:"Color",transform:"translate(0.000000, 80.000000)",children:h.jsxs("g",{id:"Discover",transform:"translate(240.000000, 0.000000)",children:[h.jsx("path",{d:"M21.9972414,15.749927 L21.999381,15.7499362 C22.9544683,15.7581106 23.73806,14.9772525 23.75,14.0041555 L23.7500083,2.00630219 C23.7461702,1.53568921 23.5588633,1.08617106 23.2297297,0.756801782 C22.9014319,0.428268884 22.4589161,0.246148853 21.9972414,0.250070854 L2.00063,0.250061791 C1.54108393,0.246148853 1.09856813,0.428268884 0.77027028,0.756801782 C0.441136651,1.08617106 0.253829819,1.53568921 0.25,2.00426336 L0.249991686,13.9936957 C0.253829819,14.4643086 0.441136651,14.9138268 0.77027028,15.2431961 C1.09856813,15.571729 1.54108393,15.753849 2.00275862,15.749927 L21.9972414,15.749927 Z M21.996203,16.249927 C21.9958359,16.249924 21.9954688,16.249921 21.9951018,16.2499178 L21.9972414,16.249927 L21.996203,16.249927 Z",id:"shape",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF"}),h.jsx("path",{d:"M12.6124138,15.9999283 L21.9972414,15.9999283 C22.5240217,16.0043364 23.0309756,15.7992919 23.4065697,15.4299059 C23.7821638,15.06052 23.9956285,14.5570537 24,14.0302731 L24,11.6716524 C20.4561668,13.7059622 16.6127929,15.1667795 12.6124138,15.9999283 L12.6124138,15.9999283 Z",id:"shape",fill:"#F27712"}),h.jsx("path",{d:"M23.1724138,9.29647999 L22.32,9.29647999 L21.36,8.03027309 L21.2689655,8.03027309 L21.2689655,9.29647999 L20.5737931,9.29647999 L20.5737931,6.1516524 L21.6,6.1516524 C22.4027586,6.1516524 22.8662069,6.48268688 22.8662069,7.07854895 C22.8662069,7.56682481 22.5765517,7.88130757 22.0551724,7.98061792 L23.1724138,9.29647999 Z M22.1462069,7.10337654 C22.1462069,6.79716964 21.9144828,6.63992826 21.4841379,6.63992826 L21.2689655,6.63992826 L21.2689655,7.5916524 L21.4675862,7.5916524 C21.9144828,7.5916524 22.1462069,7.42613516 22.1462069,7.10337654 L22.1462069,7.10337654 Z M18.1406897,6.1516524 L20.1103448,6.1516524 L20.1103448,6.68130757 L18.8358621,6.68130757 L18.8358621,7.38475585 L20.0606897,7.38475585 L20.0606897,7.92268688 L18.8358621,7.92268688 L18.8358621,8.77510068 L20.1103448,8.77510068 L20.1103448,9.30475585 L18.1406897,9.30475585 L18.1406897,6.1516524 Z M15.9062069,9.37923861 L14.4,6.14337654 L15.1613793,6.14337654 L16.1131034,8.26199723 L17.0731034,6.14337654 L17.817931,6.14337654 L16.2951724,9.37923861 L15.9227586,9.37923861 L15.9062069,9.37923861 Z M9.60827586,9.37096274 C8.54896552,9.37096274 7.72137931,8.65096274 7.72137931,7.71579033 C7.72137931,6.8054455 8.56551724,6.06889378 9.62482759,6.06889378 C9.92275862,6.06889378 10.1710345,6.12682481 10.4772414,6.25923861 L10.4772414,6.98751447 C10.2453534,6.75969251 9.93335245,6.63192067 9.60827586,6.6316524 C8.9462069,6.6316524 8.44137931,7.1116524 8.44137931,7.71579033 C8.44137931,8.35303171 8.93793103,8.80820412 9.64137931,8.80820412 C9.95586207,8.80820412 10.1958621,8.70889378 10.4772414,8.46061792 L10.4772414,9.18889378 C10.1627586,9.32130757 9.89793103,9.37096274 9.60827586,9.37096274 L9.60827586,9.37096274 Z M7.5062069,8.33647999 C7.5062069,8.94889378 7.00137931,9.37096274 6.27310345,9.37096274 C5.74344828,9.37096274 5.36275862,9.18889378 5.04,8.77510068 L5.49517241,8.38613516 C5.65241379,8.66751447 5.91724138,8.80820412 6.24827586,8.80820412 C6.56275862,8.80820412 6.7862069,8.6178593 6.7862069,8.36958343 C6.7862069,8.22889378 6.72,8.12130757 6.57931034,8.03854895 C6.42504922,7.96369158 6.26441119,7.90275992 6.09931034,7.85647999 C5.44551724,7.64958343 5.22206897,7.42613516 5.22206897,6.98751447 C5.22206897,6.47441102 5.70206897,6.0854455 6.33103448,6.0854455 C6.72827586,6.0854455 7.08413793,6.20958343 7.38206897,6.44130757 L7.01793103,6.85510068 C6.87360928,6.69688076 6.66932728,6.60675635 6.45517241,6.60682481 C6.15724138,6.60682481 5.94206897,6.75579033 5.94206897,6.95441102 C5.94206897,7.11992826 6.0662069,7.21096274 6.48,7.3516524 C7.27448276,7.59992826 7.5062069,7.8316524 7.5062069,8.34475585 L7.5062069,8.33647999 Z M4.08827586,6.1516524 L4.78344828,6.1516524 L4.78344828,9.30475585 L4.08827586,9.30475585 L4.08827586,6.1516524 Z M1.8537931,9.30475585 L0.827586207,9.30475585 L0.827586207,6.1516524 L1.8537931,6.1516524 C2.97931034,6.1516524 3.75724138,6.79716964 3.75724138,7.72406619 C3.75724138,8.19579033 3.52551724,8.64268688 3.12,8.94061792 C2.77241379,9.18889378 2.38344828,9.30475585 1.84551724,9.30475585 L1.8537931,9.30475585 Z M2.66482759,6.9378593 C2.43310345,6.75579033 2.16827586,6.68958343 1.71310345,6.68958343 L1.52275862,6.68958343 L1.52275862,8.77510068 L1.71310345,8.77510068 C2.16,8.77510068 2.44137931,8.69234206 2.66482759,8.52682481 C2.90482759,8.32820412 3.04551724,8.03027309 3.04551724,7.72406619 C3.04551724,7.4178593 2.90482759,7.12820412 2.66482759,6.9378593 Z",id:"shape",fill:"#000000"}),h.jsx("path",{d:"M12.4137931,6.06889378 C11.5034483,6.06889378 10.7586207,6.79716964 10.7586207,7.69923861 C10.7586207,8.65923861 11.4703448,9.37923861 12.4137931,9.37923861 C13.3406897,9.37923861 14.0689655,8.65096274 14.0689655,7.72406619 C14.0689655,6.79716964 13.3489655,6.06889378 12.4137931,6.06889378 Z",id:"shape",fill:"#F27712"})]})})})})})})}),Y0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},H0={width:"100%",height:"100%"},Z0=({className:e})=>h.jsx("div",{style:Y0,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 16",style:H0,children:h.jsxs("g",{fill:"none",fillRule:"evenodd",children:[h.jsx("rect",{fill:"#016fd0",height:"16",rx:"2",width:"24"}),h.jsx("path",{d:"m13.7640663 13.3938564v-5.70139231l10.1475359.00910497v1.57489503l-1.1728619 1.25339231 1.1728619 1.2648839v1.6083094h-1.8726188l-.9951823-1.0981657-.9881105 1.1023204z",fill:"#fffffe"}),h.jsx("path",{d:"m14.4418122 12.7687956v-4.448884h3.7722872v1.02488398h-2.550895v.69569062h2.4900774v1.0078232h-2.4900774v.6833149h2.550895v1.0371713z",fill:"#016fd0"}),h.jsx("path",{d:"m18.1952707 12.7687956 2.087337-2.2270055-2.0874254-2.2217901h1.6156464l1.2754917 1.41003315 1.2791161-1.41003315h1.5461657v.03500552l-2.0428729 2.18678458 2.0428729 2.1638895v.063116h-1.5617237l-1.2981216-1.4241768-1.2847735 1.4241768z",fill:"#016fd0"}),h.jsx("path",{d:"m14.2373481 2.6319558h2.4460552l.8591381 1.95085083v-1.95085083h3.0198453l.5207514 1.46156906.5225194-1.46156906h2.3059447v5.70139227h-12.1865193z",fill:"#fffffe"}),h.jsxs("g",{fill:"#016fd0",children:[h.jsx("path",{d:"m14.7004641 3.25135912-1.9740111 4.44517127h1.3539006l.3724199-.89016575h2.0179447l.3721547.89016575h1.3875801l-1.96579-4.44517127zm.1696353 2.55743646.592-1.41507182.5915581 1.41507182z"}),h.jsx("path",{d:"m18.2119779 7.69573481v-4.44508288l1.903116.00654144.9792707 2.73272928.9856354-2.73927072h1.8316022v4.44508288l-1.1786077.01043094v-3.05334807l-1.1125746 3.04291713h-1.0758011l-1.1356464-3.05334807v3.05334807z"})]})]})})}),X0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},J0={width:"100%",height:"100%"},Q0=({className:e})=>h.jsx("div",{style:X0,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",viewBox:"0 0 24 16",width:"24",style:J0,children:h.jsxs("g",{fill:"none",children:[h.jsx("path",{d:"m4.54588254.00006676h5.79377466c.8087588 0 1.3117793.72566459 1.1231113 1.61890981l-2.69741608 12.74856503c-.19036262.8901361-1.00010994 1.6164225-1.80943362 1.6164225h-5.79320976c-.80762905 0-1.31177937-.7262864-1.12311135-1.6164225l2.69854581-12.74856503c.18866803-.89324522.9979917-1.61890981 1.80773904-1.61890981",fill:"#dd2423"}),h.jsx("path",{d:"m9.85756516.00006676h6.66269264c.8086174 0 .4439911.72566459.2537697 1.61890981l-2.6969924 12.74856503c-.1892329.8901361-.1302036 1.6164225-.9405158 1.6164225h-6.66269248c-.81031221 0-1.31177939-.7262864-1.12141672-1.6164225l2.69685116-12.74856503c.19149238-.89324522.99912144-1.61890981 1.8083039-1.61890981",fill:"#16315e"}),h.jsx("path",{d:"m16.2559813.00006676h5.7937745c.8098886 0 1.3129092.72566459 1.1226878 1.61890981l-2.6969924 12.74856503c-.1903626.8901361-1.0006749 1.6164225-1.8104222 1.6164225h-5.7910915c-.8103122 0-1.3129091-.7262864-1.1231113-1.6164225l2.697416-12.74856503c.1886681-.89324522.9974268-1.61890981 1.8077391-1.61890981",fill:"#036862"}),h.jsx("path",{d:"m6.05901135 4.08561434c-.59580116.00668457-.77175951 0-.8279645-.01461278-.02160646.11301588-.42365577 2.15460824-.42478553 2.15631824-.08656699.4130443-.14955043.7074763-.36349659.89759795-.12144798.1105286-.26323144.1638497-.42760986.1638497-.26421996 0-.41814822-.1444178-.44399122-.41832975l-.00494264-.09405035s.08049458-.55326485.08049458-.55637395c0 0 .42196112-1.86048711.49751306-2.10641713.00395412-.01399096.00508387-.02129736.00607239-.02798193-.82132725.00792821-.9669236 0-.97695012-.01461278-.00550753.02005371-.025843.13540142-.025843.13540142l-.43085788 2.09693437-.03699927.1778407-.07159782.5817131c0 .1725552.03078565.31339755.09207452.4324762.19629382.37760055.75622549.4341862 1.07297875.4341862.40812169 0 .79096525-.09544945 1.04967767-.26971465.44907509-.2921002.56656897-.74867195.67135315-1.15440985l.04857917-.20815445s.43467082-1.93230737.5085281-2.18367833c.00282441-.01399096.00395413-.02129736.00776704-.02798193zm1.47893982 1.55881086c-.10478422 0-.29627659.0279819-.46828081.12078865-.0624186.0352883-.12144796.07601755-.18372539.11659135l.056205-.22338905-.03078563-.03762015c-.36476761.08130305-.44639193.0921849-.78333945.14441785l-.02824374.0206755c-.03911752.3570805-.07385733.6255515-.21888878 1.32743145-.05521646.25867735-.11255121.519842-.17002718.7778975l.01553403.03280105c.34527946-.0200537.45006363-.0200537.75015309-.0146128l.02428961-.0290701c.03812903-.21499445.04307165-.2653619.12752039-.70079175.03968242-.20644445.1224365-.66006255.16324868-.8215804.07498704-.038242.14898558-.07586215.21959486-.07586215.16819135 0 .14771465.1615179.14121858.22587635-.00720213.1080413-.06849101.4609245-.13133325.76390655l-.04194194.19556255c-.02923223.14441785-.06128888.2847938-.09052111.427968l.01270966.02860375c.34033679-.0200537.44413246-.0200537.73476028-.0146128l.0341749-.0290701c.0525333-.3357831.06792611-.42563615.16113038-.9145426l.04688457-.22463265c.09108601-.43962715.13684082-.6625498.06792616-.8441214-.07286879-.2034908-.24769738-.2526146-.40826291-.2526146zm1.65214439.4602871c-.18090101.038242-.29627659.0637366-.41094606.08021485-.11368097.02005375-.22453757.038242-.39936616.06498025l-.01383941.0138355-.01270966.01103735c-.01821719.14332965-.0309269.26722735-.05507525.41288885-.02047669.150636-.05196844.3217921-.10323077.56772215-.03968243.18825615-.06015913.25385825-.08275412.32008215-.0220301.06622385-.04631967.1305823-.09094476.31572935l.01045019.0171001.00875554.01570095c.1633899-.00855005.27029237-.0146128.38016043-.01570095.10972684-.00435275.22340776 0 .39936611.00108815l.01539286-.0138355.01652257-.0152346c.02541932-.1669588.02923224-.21188535.04476626-.29334385.01539282-.0873658.04194194-.20830985.10704369-.53134565.03078568-.1517242.06510179-.30298205.09701718-.4578154.03318641-.1542115.06792612-.30609115.10097127-.45781535l-.00494263-.0183437zm.00385525-.620608c-.1643784-.10679765-.45288796-.07290845-.64706354.0746185-.19361063.14457325-.21564072.34977405-.05182718.4579708.16155403.10384405.45119334.0729085.64367421-.0758621.19318708-.14768235.21733543-.3510177.05521651-.4567272zm.99410809 2.473369c.3325698 0 .6734715-.1008904.9300657-.400297.1974235-.2428209.2879446-.60409865.3192952-.7528692.1021011-.4931037.0225949-.7233328-.0772466-.8635533-.1516687-.21375085-.4197016-.28230655-.697761-.28230655-.1672028 0-.5654392.01818825-.87654364.33391765-.22340786.22774175-.32663863.5367866-.38891601.83308405-.06284224.3018939-.13514621.84536505.31887154 1.0476122.14008884.0662239.34203141.08441215.47223481.08441215zm-.0259841-1.10948335c.0766817-.3734032.1672028-.6868008.3982364-.6868008.1810422 0 .1941755.23318275.1136809.6078296-.0144042.0831685-.0804945.3923688-.1698859.5240393-.0624186.09715945-.1362759.15607695-.2179003.15607695-.0242896 0-.1687562 0-.1710157-.23613635-.0011297-.11659135.0204767-.23567.0468846-.3650087zm2.1066988 1.06146325.0259841-.0290701c.0368581-.21499445.0429305-.2655174.1245549-.70079175.0408121-.20644445.1252608-.66006255.1649433-.82158045.0751282-.0383974.1478558-.07601755.2207245-.07601755.1670616 0 .1467262.1615179.140089.2258763-.0060725.1081968-.0673613.4609245-.1313334.76390655l-.0396824.1955626c-.030362.14457325-.0634071.2847938-.0926394.42812345l.0127097.02860375c.3414665-.02005375.441308-.02005375.7336305-.0146128l.0353047-.0290701c.0512623-.33593855.0651017-.42579165.1611304-.9145426l.0457548-.2247881c.0915096-.43962715.1378292-.66239435.0700444-.84396595-.0749871-.2034908-.2509454-.2526146-.4092515-.2526146-.1049254 0-.2974063.02782645-.468422.12078865-.0611476.0352883-.1224365.0758621-.1825956.11659135l.0523921-.22338905-.0281025-.0377756c-.3646263.0814585-.4479453.09234035-.7844692.1445733l-.025843.0206755c-.0408122.35708045-.0739986.62539605-.21903 1.32743145-.0552164.25867735-.1125512.51984195-.1698859.7778975l.0153928.03280105c.3458442-.02005375.4490751-.02005375.7485997-.0146128zm2.5088186.01453505c.0214652-.1153477.1489856-.7990394.1501153-.7990394 0 0 .1085971-.50165375.1152345-.519842 0 0 .0341748-.0522329.0683497-.07290845h.0502738c.4743532 0 1.0099953 0 1.4298381-.3399804.2856852-.2331827.4809905-.57751585.5681223-.99600105.022595-.1026004.0392588-.22463269.0392588-.34666496 0-.16027425-.0292322-.3188385-.1136809-.44273624-.2140874-.32972035-.6404262-.3357831-1.132573-.33827039-.0015534 0-.2426136.00248729-.2426136.00248729-.629976.00855003-.8826161.00606275-.9864117-.00792821-.0087556.05052291-.0252782.14037599-.0252782.14037599s-.2256673 1.15130077-.2256673 1.15316622c0 0-.5400198 2.4477966-.5654392 2.5631443.5500464-.00730635.7755725-.00730635.8704714.0041973zm.4181482-2.0451678s.2399304-1.14896892.2388007-1.14461618l.0077669-.05891749.0033893-.04492654.0958874.01088185s.4948299.046792.5064099.04803565c.1953052.0831685.2757998.29754113.2195948.57736036-.0512623.2557237-.2019425.4707182-.3955532.5745622-.1594358.0879876-.3547411.095294-.5559775.095294h-.1302035zm1.4938667.99045135c-.0634072.2975411-.136276.8410123.3154822 1.0347094.1440429.0674675.2731167.0875212.4043088.08021485.1385355-.00823915.2669031-.08472305.3858092-.1947853-.0107326.04523745-.0214652.0904749-.0321978.1358678l.0204766.0290701c.324944-.01507915.4257741-.01507915.7778319-.0121255l.0319154-.0267383c.0514036-.332674.0998416-.65570975.2334344-1.2921431.0651017-.30484755.1300622-.6067414.1968587-.9103453l-.0104501-.03342285c-.3634967.0741521-.4606551.09000855-.8103124.1445733l-.026549.0237846c-.0035305.0309356-.0072021.0606275-.0105914.09031945-.0543692-.0966931-.1331691-.17923975-.2547583-.2306954-.1554817-.0673121-.5206729.01943185-.8346018.33407305-.2205834.2246327-.3264973.53243385-.3866564.8276432zm.7634275.01818825c.0778115-.3667187.1672028-.67700715.3988014-.67700715.1464436 0 .2235489.14877055.2078737.40247335-.0124272.06327025-.025843.1299605-.0418008.20535625-.0231597.10897405-.0482967.21701535-.0727275.32521215-.0248545.07399665-.0538043.143796-.0855784.1902771-.0595943.09296215-.2013777.150636-.2830021.150636-.0231599 0-.1660731 0-.1710157-.23193905-.0011298-.11550315.0204767-.23442635.0474494-.36500865zm3.9866711-1.21085565-.0281024-.0352883c-.3596838.08021485-.4247856.09296215-.755237.142086l-.0242897.02673825c-.0011296.00435275-.0021182.01103735-.0038128.0171001l-.0011298-.00606275c-.2460027.6247742-.2388006.4899946-.4390485.98185465-.0011298-.02238555-.0011298-.0363765-.0022595-.06016115l-.0501327-1.0662668-.0314917-.0352883c-.3767711.08021485-.3856679.09296215-.7336305.142086l-.0271139.02673825c-.003813.01274735-.003813.0267383-.0060724.0419729l.0022594.00544095c.0434954.2446864.0330452.19012165.0766818.5762722.0203354.1894998.0474494.3800878.0677848.5672558.0343162.3132421.0535219.4674536.0954638.94547815-.2349878.4268798-.2906279.5883977-.51686.9630446l.0015534.0037309-.1592946.27733195c-.0182171.0292256-.0347397.0492793-.0578996.05782935-.0254193.0138355-.0584644.01632275-.1043605.01632275h-.0882616l-.131192.4803564.4500635.00855005c.26422-.00124365.4302931-.1372669.5196844-.32008215l.283002-.53383295h-.004519l.0297972-.03762015c.1903626-.4511308 1.6384179-3.1855867 1.6384179-3.1855867zm-4.7501128 6.3087581h-.1909276l.7066579-2.57293795h.2344228l.0744221-.265051.0072022.29474295c-.0087556.1821934.121448.3437113.4634794.31697305h.3955532l.1361347-.49543555h-.1488443c-.0855785 0-.1252609-.02378465-.1203182-.0747739l-.0072022-.299873h-.7325008v.00155455c-.2368235.00544095-.9440462.0250283-1.0872418.0670012-.1732752.0491238-.3558709.1936971-.3558709.1936971l.071739-.26536195h-.6851925l-.1427719.52652655-.7161194 2.61226815h-.1389591l-.136276.4918601h1.3647364l-.0457548.1640051h.6724828l.0446251-.1640051h.1886681zm-.5599316-2.0501423c-.1097268.03342285-.313929.1347796-.313929.1347796l.1816071-.65757525h.5443977l-.1313333.47911275s-.1681914.01088185-.2807425.0436829zm.0104502.9394154s-.1710158.0236292-.283567.0516111c-.1108566.0369984-.3187303.1535897-.3187303.1535897l.1875382-.6843135h.5472221zm-.3050322 1.1167897h-.5460922l.158306-.5775158h.5443976zm1.315112-1.5959024h.7871525l-.1131162.4032506h-.7976024l-.1197535.4408708h.6979023l-.5284398.8190931c-.0369994.0601612-.0701858.0814585-.1070437.0984031-.0369994.0206755-.0855785.0449265-.1417835.0449265h-.1936107l-.133028.4828437h.5064098c.2632315 0 .4187131-.131826.5335239-.3048476l.3623669-.5459584.0778115.5543531c.0165225.1038439.0843074.1646269.1302034.1882561.0506975.0279819.1030897.0760176.1770882.0831685.0793648.0037309.1366995.0066846.1748285.0066846h.2488272l.1494092-.5403621h-.0981469c-.0563463 0-.1533633-.0104155-.1698859-.0298474-.0165226-.0236292-.0165226-.0600057-.0254194-.1153477l-.0789412-.5555967h-.3232494l.1417836-.1857688h.796049l.1224365-.4408708h-.7370197l.1148107-.4032506h.7347603l.1362759-.497301h-2.1905826zm-6.6483163 1.7081877.1837253-.6728098h.7550958l.1379705-.5004101h-.7558018l.1153756-.4141325h.7385731l.1368408-.4845537h-1.84798632l-.13401641.4845537h.41984283l-.1119863.4141325h-.42097264l-.13952389.5089601h.41970155l-.24487301.8901361c-.03304514.117835.01553408.1627615.04631971.2174817.03149175.0533211.06340718.0886094.13514621.1086631.07399857.0181883.12469597.0290701.19361067.0290701h.8512656l.1516688-.554353-.3773361.0570521c-.0728688 0-.2746701-.0096382-.25264-.0837903zm.0866093-3.22084395-.1913512.38070965c-.0409534.08316845-.0778114.1347796-.1109978.1585642-.0292322.02005375-.0871318.0284483-.1710157.0284483h-.0998415l-.13345158.48704095h.33158128c.1594357 0 .2818722-.0643584.3403368-.09653765.0628422-.0369983.0793647-.0158564.1279439-.0674675l.1119864-.1067977h1.0354146l.1374057-.50709465h-.7579202l.1323219-.2768656zm1.5286064 3.23062205c-.0176524-.027982-.0049427-.0772612.0220301-.1798616l.283002-1.0311339h1.0067472c.1467262-.0023318.25264-.0041973.3215547-.0096382.0739985-.0085501.1544932-.0376202.2421899-.0898531.0905212-.0547202.1368408-.1123941.1759583-.178618.0436366-.0660684.113681-.2106417.1738401-.4335643l.3557296-1.3048905-1.044735.0066846s-.3216959.0522329-.4633381.10990675c-.1429132.06435845-.3471154.2440646-.3471154.2440646l.0943341-.3577023h-.645369l-.9035164 3.29860265c-.0320566.1280949-.0535218.2210571-.0584645.2768655-.0016946.0601612.0689147.1197005.1146695.164627.0540867.0449266.1340164.0376202.2106981.0449266.0806358.0066846.1953053.0108818.3536113.0108818h.4959597l.1522336-.5658567-.4439912.0461702c-.0474494 0-.0817655-.027982-.0960286-.0516111zm.4876277-1.9074346h1.0574447l-.06722.2319391c-.0094616.0054409-.0320566-.0115037-.1396652.0024873h-.9156612zm.2118279-.77789745h1.0663414l-.0766816.27935285s-.5025969-.0054409-.5830915.01088185c-.3541763.06746755-.5610614.27577745-.5610614.27577745zm.802065 1.78653705c-.0087555.0346665-.0225949.0558084-.0419418.0716648-.0214654.0152346-.0562051.0206755-.1080323.0206755h-.1506803l.0088968-.2824619h-.626728l-.0254193 1.380908c-.0009886.0996467.007767.1573206.0739985.2034908.0662315.0576738.2702923.0649802.5449624.0649802h.392729l.1417834-.5168883-.3418902.0206755-.1136809.0073064c-.0155341-.0073064-.030362-.013991-.0468846-.0321792-.0144043-.015701-.0386939-.0060627-.0347398-.1057095l.0026831-.3539713.3585541-.0163228c.1936107 0 .2763648-.0693331.346974-.1354015.0673612-.0632702.0893913-.1360232.1148107-.2344264l.0601592-.3133975h-.4927118z",fill:"#fefefe"})]})})}),e1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},t1={width:"100%",height:"100%"},n1=({className:e})=>h.jsx("div",{style:e1,className:e,children:h.jsxs("svg",{width:"30",height:"20",viewBox:"0 0 30 20",xmlns:"http://www.w3.org/2000/svg",fill:"rgb(220 38 38)",role:"presentation",style:t1,children:[h.jsxs("g",{clipPath:"url(#clip0_184_11820)",children:[h.jsx("path",{opacity:"0.74",d:"M26.2061 0.00488281C28.3194 0.112115 30 1.85996 30 4V13.335L28.5 10.623V8H27.0488L25.9736 6.05664C25.744 5.64161 25.4595 5.2894 25.1367 5H28.5V4C28.5 2.61929 27.3807 1.5 26 1.5H4C2.61929 1.5 1.5 2.61929 1.5 4V5H19.8643C19.608 5.22972 19.3755 5.49872 19.1758 5.80762L19.0264 6.05664L17.9512 8H1.5V16C1.5 17.3807 2.61929 18.5 4 18.5H13.0371C13.1062 19.0302 13.2775 19.5408 13.5391 20H4L3.79395 19.9951C1.7488 19.8913 0.108652 18.2512 0.00488281 16.2061L0 16V4C0 1.85996 1.68056 0.112115 3.79395 0.00488281L4 0H26L26.2061 0.00488281Z"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7762 7.0252C21.5325 5.65827 23.4673 5.65826 24.2235 7.0252L29.743 17.0027C30.4843 18.3434 29.5319 19.9995 28.0194 19.9998H16.9803C15.4679 19.9995 14.5155 18.3434 15.2567 17.0027L20.7762 7.0252ZM22.4999 15.4998C21.8095 15.4998 21.2499 16.0595 21.2499 16.7498C21.2499 17.4402 21.8095 17.9998 22.4999 17.9998C23.1902 17.9998 23.7499 17.4402 23.7499 16.7498C23.7499 16.0595 23.1902 15.4998 22.4999 15.4998ZM22.4999 8.99981C21.9476 8.99981 21.4999 9.44753 21.4999 9.99981V12.9998C21.4999 13.5521 21.9476 13.9998 22.4999 13.9998C23.0522 13.9998 23.4999 13.5521 23.4999 12.9998V9.99981C23.4999 9.44753 23.0522 8.99981 22.4999 8.99981Z"})]}),h.jsx("defs",{children:h.jsx("clipPath",{id:"clip0_184_11820",children:h.jsx("rect",{width:"30",height:"20"})})})]})}),r1={cvcIcon:"_cvcIcon_1yx89_1"},Fa=f.createContext(null),xt=()=>f.useContext(Fa),i1=({children:e,styles:t})=>h.jsx(Fa.Provider,{value:t||null,children:e});var K=(e=>(e.Invalid="invalid",e.Empty="empty",e.Incomplete="incomplete",e.Unsupported="unsupported",e.Expired="expired",e))(K||{}),W=(e=>(e.Visa="visa",e.Mastercard="mastercard",e.AmericanExpress="american-express",e.Discover="discover",e.JCB="jcb",e.DinersClub="diners-club",e.UnionPay="unionpay",e.Maestro="maestro",e))(W||{});const Yt=[{name:"Visa",type:"visa",pattern:/^4/,minLength:16,maxLength:16},{name:"MasterCard",type:"mastercard",pattern:/^5[1-5]/,minLength:16,maxLength:16},{name:"American Express",type:"american-express",pattern:/^3[47]/,minLength:15,maxLength:15},{name:"Discover",type:"discover",pattern:/^6(?:011|5[0-9]{2})/,minLength:16,maxLength:16},{name:"JCB",type:"jcb",pattern:/^(?:2131|1800|35\d{3})/,minLength:15,maxLength:16},{name:"Diners Club",type:"diners-club",pattern:/^3(?:0[0-5]|[68][0-9])/,minLength:14,maxLength:16},{name:"Union Pay",type:"unionpay",pattern:/^62/,minLength:16,maxLength:19},{name:"Maestro",type:"maestro",pattern:/^(50[^69]|5[68]|5018|5020|5038|6[237]|6304|6759|6761|6763)/,minLength:12,maxLength:19}],Ka=e=>Yt.find(t=>t.pattern.test(e))||null,s1=e=>Yt.filter(t=>t.pattern.test(e)),a1=e=>{let t=0,n=!1;for(let r=e.length-1;r>=0;r--){let i=parseInt(e[r]);n&&(i*=2,i>9&&(i-=9)),t+=i,n=!n}return t%10===0},za=(e,t)=>{const n=e.replace(/\D/g,"");if(!n)return{isValid:!1,cardType:null,error:K.Empty};if(!/^\d+$/.test(n))return{isValid:!1,cardType:null,error:K.Invalid};const r=Ka(n);if(r){if(n.length<r.minLength||n.length>r.maxLength)return{isValid:!1,cardType:r.name,error:K.Incomplete}}else if(n.length<16)return{isValid:!1,cardType:null,error:K.Incomplete};return r&&t&&!t.includes(r.type)?{isValid:!1,cardType:r.name,error:"unsupported"}:a1(n)?{isValid:!0,cardType:r?.name||null,error:null}:{isValid:!1,cardType:r?.name||null,error:K.Invalid}},Ua=(e,t="")=>{const n=Ie.getTypeInfo(t),r=!e,i=e.length<(n?.code.size||3);return!r&&!i?null:r?K.Empty:K.Incomplete},o1=({onChange:e,onError:t,id:n,value:r,isTouchSubmit:i,disabled:s,cardType:a=""})=>{const o=Me(),l=xt(),[u,c]=f.useState(""),[d,p]=f.useState(!0),[m,g]=f.useState(!1),b=(i||m)&&(!!u||d);f.useEffect(()=>{b?t(u,d):t("",!1)},[b,u,d,t]);const v=C=>{const S=Ua(C,a);if(S){if(S===K.Empty)c(""),p(!0);else{const w=S===K.Incomplete?o.card.cvc.error.incomplete:o.card.cvc.error.invalid;c(w),p(!1)}return}p(!1),c("")},T=C=>{if(s)return;const{value:S}=C.currentTarget;c(""),p(!1),m||g(!0);const w=an(S,a),k=Ie.getTypeInfo(a);w.length===k?.code.size&&v(w),e({value:w,isValid:Ua(w,a)===null})};return h.jsx(Gt,{id:n,autoComplete:"cc-exp",value:r,disabled:s,placeholder:o.card.cvc.placeholder,onChange:T,onBlur:()=>v(r),styles:l?.card?.input,endContent:b?h.jsx(Wt,{}):h.jsx(E0,{className:r1.cvcIcon})})},$a=e=>{const t=!e,n=e.length<7,r=new Date,[i,s]=e.split(" / ");r.setFullYear(2e3+parseInt(s),parseInt(i)-1,31);const a=r.getTime()<Date.now();return!t&&!n&&!a?null:t?K.Empty:n?K.Incomplete:r.getFullYear()===new Date().getFullYear()?"dateExpired":"expired"},l1=({onChange:e,onError:t,id:n,value:r,isTouchSubmit:i,disabled:s})=>{const a=Me(),o=xt(),[l,u]=f.useState(""),[c,d]=f.useState(!0),[p,m]=f.useState(!1),y=(i||p)&&(!!l||c);f.useEffect(()=>{y?t(l,c):t("",!1)},[y,l,c,t]);const b=T=>{const C=$a(T);if(C){if(C===K.Empty)u(""),d(!0);else{let S=a.card.expiry.error.invalid;C==="expired"?S=a.card.expiry.error.expired.replace("{date}","year"):C==="dateExpired"?S=a.card.expiry.error.expired.replace("{date}","date"):C===K.Incomplete&&(S=a.card.expiry.error.incomplete),d(!1),u(S)}return}d(!1),u("")},v=T=>{if(s)return;const{value:C}=T.currentTarget;u(""),d(!1),p||m(!0);const S=zo(C,r);S.length===7&&b(S),e({value:S,isValid:$a(S)===null})};return h.jsx(Gt,{id:n,autoComplete:"cc-exp",value:r,disabled:s,placeholder:a.card.expiry.placeholder||"MM / YY",onChange:v,onBlur:()=>b(r),styles:o?.card?.input,endContent:y?h.jsx(Wt,{}):null})},Ga=e=>e?null:K.Empty,c1=({onChange:e,value:t,isTouchSubmit:n,disabled:r})=>{const i=f.useId(),s=Me(),a=xt(),[o,l]=f.useState(""),[u,c]=f.useState(!0),[d,p]=f.useState(!1),m=n||d,g=v=>{if(Ga(v)){l(""),c(!0);return}c(!1),l("")},y=v=>{if(r)return;const{value:T}=v.currentTarget;l(""),c(!1),d||p(!0),e({value:T,isValid:Ga(T)===null})},b=m&&(!!o||u);return h.jsx(Gt,{id:i,label:s.card.name.label,labelError:b&&u?s.card.name.error.required:void 0,autoComplete:"cc-name",value:t,disabled:r,placeholder:s.card.name.placeholder,error:b&&!u?o:void 0,onChange:y,onBlur:()=>g(t),styles:a?.card?.input,endContent:b?h.jsx(Wt,{}):null})},Wa=Yt.map(e=>e.type),Re={iconContainer:"_iconContainer_29xfy_1"},u1=({cardTypes:e,supportedCardTypes:t})=>e.filter(n=>t.includes(n)).slice(0,3).map(n=>{switch(n){case W.Visa:return h.jsx("span",{className:Re.iconContainer,children:h.jsx(D0,{})},n);case W.Maestro:case W.Mastercard:return h.jsx("span",{className:Re.iconContainer,children:h.jsx(O0,{})},n);case W.DinersClub:return h.jsx("span",{className:Re.iconContainer,children:h.jsx(F0,{})},n);case W.JCB:return h.jsx("span",{className:Re.iconContainer,children:h.jsx(U0,{})},n);case W.AmericanExpress:return h.jsx("span",{className:Re.iconContainer,children:h.jsx(Z0,{})},n);case W.Discover:return h.jsx("span",{className:Re.iconContainer,children:h.jsx(W0,{})},n);case W.UnionPay:return h.jsx("span",{className:Re.iconContainer,children:h.jsx(Q0,{})},n);default:return null}}),d1=({onChange:e,value:t,disabled:n,isTouchSubmit:r,supportedCardTypes:i})=>{const s=f.useId(),a=Me(),o=xt(),[l,u]=f.useState(Wa),[c,d]=f.useState(""),[p,m]=f.useState(!0),[g,y]=f.useState(!1),b=r||g,v=S=>{const{isValid:w,error:k}=za(S,i);if(!w)return k===K.Empty?(d(""),m(!0)):k===K.Unsupported?(d(a.card.number.error.unsupported),m(!1)):(d(k===K.Incomplete?a.card.number.error.incomplete:a.card.number.error.invalid),m(!1)),!1;m(!1),d("")},T=S=>{if(n)return;const{value:w}=S.currentTarget;d(""),m(!1),g||y(!0);const k=s1(w).map(V=>V.type),E=Ka(w),P=Ko(w,E?.type||"");P.replace(/\D/g,"").length===(E?.maxLength||16)&&v(P),u(k.length?k:Wa),e({card:P,cardType:E?.type||"",cardTypes:k,isValid:za(P).isValid})},C=b&&!n&&(!!c||p);return h.jsx(Gt,{id:s,label:a.card.number.label,labelError:C&&p?a.card.number.error.required:void 0,autoComplete:"cc-number",value:t,disabled:n,placeholder:"1234 1234 1234 1234",error:C&&!p?c:void 0,onChange:T,onBlur:()=>v(t),styles:o?.card?.input,endContent:C?h.jsx(n1,{}):h.jsx(u1,{cardTypes:l,supportedCardTypes:i||[]})})},Ht={container:"_container_1ari8_1",iconContainer:"_iconContainer_1ari8_5",icon:"_icon_1ari8_5",title:"_title_1ari8_15"},h1=({title:e})=>h.jsxs("div",{className:Ht.container,children:[h.jsx("div",{className:Ht.iconContainer,children:h.jsx(Wt,{className:Ht.icon})}),h.jsx("div",{className:Ht.title,children:e})]}),Ya={svg:"_svg_1kkac_1",sr:"_sr_1kkac_5"},wr=({className:e})=>h.jsxs("div",{role:"status",className:e,children:[h.jsxs("svg",{"aria-hidden":"true",className:Ya.svg,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),h.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),h.jsx("span",{className:Ya.sr,children:"Loading..."})]}),p1=({isFetching:e,isFail:t,supportedCardTypes:n,onSubmit:r})=>{const i=Me(),s=xt(),[a,o]=f.useState({value:"",isValid:!1}),l=f.useId(),[u,c]=f.useState(""),[d,p]=f.useState(!1),[m,g]=f.useState({value:"",isValid:!1}),y=f.useId(),[b,v]=f.useState(""),[T,C]=f.useState(!1),[S,w]=f.useState({value:"",isValid:!1}),[k,E]=f.useState(""),[P,V]=f.useState({value:"",isValid:!1}),[M,q]=f.useState(!1),te=({card:_,cardType:I,isValid:J})=>{w({value:_,isValid:J}),E(I);const x=an(a.value,I);o({value:x,isValid:a.isValid})},Y=({value:_,isValid:I})=>{const J=an(_,k);o({value:J,isValid:I})},U=_=>{if(_.preventDefault(),!(S.isValid&&m.isValid&&a.isValid&&P.isValid))return;const J=/\s/g;r({number:S.value.replace(J,""),expiry:m.value.replace(J,""),cvc:a.value,name:P.value,cardBrand:k})},R=(_,I)=>{C(I),v(I?i.card.expiry.error.required:_)},ne=(_,I)=>{p(I),c(I?i.card.cvc.error.required:_)};return h.jsxs("form",{onSubmit:U,className:Pt.card,children:[h.jsx(d1,{value:S.value,onChange:te,isTouchSubmit:M,supportedCardTypes:n,disabled:e}),h.jsxs("div",{className:Pt.cardDataContainer,children:[h.jsx(Cr,{id:y,label:i.card.expiry.label,error:T?b:void 0,styles:s?.card?.input,disabled:e}),h.jsx(Cr,{id:l,label:i.card.cvc.label,error:d?u:void 0,styles:s?.card?.input,disabled:e}),h.jsx(l1,{id:y,value:m.value,onError:R,onChange:g,isTouchSubmit:M,disabled:e}),h.jsx(o1,{id:l,cardType:k,value:a.value,onError:ne,onChange:Y,isTouchSubmit:M,disabled:e}),h.jsx("div",{children:h.jsx(xr,{error:T?void 0:b,disabled:e,styles:s?.card?.input})}),h.jsx("div",{children:h.jsx(xr,{error:d?void 0:u,disabled:e,styles:s?.card?.input})})]}),h.jsx(c1,{value:P.value,onChange:V,isTouchSubmit:M,disabled:e}),t?h.jsx(h1,{title:i.status.error}):null,h.jsxs(qr,{type:"submit",color:"primary",isLoading:e,disabled:e,onClick:()=>q(!0),className:ve(Pt.payButton,s?.card?.button?.className),style:s?.card?.button?.styles,children:[e&&h.jsx(wr,{className:Pt.spinner}),i.card.pay.button]})]})},ge={container:"_container_a64yo_1",backBtn:"_backBtn_a64yo_5",cardBtn:"_cardBtn_a64yo_9",btnContainer:"_btnContainer_a64yo_13",spinner:"_spinner_a64yo_17",spinnerContainer:"_spinnerContainer_a64yo_21"};/*!
31
+ `),()=>{document.head.contains(m)&&document.head.removeChild(m)}},[t]),h.jsx(Bc,{isPresent:t,childRef:i,sizeRef:s,children:ye.cloneElement(e,{ref:i})})}const Fc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:a,anchorX:o})=>{const l=ln(Kc),u=f.useId();let c=!0,d=f.useMemo(()=>(c=!1,{id:u,initial:t,isPresent:n,custom:i,onExitComplete:p=>{l.set(p,!0);for(const m of l.values())if(!m)return;r&&r()},register:p=>(l.set(p,!1),()=>l.delete(p))}),[n,l,r]);return s&&c&&(d={...d}),f.useMemo(()=>{l.forEach((p,m)=>l.set(m,!1))},[n]),ye.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),a==="popLayout"&&(e=h.jsx(qc,{isPresent:n,anchorX:o,children:e})),h.jsx(At.Provider,{value:d,children:e})};function Kc(){return new Map}function ls(e=!0){const t=f.useContext(At);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=f.useId();f.useEffect(()=>{if(e)return i(s)},[e]);const a=f.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,a]:[!0]}const Dt=e=>e.key||"";function cs(e){const t=[];return f.Children.forEach(e,n=>{f.isValidElement(n)&&t.push(n)}),t}const us=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:a=!1,anchorX:o="left"})=>{const[l,u]=ls(a),c=f.useMemo(()=>cs(e),[e]),d=a&&!l?[]:c.map(Dt),p=f.useRef(!0),m=f.useRef(c),g=ln(()=>new Map),[y,b]=f.useState(c),[v,T]=f.useState(c);Hr(()=>{p.current=!1,m.current=c;for(let w=0;w<v.length;w++){const k=Dt(v[w]);d.includes(k)?g.delete(k):g.get(k)!==!0&&g.set(k,!1)}},[v,d.length,d.join("-")]);const C=[];if(c!==y){let w=[...c];for(let k=0;k<v.length;k++){const E=v[k],P=Dt(E);d.includes(P)||(w.splice(k,0,E),C.push(E))}return s==="wait"&&C.length&&(w=C),T(cs(w)),b(c),null}process.env.NODE_ENV!=="production"&&s==="wait"&&v.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:S}=f.useContext(on);return h.jsx(h.Fragment,{children:v.map(w=>{const k=Dt(w),E=a&&!l?!1:c===v||d.includes(k),P=()=>{if(g.has(k))g.set(k,!0);else return;let V=!0;g.forEach(M=>{M||(V=!1)}),V&&(S?.(),T(m.current),a&&u?.(),r&&r())};return h.jsx(Fc,{isPresent:E,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,onExitComplete:E?void 0:P,anchorX:o,children:w},k)})})},ds=f.createContext({strict:!1}),hs={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"]},Ke={};for(const e in hs)Ke[e]={isEnabled:t=>hs[e].some(n=>!!t[n])};function zc(e){for(const t in e)Ke[t]={...Ke[t],...e[t]}}const Uc=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 Lt(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Uc.has(e)}let ps=e=>!Lt(e);function $c(e){e&&(ps=t=>t.startsWith("on")?!Lt(t):e(t))}try{$c(require("@emotion/is-prop-valid").default)}catch{}function Gc(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(ps(i)||n===!0&&Lt(i)||!t&&!Lt(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Wc(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&fn(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Nt=f.createContext({});function Ot(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ut(e){return typeof e=="string"||Array.isArray(e)}const Zn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xn=["initial",...Zn];function Bt(e){return Ot(e.animate)||Xn.some(t=>ut(e[t]))}function fs(e){return!!(Bt(e)||e.variants)}function Yc(e,t){if(Bt(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ut(n)?n:void 0,animate:ut(r)?r:void 0}}return e.inherit!==!1?t:{}}function Hc(e){const{initial:t,animate:n}=Yc(e,f.useContext(Nt));return f.useMemo(()=>({initial:t,animate:n}),[ms(t),ms(n)])}function ms(e){return Array.isArray(e)?e.join(" "):e}const Zc=Symbol.for("motionComponentSymbol");function ze(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Xc(e,t,n){return f.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ze(n)&&(n.current=r))},[t])}const Jn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),gs="data-"+Jn("framerAppearId"),ys=f.createContext({});function Jc(e,t,n,r,i){const{visualElement:s}=f.useContext(Nt),a=f.useContext(ds),o=f.useContext(At),l=f.useContext(Hn).reducedMotion,u=f.useRef(null);r=r||a.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=f.useContext(ys);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&Qc(u.current,n,i,d);const p=f.useRef(!1);f.useInsertionEffect(()=>{c&&p.current&&c.update(n,o)});const m=n[gs],g=f.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Hr(()=>{c&&(p.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),Gn.render(c.render),g.current&&c.animationState&&c.animationState.animateChanges())}),f.useEffect(()=>{c&&(!g.current&&c.animationState&&c.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m)}),g.current=!1))}),c}function Qc(e,t,n,r){const{layoutId:i,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:vs(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||o&&ze(o),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function vs(e){if(e)return e.options.allowProjection!==!1?e.projection:vs(e.parent)}function eu({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&zc(e);function s(o,l){let u;const c={...f.useContext(Hn),...o,layoutId:tu(o)},{isStatic:d}=c,p=Hc(o),m=r(o,d);if(!d&&cn){nu(c,e);const g=ru(c);u=g.MeasureLayout,p.visualElement=Jc(i,m,c,t,g.ProjectionNode)}return h.jsxs(Nt.Provider,{value:p,children:[u&&p.visualElement?h.jsx(u,{visualElement:p.visualElement,...c}):null,n(i,o,Xc(m,p.visualElement,l),m,d,p.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const a=f.forwardRef(s);return a[Zc]=i,a}function tu({layoutId:e}){const t=f.useContext(on).id;return t&&e!==void 0?t+"-"+e:e}function nu(e,t){const n=f.useContext(ds).strict;if(process.env.NODE_ENV!=="production"&&t&&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.";e.ignoreStrict?De(!1,r):fe(!1,r)}}function ru(e){const{drag:t,layout:n}=Ke;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const dt={};function iu(e){for(const t in e)dt[t]=e[t],vn(t)&&(dt[t].isCSSVariable=!0)}function bs(e,{layout:t,layoutId:n}){return qe.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dt[e]||e==="opacity")}const su={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},au=Be.length;function ou(e,t,n){let r="",i=!0;for(let s=0;s<au;s++){const a=Be[s],o=e[a];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(a.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const u=es(o,$n[a]);if(!l){i=!1;const c=su[a]||a;r+=`${c}(${u}) `}n&&(t[a]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Qn(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let a=!1,o=!1;for(const l in t){const u=t[l];if(qe.has(l)){a=!0;continue}else if(vn(l)){i[l]=u;continue}else{const c=es(u,$n[l]);l.startsWith("origin")?(o=!0,s[l]=c):r[l]=c}}if(t.transform||(a||n?r.transform=ou(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${l} ${u} ${c}`}}const er=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function xs(e,t,n){for(const r in t)!G(t[r])&&!bs(r,n)&&(e[r]=t[r])}function lu({transformTemplate:e},t){return f.useMemo(()=>{const n=er();return Qn(n,t,e),Object.assign({},n.vars,n.style)},[t])}function cu(e,t){const n=e.style||{},r={};return xs(r,n,e),Object.assign(r,lu(e,t)),r}function uu(e,t){const n={},r=cu(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.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=r,n}const du={offset:"stroke-dashoffset",array:"stroke-dasharray"},hu={offset:"strokeDashoffset",array:"strokeDasharray"};function pu(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?du:hu;e[s.offset]=A.transform(-r);const a=A.transform(t),o=A.transform(n);e[s.array]=`${a} ${o}`}function Cs(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...o},l,u,c){if(Qn(e,o,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&pu(d,i,s,a,!1)}const ws=()=>({...er(),attrs:{}}),Ts=e=>typeof e=="string"&&e.toLowerCase()==="svg";function fu(e,t,n,r){const i=f.useMemo(()=>{const s=ws();return Cs(s,t,Ts(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};xs(s,e.style,e),i.style={...s,...i.style}}return i}const mu=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function tr(e){return typeof e!="string"||e.includes("-")?!1:!!(mu.indexOf(e)>-1||/[A-Z]/u.test(e))}function gu(e=!1){return(n,r,i,{latestValues:s},a)=>{const l=(tr(n)?fu:uu)(r,s,a,n),u=Gc(r,typeof n=="string",e),c=n!==f.Fragment?{...u,...l,ref:i}:{},{children:d}=r,p=f.useMemo(()=>G(d)?d.get():d,[d]);return f.createElement(n,{...c,children:p})}}function ks(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function nr(e,t,n,r){if(typeof t=="function"){const[i,s]=ks(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=ks(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function qt(e){return G(e)?e.get():e}function yu({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:vu(n,r,i,e),renderState:t()}}const Ss=e=>(t,n)=>{const r=f.useContext(Nt),i=f.useContext(At),s=()=>yu(e,t,r,i);return n?s():ln(s)};function vu(e,t,n,r){const i={},s=r(e,{});for(const p in s)i[p]=qt(s[p]);let{initial:a,animate:o}=e;const l=Bt(e),u=fs(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const d=c?o:a;if(d&&typeof d!="boolean"&&!Ot(d)){const p=Array.isArray(d)?d:[d];for(let m=0;m<p.length;m++){const g=nr(e,p[m]);if(g){const{transitionEnd:y,transition:b,...v}=g;for(const T in v){let C=v[T];if(Array.isArray(C)){const S=c?C.length-1:0;C=C[S]}C!==null&&(i[T]=C)}for(const T in y)i[T]=y[T]}}}return i}function rr(e,t,n){const{style:r}=e,i={};for(const s in r)(G(r[s])||t.style&&G(t.style[s])||bs(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(i[s]=r[s]);return i}const bu={useVisualState:Ss({scrapeMotionValuesFromProps:rr,createRenderState:er})};function Ps(e,t,n){const r=rr(e,t,n);for(const i in e)if(G(e[i])||G(t[i])){const s=Be.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const xu={useVisualState:Ss({scrapeMotionValuesFromProps:Ps,createRenderState:ws})};function Cu(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...tr(r)?xu:bu,preloadedFeatures:e,useRender:gu(i),createVisualElement:t,Component:r};return eu(a)}}function ht(e,t,n){const r=e.getProps();return nr(r,t,n!==void 0?n:r.custom,e)}const ir=e=>Array.isArray(e);function wu(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Fe(n))}function Tu(e){return ir(e)?e[e.length-1]||0:e}function ku(e,t){const n=ht(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const o=Tu(s[a]);wu(e,a,o)}}function Su(e){return!!(G(e)&&e.add)}function sr(e,t){const n=e.getValue("willChange");if(Su(n))return n.add(t);if(!n&&me.WillChange){const r=new me.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function As(e){return e.props[gs]}const Pu=e=>e!==null;function Au(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Pu),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const Eu={type:"spring",stiffness:500,damping:25,restSpeed:10},ju=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Vu={type:"keyframes",duration:.8},Ru={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_u=(e,{keyframes:t})=>t.length>2?Vu:qe.has(e)?e.startsWith("scale")?ju(t[1]):Eu:Ru;function Mu({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const ar=(e,t,n,r={},i,s)=>a=>{const o=zn(r,e)||{},l=o.delay||r.delay||0;let{elapsed:u=0}=r;u=u-le(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:p=>{t.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:i};Mu(o)||Object.assign(c,_u(e,c)),c.duration&&(c.duration=le(c.duration)),c.repeatDelay&&(c.repeatDelay=le(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),(me.instantAnimations||me.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!s&&t.get()!==void 0){const p=Au(c.keyframes,o);if(p!==void 0){D.update(()=>{c.onUpdate(p),c.onComplete()});return}}return o.isSync?new Mn(c):new fc(c)};function Iu({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Es(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...o}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const c in o){const d=e.getValue(c,e.latestValues[c]??null),p=o[c];if(p===void 0||u&&Iu(u,c))continue;const m={delay:n,...zn(s||{},c)},g=d.get();if(g!==void 0&&!d.isAnimating&&!Array.isArray(p)&&p===g&&!m.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=As(e);if(v){const T=window.MotionHandoffAnimation(v,c,D);T!==null&&(m.startTime=T,y=!0)}}sr(e,c),d.start(ar(c,d,p,e.shouldReduceMotion&&Gi.has(c)?{type:!1}:m,e,y));const b=d.animation;b&&l.push(b)}return a&&Promise.all(l).then(()=>{D.update(()=>{a&&ku(e,a)})}),l}function or(e,t,n={}){const r=ht(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Es(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=i;return Du(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[l,u]=o==="beforeChildren"?[s,a]:[a,s];return l().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function Du(e,t,n=0,r=0,i=1,s){const a=[],o=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>o-u*r;return Array.from(e.variantChildren).sort(Lu).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(or(u,t,{...s,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function Lu(e,t){return e.sortNodePosition(t)}function Nu(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>or(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=or(e,t,n);else{const i=typeof t=="function"?ht(e,t,n.custom):t;r=Promise.all(Es(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function js(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Ou=Xn.length;function Vs(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Vs(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Ou;n++){const r=Xn[n],i=e.props[r];(ut(i)||i===!1)&&(t[r]=i)}return t}const Bu=[...Zn].reverse(),qu=Zn.length;function Fu(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Nu(e,n,r)))}function Ku(e){let t=Fu(e),n=Rs(),r=!0;const i=l=>(u,c)=>{const d=ht(e,c,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:p,transitionEnd:m,...g}=d;u={...u,...g,...m}}return u};function s(l){t=l(e)}function a(l){const{props:u}=e,c=Vs(e.parent)||{},d=[],p=new Set;let m={},g=1/0;for(let b=0;b<qu;b++){const v=Bu[b],T=n[v],C=u[v]!==void 0?u[v]:c[v],S=ut(C),w=v===l?T.isActive:null;w===!1&&(g=b);let k=C===c[v]&&C!==u[v]&&S;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),T.protectedKeys={...m},!T.isActive&&w===null||!C&&!T.prevProp||Ot(C)||typeof C=="boolean")continue;const E=zu(T.prevProp,C);let P=E||v===l&&T.isActive&&!k&&S||b>g&&S,V=!1;const M=Array.isArray(C)?C:[C];let q=M.reduce(i(v),{});w===!1&&(q={});const{prevResolvedValues:te={}}=T,Y={...te,...q},U=_=>{P=!0,p.has(_)&&(V=!0,p.delete(_)),T.needsAnimating[_]=!0;const I=e.getValue(_);I&&(I.liveStyle=!1)};for(const _ in Y){const I=q[_],J=te[_];if(m.hasOwnProperty(_))continue;let x=!1;ir(I)&&ir(J)?x=!js(I,J):x=I!==J,x?I!=null?U(_):p.add(_):I!==void 0&&p.has(_)?U(_):T.protectedKeys[_]=!0}T.prevProp=C,T.prevResolvedValues=q,T.isActive&&(m={...m,...q}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(k&&E)||V)&&d.push(...M.map(_=>({animation:_,options:{type:v}})))}if(p.size){const b={};if(typeof u.initial!="boolean"){const v=ht(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(b.transition=v.transition)}p.forEach(v=>{const T=e.getBaseTarget(v),C=e.getValue(v);C&&(C.liveStyle=!0),b[v]=T??null}),d.push({animation:b})}let y=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function o(l,u){if(n[l].isActive===u)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,u)),n[l].isActive=u;const c=a(l);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:a,setActive:o,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Rs(),r=!0}}}function zu(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!js(t,e):!1}function je(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Rs(){return{animate:je(!0),whileInView:je(),whileHover:je(),whileTap:je(),whileDrag:je(),whileFocus:je(),exit:je()}}class we{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Uu extends we{constructor(t){super(t),t.animationState||(t.animationState=Ku(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ot(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(){this.node.animationState.reset(),this.unmountControls?.()}}let $u=0;class Gu extends we{constructor(){super(...arguments),this.id=$u++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.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 Wu={animation:{Feature:Uu},exit:{Feature:Gu}};function pt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ft(e){return{point:{x:e.pageX,y:e.pageY}}}const Yu=e=>t=>Wn(t)&&e(t,ft(t));function mt(e,t,n,r){return pt(e,t,Yu(n),r)}function _s({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Hu({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Zu(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const Ms=1e-4,Xu=1-Ms,Ju=1+Ms,Is=.01,Qu=0-Is,ed=0+Is;function X(e){return e.max-e.min}function td(e,t,n){return Math.abs(e-t)<=n}function Ds(e,t,n,r=.5){e.origin=r,e.originPoint=L(t.min,t.max,e.origin),e.scale=X(n)/X(t),e.translate=L(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Xu&&e.scale<=Ju||isNaN(e.scale))&&(e.scale=1),(e.translate>=Qu&&e.translate<=ed||isNaN(e.translate))&&(e.translate=0)}function gt(e,t,n,r){Ds(e.x,t.x,n.x,r?r.originX:void 0),Ds(e.y,t.y,n.y,r?r.originY:void 0)}function Ls(e,t,n){e.min=n.min+t.min,e.max=e.min+X(t)}function nd(e,t,n){Ls(e.x,t.x,n.x),Ls(e.y,t.y,n.y)}function Ns(e,t,n){e.min=t.min-n.min,e.max=e.min+X(t)}function yt(e,t,n){Ns(e.x,t.x,n.x),Ns(e.y,t.y,n.y)}const Os=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ue=()=>({x:Os(),y:Os()}),Bs=()=>({min:0,max:0}),B=()=>({x:Bs(),y:Bs()});function se(e){return[e("x"),e("y")]}function lr(e){return e===void 0||e===1}function cr({scale:e,scaleX:t,scaleY:n}){return!lr(e)||!lr(t)||!lr(n)}function Ve(e){return cr(e)||qs(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function qs(e){return Fs(e.x)||Fs(e.y)}function Fs(e){return e&&e!=="0%"}function Ft(e,t,n){const r=e-n,i=t*r;return n+i}function Ks(e,t,n,r,i){return i!==void 0&&(e=Ft(e,i,r)),Ft(e,n,r)+t}function ur(e,t=0,n=1,r,i){e.min=Ks(e.min,t,n,r,i),e.max=Ks(e.max,t,n,r,i)}function zs(e,{x:t,y:n}){ur(e.x,t.translate,t.scale,t.originPoint),ur(e.y,n.translate,n.scale,n.originPoint)}const Us=.999999999999,$s=1.0000000000001;function rd(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,a;for(let o=0;o<i;o++){s=n[o],a=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ge(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,zs(e,a)),r&&Ve(s.latestValues)&&Ge(e,s.latestValues))}t.x<$s&&t.x>Us&&(t.x=1),t.y<$s&&t.y>Us&&(t.y=1)}function $e(e,t){e.min=e.min+t,e.max=e.max+t}function Gs(e,t,n,r,i=.5){const s=L(e.min,e.max,i);ur(e,t,n,s,r)}function Ge(e,t){Gs(e.x,t.x,t.scaleX,t.scale,t.originX),Gs(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ws(e,t){return _s(Zu(e.getBoundingClientRect(),t))}function id(e,t,n){const r=Ws(e,n),{scroll:i}=t;return i&&($e(r.x,i.offset.x),$e(r.y,i.offset.y)),r}const Ys=({current:e})=>e?e.ownerDocument.defaultView:null,Hs=(e,t)=>Math.abs(e-t);function sd(e,t){const n=Hs(e.x,t.x),r=Hs(e.y,t.y);return Math.sqrt(n**2+r**2)}class Zs{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=hr(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,m=sd(d.offset,{x:0,y:0})>=3;if(!p&&!m)return;const{point:g}=d,{timestamp:y}=z;this.history.push({...g,timestamp:y});const{onStart:b,onMove:v}=this.handlers;p||(b&&b(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=dr(p,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=hr(d.type==="pointercancel"?this.lastMoveEventInfo:dr(p,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,b),g&&g(d,b)},!Wn(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=ft(t),o=dr(a,this.transformPagePoint),{point:l}=o,{timestamp:u}=z;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,hr(o,this.history)),this.removeListeners=nt(mt(this.contextWindow,"pointermove",this.handlePointerMove),mt(this.contextWindow,"pointerup",this.handlePointerUp),mt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),be(this.updatePoint)}}function dr(e,t){return t?{point:t(e.point)}:e}function Xs(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hr({point:e},t){return{point:e,delta:Xs(e,Js(t)),offset:Xs(e,ad(t)),velocity:od(t,.1)}}function ad(e){return e[0]}function Js(e){return e[e.length-1]}function od(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Js(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>le(t)));)n--;if(!r)return{x:0,y:0};const s=ue(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ld(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?L(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?L(n,e,r.max):Math.min(e,n)),e}function Qs(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 cd(e,{top:t,left:n,bottom:r,right:i}){return{x:Qs(e.x,n,i),y:Qs(e.y,t,r)}}function ea(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ud(e,t){return{x:ea(e.x,t.x),y:ea(e.y,t.y)}}function dd(e,t){let n=.5;const r=X(e),i=X(t);return i>r?n=rt(t.min,t.max-r,e.min):r>i&&(n=rt(e.min,e.max-i,t.min)),pe(0,1,n)}function hd(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 pr=.35;function pd(e=pr){return e===!1?e=0:e===!0&&(e=pr),{x:ta(e,"left","right"),y:ta(e,"top","bottom")}}function ta(e,t,n){return{min:na(e,t),max:na(e,n)}}function na(e,t){return typeof e=="number"?e:e[t]||0}const fd=new WeakMap;class md{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=B(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ft(c).point)},s=(c,d)=>{const{drag:p,dragPropagation:m,onDragStart:g}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Vc(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),se(b=>{let v=this.getAxisMotionValue(b).get()||0;if(de.test(v)){const{projection:T}=this.visualElement;if(T&&T.layout){const C=T.layout.layoutBox[b];C&&(v=X(C)*(parseFloat(v)/100))}}this.originPoint[b]=v}),g&&D.postRender(()=>g(c,d)),sr(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(c,d)=>{const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:g,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:b}=d;if(m&&this.currentDirection===null){this.currentDirection=gd(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,b),this.updateAxis("y",d.point,b),this.visualElement.render(),y&&y(c,d)},o=(c,d)=>this.stop(c,d),l=()=>se(c=>this.getAnimationState(c)==="paused"&&this.getAxisMotionValue(c).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Zs(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ys(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&D.postRender(()=>s(t,n))}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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Kt(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=ld(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&ze(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=cd(r.layoutBox,t):this.constraints=!1,this.elastic=pd(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&se(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=hd(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ze(t))return!1;const r=t.current;fe(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=id(r,i.root,this.visualElement.getTransformPagePoint());let a=ud(i.layout.layoutBox,s);if(n){const o=n(Hu(a));this.hasMutatedConstraints=!!o,o&&(a=_s(o))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=se(c=>{if(!Kt(c,n,this.currentDirection))return;let d=l&&l[c]||{};a&&(d={min:0,max:0});const p=i?200:1e6,m=i?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return sr(this.visualElement,t),r.start(ar(t,r,0,n,this.visualElement,!1))}stopAnimation(){se(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){se(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){se(n=>{const{drag:r}=this.getProps();if(!Kt(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:o}=i.layout.layoutBox[n];s.set(t[n]-L(a,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ze(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};se(a=>{const o=this.getAxisMotionValue(a);if(o&&this.constraints!==!1){const l=o.get();i[a]=dd({min:l,max:l},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),se(a=>{if(!Kt(a,t,null))return;const o=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];o.set(L(l,u,i[a]))})}addListeners(){if(!this.visualElement.current)return;fd.set(this.visualElement,this);const t=this.visualElement.current,n=mt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ze(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),D.read(r);const a=pt(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(se(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:a=pr,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:o}}}function Kt(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function gd(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class yd extends we{constructor(t){super(t),this.removeGroupControls=ie,this.removeListeners=ie,this.controls=new md(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ie}unmount(){this.removeGroupControls(),this.removeListeners()}}const ra=e=>(t,n)=>{e&&D.postRender(()=>e(t,n))};class vd extends we{constructor(){super(...arguments),this.removePointerDownListener=ie}onPointerDown(t){this.session=new Zs(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ys(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:ra(t),onStart:ra(n),onMove:r,onEnd:(s,a)=>{delete this.session,i&&D.postRender(()=>i(s,a))}}}mount(){this.removePointerDownListener=mt(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 zt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ia(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const vt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(A.test(e))e=parseFloat(e);else return e;const n=ia(e,t.target.x),r=ia(e,t.target.y);return`${n}% ${r}%`}},bd={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ce.parse(e);if(i.length>5)return r;const s=Ce.createTransformer(e),a=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=o,i[1+a]/=l;const u=L(o,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),s(i)}};class xd extends f.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;iu(Cd),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),zt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||D.postRender(()=>{const o=a.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Gn.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sa(e){const[t,n]=ls(),r=f.useContext(on);return h.jsx(xd,{...e,layoutGroup:r,switchLayoutGroup:f.useContext(ys),isPresent:t,safeToRemove:n})}const Cd={borderRadius:{...vt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vt,borderTopRightRadius:vt,borderBottomLeftRadius:vt,borderBottomRightRadius:vt,boxShadow:bd};function wd(e,t,n){const r=G(e)?e:Fe(e);return r.start(ar("",r,t,n)),r.animation}const Td=(e,t)=>e.depth-t.depth;class kd{constructor(){this.children=[],this.isDirty=!1}add(t){un(this.children,t),this.isDirty=!0}remove(t){dn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Td),this.isDirty=!1,this.children.forEach(t)}}function Sd(e,t){const n=Q.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(be(r),e(s-t))};return D.setup(r,!0),()=>be(r)}const aa=["TopLeft","TopRight","BottomLeft","BottomRight"],Pd=aa.length,oa=e=>typeof e=="string"?parseFloat(e):e,la=e=>typeof e=="number"||A.test(e);function Ad(e,t,n,r,i,s){i?(e.opacity=L(0,n.opacity??1,Ed(r)),e.opacityExit=L(t.opacity??1,0,jd(r))):s&&(e.opacity=L(t.opacity??1,n.opacity??1,r));for(let a=0;a<Pd;a++){const o=`border${aa[a]}Radius`;let l=ca(t,o),u=ca(n,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||la(l)===la(u)?(e[o]=Math.max(L(oa(l),oa(u),r),0),(de.test(u)||de.test(l))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=L(t.rotate||0,n.rotate||0,r))}function ca(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Ed=ua(0,.5,oi),jd=ua(.5,.95,ie);function ua(e,t,n){return r=>r<e?0:r>t?1:n(rt(e,t,r))}function da(e,t){e.min=t.min,e.max=t.max}function ae(e,t){da(e.x,t.x),da(e.y,t.y)}function ha(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function pa(e,t,n,r,i){return e-=t,e=Ft(e,1/n,r),i!==void 0&&(e=Ft(e,1/i,r)),e}function Vd(e,t=0,n=1,r=.5,i,s=e,a=e){if(de.test(t)&&(t=parseFloat(t),t=L(a.min,a.max,t/100)-a.min),typeof t!="number")return;let o=L(s.min,s.max,r);e===s&&(o-=t),e.min=pa(e.min,t,n,o,i),e.max=pa(e.max,t,n,o,i)}function fa(e,t,[n,r,i],s,a){Vd(e,t[n],t[r],t[i],t.scale,s,a)}const Rd=["x","scaleX","originX"],_d=["y","scaleY","originY"];function ma(e,t,n,r){fa(e.x,t,Rd,n?n.x:void 0,r?r.x:void 0),fa(e.y,t,_d,n?n.y:void 0,r?r.y:void 0)}function ga(e){return e.translate===0&&e.scale===1}function ya(e){return ga(e.x)&&ga(e.y)}function va(e,t){return e.min===t.min&&e.max===t.max}function Md(e,t){return va(e.x,t.x)&&va(e.y,t.y)}function ba(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function xa(e,t){return ba(e.x,t.x)&&ba(e.y,t.y)}function Ca(e){return X(e.x)/X(e.y)}function wa(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Id{constructor(){this.members=[]}add(t){un(this.members,t),t.scheduleRender()}remove(t){if(dn(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(i=>t===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(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Dd(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,a=n?.z||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:p,skewX:m,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const fr=["","X","Y","Z"],Ld={visibility:"hidden"},Nd=1e3;let Od=0;function mr(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ta(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=As(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",D,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ta(r)}function ka({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},o=t?.()){this.id=Od++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,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(Fd),this.nodes.forEach(Gd),this.nodes.forEach(Wd),this.nodes.forEach(Kd)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new kd)}addEventListener(a,o){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new pn),this.eventHandlers.get(a).add(o)}notifyListeners(a,...o){const l=this.eventHandlers.get(a);l&&l.notify(...o)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=os(a)&&!Lc(a),this.instance=a;const{layoutId:o,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||o)&&(this.isLayoutDirty=!0),e){let c;const d=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=Sd(d,250),zt.hasAnimatedSinceResize&&(zt.hasAnimatedSinceResize=!1,this.nodes.forEach(Pa))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&u&&(o||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||Jd,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=u.getProps(),v=!this.targetLayout||!xa(this.targetLayout,m),T=!d&&p;if(this.options.layoutRoot||this.resumeFrom||T||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,T);const C={...zn(g,"layout"),onPlay:y,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else d||Pa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),be(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(Yd),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ta(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Sa);return}this.isUpdating||this.nodes.forEach(Ud),this.isUpdating=!1,this.nodes.forEach($d),this.nodes.forEach(Bd),this.nodes.forEach(qd),this.clearAllSnapshots();const o=Q.now();z.delta=pe(0,1e3/60,o-z.timestamp),z.timestamp=o,z.isProcessing=!0,yn.update.process(z),yn.preRender.process(z),yn.render.process(z),z.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Gn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zd),this.sharedNodes.forEach(Hd)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!X(this.snapshot.measuredBox.x)&&!X(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=B(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(o=!1),o&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!ya(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;a&&this.instance&&(o||Ve(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return a&&(l=this.removeTransform(l)),Qd(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return B();const o=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(e0))){const{scroll:u}=this.root;u&&($e(o.x,u.offset.x),$e(o.y,u.offset.y))}return o}removeElementScroll(a){const o=B();if(ae(o,a),this.scroll?.wasRoot)return o;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:d}=u;u!==this.root&&c&&d.layoutScroll&&(c.wasRoot&&ae(o,a),$e(o.x,c.offset.x),$e(o.y,c.offset.y))}return o}applyTransform(a,o=!1){const l=B();ae(l,a);for(let u=0;u<this.path.length;u++){const c=this.path[u];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ge(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Ve(c.latestValues)&&Ge(l,c.latestValues)}return Ve(this.latestValues)&&Ge(l,this.latestValues),l}removeTransform(a){const o=B();ae(o,a);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Ve(u.latestValues))continue;cr(u.latestValues)&&u.updateSnapshot();const c=B(),d=u.measurePageBox();ae(c,d),ma(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Ve(this.latestValues)&&ma(o,this.latestValues),o}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==z.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==o;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!(!this.layout||!(c||d))){if(this.resolvedRelativeTargetAt=z.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=B(),this.relativeTargetOrigin=B(),yt(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),ae(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=B(),this.targetWithTransforms=B()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),nd(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ae(this.target,this.layout.layoutBox),zs(this.target,this.targetDelta)):ae(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=B(),this.relativeTargetOrigin=B(),yt(this.relativeTargetOrigin,this.target,p.target),ae(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||cr(this.parent.latestValues)||qs(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const a=this.getLead(),o=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===z.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;ae(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,p=this.treeScale.y;rd(this.layoutCorrected,this.treeScale,this.path,o),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=B());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ha(this.prevProjectionDelta.x,this.projectionDelta.x),ha(this.prevProjectionDelta.y,this.projectionDelta.y)),gt(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==p||!wa(this.projectionDelta.x,this.prevProjectionDelta.x)||!wa(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ue(),this.projectionDelta=Ue(),this.projectionDeltaWithTransform=Ue()}setAnimationOrigin(a,o=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Ue();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const p=B(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,y=m!==g,b=this.getStack(),v=!b||b.members.length<=1,T=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(Xd));this.animationProgress=0;let C;this.mixTargetDelta=S=>{const w=S/1e3;Aa(d.x,a.x,w),Aa(d.y,a.y,w),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(yt(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Zd(this.relativeTarget,this.relativeTargetOrigin,p,w),C&&Md(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=B()),ae(C,this.relativeTarget)),y&&(this.animationValues=c,Ad(c,u,this.latestValues,w,T,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(!1),this.resumingFrom?.currentAnimation?.stop(!1),this.pendingAnimation&&(be(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{zt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Fe(0)),this.currentAnimation=wd(this.motionValue,[0,1e3],{...a,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),a.onUpdate&&a.onUpdate(o)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Nd),this.currentAnimation.stop(!1)),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:c}=a;if(!(!o||!l||!u)){if(this!==a&&this.layout&&u&&_a(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||B();const d=X(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const p=X(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+p}ae(o,l),Ge(o,c),gt(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(a,o){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Id),this.sharedNodes.get(a).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let o=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&mr("z",a,u,this.animationValues);for(let c=0;c<fr.length;c++)mr(`rotate${fr[c]}`,a,u,this.animationValues),mr(`skew${fr[c]}`,a,u,this.animationValues);a.render();for(const c in u)a.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);a.scheduleRender()}getProjectionStyles(a){if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ld;const o={visibility:""},l=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=qt(a?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none",o;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=qt(a?.pointerEvents)||""),this.hasProjected&&!Ve(this.latestValues)&&(m.transform=l?l({},""):"none",this.hasProjected=!1),m}const c=u.animationValues||u.latestValues;this.applyTransformsToTarget(),o.transform=Dd(this.projectionDeltaWithTransform,this.treeScale,c),l&&(o.transform=l(c,o.transform));const{x:d,y:p}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${p.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const m in dt){if(c[m]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:b}=dt[m],v=o.transform==="none"?c[m]:g(c[m],u);if(y){const T=y.length;for(let C=0;C<T;C++)o[y[C]]=v}else b?this.options.visualElement.renderState.vars[m]=v:o[m]=v}return this.options.layoutId&&(o.pointerEvents=u===this?qt(a?.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop(!1)),this.root.nodes.forEach(Sa),this.root.sharedNodes.clear()}}}function Bd(e){e.updateLayout()}function qd(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;i==="size"?se(c=>{const d=s?t.measuredBox[c]:t.layoutBox[c],p=X(d);d.min=n[c].min,d.max=d.min+p}):_a(i,t.layoutBox,n)&&se(c=>{const d=s?t.measuredBox[c]:t.layoutBox[c],p=X(n[c]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+p)});const a=Ue();gt(a,n,t.layoutBox);const o=Ue();s?gt(o,e.applyTransform(r,!0),t.measuredBox):gt(o,n,t.layoutBox);const l=!ya(a);let u=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:p}=c;if(d&&p){const m=B();yt(m,t.layoutBox,d.layoutBox);const g=B();yt(g,n,p.layoutBox),xa(m,g)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Fd(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 Kd(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zd(e){e.clearSnapshot()}function Sa(e){e.clearMeasurements()}function Ud(e){e.isLayoutDirty=!1}function $d(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Pa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Gd(e){e.resolveTargetDelta()}function Wd(e){e.calcProjection()}function Yd(e){e.resetSkewAndRotation()}function Hd(e){e.removeLeadSnapshot()}function Aa(e,t,n){e.translate=L(t.translate,0,n),e.scale=L(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ea(e,t,n,r){e.min=L(t.min,n.min,r),e.max=L(t.max,n.max,r)}function Zd(e,t,n,r){Ea(e.x,t.x,n.x,r),Ea(e.y,t.y,n.y,r)}function Xd(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Jd={duration:.45,ease:[.4,0,.1,1]},ja=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Va=ja("applewebkit/")&&!ja("chrome/")?Math.round:ie;function Ra(e){e.min=Va(e.min),e.max=Va(e.max)}function Qd(e){Ra(e.x),Ra(e.y)}function _a(e,t,n){return e==="position"||e==="preserve-aspect"&&!td(Ca(t),Ca(n),.2)}function e0(e){return e!==e.root&&e.scroll?.wasRoot}const t0=ka({attachResizeListener:(e,t)=>pt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gr={current:void 0},Ma=ka({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gr.current){const e=new t0({});e.mount(window),e.setOptions({layoutScroll:!0}),gr.current=e}return gr.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),n0={pan:{Feature:vd},drag:{Feature:yd,ProjectionNode:Ma,MeasureLayout:sa}};function Ia(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&D.postRender(()=>s(t,ft(t)))}class r0 extends we{mount(){const{current:t}=this.node;t&&(this.unmount=Rc(t,(n,r)=>(Ia(this.node,r,"Start"),i=>Ia(this.node,i,"End"))))}unmount(){}}class i0 extends we{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{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=nt(pt(this.node.current,"focus",()=>this.onFocus()),pt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Da(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&D.postRender(()=>s(t,ft(t)))}class s0 extends we{mount(){const{current:t}=this.node;t&&(this.unmount=Dc(t,(n,r)=>(Da(this.node,r,"Start"),(i,{success:s})=>Da(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const yr=new WeakMap,vr=new WeakMap,a0=e=>{const t=yr.get(e.target);t&&t(e)},o0=e=>{e.forEach(a0)};function l0({root:e,...t}){const n=e||document;vr.has(n)||vr.set(n,{});const r=vr.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(o0,{root:e,...t})),r[i]}function c0(e,t,n){const r=l0(t);return yr.set(e,n),r.observe(e),()=>{yr.delete(e),r.unobserve(e)}}const u0={some:0,all:1};class d0 extends we{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:u0[i]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=u?c:d;p&&p(l)};return c0(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(h0(t,n))&&this.startObserver()}unmount(){}}function h0({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const p0={inView:{Feature:d0},tap:{Feature:s0},focus:{Feature:i0},hover:{Feature:r0}},f0={layout:{ProjectionNode:Ma,MeasureLayout:sa}},br={current:null},La={current:!1};function m0(){if(La.current=!0,!!cn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>br.current=e.matches;e.addListener(t),t()}else br.current=!1}const g0=new WeakMap;function y0(e,t,n){for(const r in t){const i=t[r],s=n[r];if(G(i))e.addValue(r,i);else if(G(s))e.addValue(r,Fe(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Fe(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Na=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class v0{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Fn,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 p=Q.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,D.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=Bt(n),this.isVariantNode=fs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in d){const m=d[p];l[p]!==void 0&&G(m)&&m.set(l[p],!1)}}mount(t){this.current=t,g0.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((n,r)=>this.bindToMotionValue(r,n)),La.current||m0(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:br.current,process.env.NODE_ENV!=="production"&&fn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),be(this.notifyUpdate),be(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=qe.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&D.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),a&&a(),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 Ke){const n=Ke[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];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):B()}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 r=0;r<Na.length;r++){const i=Na[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=t[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=y0(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 r=this.values.get(t);n!==r&&(r&&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 r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Fe(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Zr(r)||Jr(r))?r=parseFloat(r):!Oc(r)&&Ce.test(n)&&(r=Ji(t,n)),this.setBaseTarget(t,G(r)?r.get():r)),G(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=nr(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!G(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new pn),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Oa extends v0{constructor(){super(...arguments),this.KeyframeResolver=Pc}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:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;G(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ba(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}function b0(e){return window.getComputedStyle(e)}class x0 extends Oa{constructor(){super(...arguments),this.type="html",this.renderInstance=Ba}readValueFromInstance(t,n){if(qe.has(n))return this.projection?.isProjecting?Ln(n):$l(t,n);{const r=b0(t),i=(vn(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ws(t,n)}build(t,n,r){Qn(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return rr(t,n,r)}}const qa=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 C0(e,t,n,r){Ba(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(qa.has(i)?i:Jn(i),t.attrs[i])}class w0 extends Oa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=B}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(qe.has(n)){const r=Xi(n);return r&&r.default||0}return n=qa.has(n)?n:Jn(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ps(t,n,r)}build(t,n,r){Cs(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){C0(t,n,r,i)}mount(t){this.isSVGTag=Ts(t.tagName),super.mount(t)}}const T0=(e,t)=>tr(e)?new w0(t):new x0(t,{allowProjection:e!==f.Fragment}),k0=Cu({...Wu,...p0,...n0,...f0},T0),bt=Wc(k0),Ut={initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{height:{duration:.2},opacity:{duration:.2}}},$t={initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{height:{duration:.2},opacity:{duration:.2}}},xr=({error:e,disabled:t,styles:n})=>h.jsx(us,{mode:"wait",children:e&&!t&&h.jsx(bt.div,{initial:Ut.initial,animate:Ut.animate,exit:Ut.exit,transition:Ut.transition,className:ve(re.error,n?.error?.className),style:n?.error?.styles,children:e})}),Cr=({label:e,error:t,disabled:n,styles:r,id:i})=>h.jsxs("label",{htmlFor:i,className:ve(re.label,r?.label?.className),style:r?.label?.styles,children:[h.jsx("span",{className:re.label,children:e},e),h.jsx(us,{mode:"wait",children:t&&!n&&h.jsx(bt.span,{initial:$t.initial,animate:$t.animate,exit:$t.exit,transition:$t.transition,className:re.labelError,children:t},t)})]}),Gt=({label:e,error:t,disabled:n,labelError:r,endContent:i,styles:s,onFocus:a,onBlur:o,...l})=>{const u=f.useRef(null),[c,d]=f.useState(!1),p=(t||r)&&!n,m=f.useCallback(()=>u.current?.focus(),[]),g=f.useCallback(v=>{d(!0),a?.(v)},[a]),y=f.useCallback(v=>{d(!1),o?.(v)},[o]),b=!p&&c&&(s?.container?.focus||re.inputFocus);return h.jsxs("div",{className:re.wrapper,children:[e&&h.jsx(Cr,{id:l.id,error:r,disabled:n,styles:s,label:e}),h.jsxs("div",{className:ve(re.inputContainer,p&&re.errorInput,n&&re.disabled,b,s?.container?.className),style:s?.container?.styles,onClick:m,children:[h.jsx("input",{...l,ref:u,onFocus:g,onBlur:y,style:s?.field?.styles,className:ve(re.input,n&&re.disabledInput,l.className,s?.field?.className)}),i&&h.jsx("div",{className:re.endContent,children:i})]}),h.jsx(xr,{error:t,disabled:n,styles:s})]})},S0={width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},Wt=({className:e})=>h.jsx("div",{style:S0,children:h.jsx("svg",{className:e,focusable:"false",fill:"#dc2626",color:"#dc2626",height:"12",viewBox:"0 0 12 12",width:"12",children:h.jsxs("g",{fill:"none",fillRule:"evenodd",transform:"matrix(1 0 0 -1 0 12)",children:[h.jsx("circle",{cx:"6",cy:"3.2",fill:"currentColor",r:"1"}),h.jsxs("g",{stroke:"currentColor",children:[h.jsx("circle",{cx:"6",cy:"6",r:"5.5"}),h.jsx("path",{d:"m6 9.2v-3.2",strokeLinecap:"round",strokeLinejoin:"round"})]})]})})}),P0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},A0={width:"100%",height:"100%"},E0=({className:e})=>h.jsx("div",{style:P0,className:e,children:h.jsxs("svg",{style:A0,focusable:"false",viewBox:"0 0 32 21",role:"img","aria-label":"CVC",children:[h.jsx("title",{children:"CVC"}),h.jsx("g",{fill:"none",fillRule:"evenodd",children:h.jsxs("g",{fill:"#565656",children:[h.jsxs("g",{transform:"translate(0 2)",children:[h.jsx("path",{d:"M21.68 0H2c-.92 0-2 1.06-2 2v15c0 .94 1.08 2 2 2h25c.92 0 2-1.06 2-2V9.47a5.98 5.98 0 0 1-3 1.45V11c0 .66-.36 1-1 1H3c-.64 0-1-.34-1-1v-1c0-.66.36-1 1-1h17.53a5.98 5.98 0 0 1 1.15-9z",opacity:".2"}),h.jsx("path",{d:"M19.34 3H0v3h19.08a6.04 6.04 0 0 1 .26-3z",opacity:".3"})]}),h.jsx("g",{transform:"translate(18)",children:h.jsx("path",{d:"M7 14A7 7 0 1 1 7 0a7 7 0 0 1 0 14zM4.22 4.1h-.79l-1.93.98v1l1.53-.8V9.9h1.2V4.1zm2.3.8c.57 0 .97.32.97.78 0 .5-.47.85-1.15.85h-.3v.85h.36c.72 0 1.21.36 1.21.88 0 .5-.48.84-1.16.84-.5 0-1-.16-1.52-.47v1c.56.24 1.12.37 1.67.37 1.31 0 2.21-.67 2.21-1.64 0-.68-.42-1.23-1.12-1.45.6-.2.99-.73.99-1.33C8.68 4.64 7.85 4 6.65 4a4 4 0 0 0-1.57.34v.98c.48-.27.97-.42 1.44-.42zm4.32 2.18c.73 0 1.24.43 1.24.99 0 .59-.51 1-1.24 1-.44 0-.9-.14-1.37-.43v1.03c.49.22.99.33 1.48.33.26 0 .5-.04.73-.1.52-.85.82-1.83.82-2.88l-.02-.42a2.3 2.3 0 0 0-1.23-.32c-.18 0-.37.01-.57.04v-1.3h1.44a5.62 5.62 0 0 0-.46-.92H9.64v3.15c.4-.1.8-.17 1.2-.17z"})})]})})]})}),j0=({className:e})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:h.jsx("polyline",{points:"15 18 9 12 15 6"})}),V0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},R0={width:"100%",height:"100%"},_0=({className:e})=>h.jsx("div",{style:V0,className:e,children:h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:R0,children:[h.jsx("rect",{x:"1",y:"1",width:"28",height:"18",rx:"2",ry:"2"}),h.jsx("line",{x1:"1",y1:"8",x2:"27",y2:"8"})]})}),M0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},I0={width:"100%",height:"100%"},D0=({className:e})=>h.jsx("div",{style:M0,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",style:I0,children:h.jsx("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:h.jsx("g",{id:"New-Icons",transform:"translate(-80.000000, -280.000000)",fillRule:"nonzero",children:h.jsx("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)",children:h.jsx("g",{id:"Color",transform:"translate(0.000000, 80.000000)",children:h.jsxs("g",{id:"Visa",transform:"translate(40.000000, 0.000000)",children:[h.jsx("rect",{id:"Container",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF",x:"0.25",y:"0.25",width:"23.5",height:"15.5",rx:"2"}),h.jsx("path",{d:"M2.78773262,5.91443732 C2.26459089,5.62750595 1.6675389,5.39673777 1,5.23659312 L1.0280005,5.1118821 L3.76497922,5.1118821 C4.13596254,5.12488556 4.43699113,5.23650585 4.53494636,5.63071135 L5.12976697,8.46659052 L5.31198338,9.32072617 L6.97796639,5.1118821 L8.77678896,5.1118821 L6.10288111,11.2775284 L4.30396552,11.2775284 L2.78773262,5.91443732 L2.78773262,5.91443732 Z M10.0999752,11.2840738 L8.39882877,11.2840738 L9.46284763,5.1118821 L11.163901,5.1118821 L10.0999752,11.2840738 Z M16.2667821,5.26277458 L16.0354292,6.59558538 L15.881566,6.53004446 C15.5737466,6.40524617 15.1674138,6.28053516 14.6143808,6.29371316 C13.942741,6.29371316 13.6415263,6.56277129 13.6345494,6.82545859 C13.6345494,7.11441463 13.998928,7.3048411 14.5939153,7.58725177 C15.5740257,8.02718756 16.0286384,8.56556562 16.0218476,9.26818871 C16.0080799,10.5486366 14.8460128,11.376058 13.0610509,11.376058 C12.2978746,11.3694253 11.5627918,11.2180965 11.163808,11.0475679 L11.4018587,9.66204513 L11.6258627,9.76066195 C12.1788958,9.99070971 12.5428092,10.0889775 13.221984,10.0889775 C13.7117601,10.0889775 14.2368857,9.89837643 14.2435835,9.48488392 C14.2435835,9.21565125 14.0198586,9.01850486 13.3617074,8.7164581 C12.717789,8.42086943 11.8568435,7.92848346 11.8707973,7.04197926 C11.8780532,5.84042483 13.0610509,5 14.7409877,5 C15.3990458,5 15.9312413,5.13788902 16.2667821,5.26277458 Z M18.5277524,9.0974856 L19.941731,9.0974856 C19.8717762,8.78889347 19.549631,7.31147374 19.549631,7.31147374 L19.4307452,6.77964104 C19.3467437,7.00942698 19.1998574,7.38373457 19.2069273,7.37055657 C19.2069273,7.37055657 18.6678479,8.74290137 18.5277524,9.0974856 Z M20.6276036,5.1118821 L22,11.2839865 L20.4249023,11.2839865 C20.4249023,11.2839865 20.2707601,10.5748181 20.221922,10.3581228 L18.0377903,10.3581228 C17.9746264,10.5221933 17.6807607,11.2839865 17.6807607,11.2839865 L15.8957988,11.2839865 L18.4226343,5.62399144 C18.5977072,5.22341512 18.9059917,5.1118821 19.3117663,5.1118821 L20.6276036,5.1118821 L20.6276036,5.1118821 Z",id:"Shape",fill:"#1434CB"})]})})})})})})}),L0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},N0={width:"100%",height:"100%"},O0=({className:e})=>h.jsx("div",{style:L0,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",viewBox:"0 0 24 16",width:"24",style:N0,children:h.jsxs("g",{fill:"none",fillRule:"evenodd",children:[h.jsx("rect",{fill:"#252525",height:"16",rx:"2",width:"24"}),h.jsx("circle",{cx:"9",cy:"8",fill:"#eb001b",r:"5"}),h.jsx("circle",{cx:"15",cy:"8",fill:"#f79e1b",r:"5"}),h.jsx("path",{d:"m12 3.99963381c1.2144467.91220633 2 2.36454836 2 4.00036619s-.7855533 3.0881599-2 4.0003662c-1.2144467-.9122063-2-2.36454837-2-4.0003662s.7855533-3.08815986 2-4.00036619z",fill:"#ff5f00"})]})})}),B0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},q0={width:"100%",height:"100%"},F0=({className:e})=>h.jsx("div",{style:B0,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",style:q0,children:h.jsx("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:h.jsx("g",{id:"New-Icons",transform:"translate(-320.000000, -280.000000)",fillRule:"nonzero",children:h.jsx("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)",children:h.jsx("g",{id:"Color",transform:"translate(0.000000, 80.000000)",children:h.jsxs("g",{id:"Diners-Club",transform:"translate(280.000000, 0.000000)",children:[h.jsx("path",{d:"M21.9972414,15.749927 L21.999381,15.7499362 C22.9544683,15.7581106 23.73806,14.9772525 23.75,14.0041555 L23.7500083,2.00630219 C23.7461702,1.53568921 23.5588633,1.08617106 23.2297297,0.756801782 C22.9014319,0.428268884 22.4589161,0.246148853 21.9972414,0.250070854 L2.00063,0.250061791 C1.54108393,0.246148853 1.09856813,0.428268884 0.77027028,0.756801782 C0.441136651,1.08617106 0.253829819,1.53568921 0.25,2.00426336 L0.249991686,13.9936957 C0.253829819,14.4643086 0.441136651,14.9138268 0.77027028,15.2431961 C1.09856813,15.571729 1.54108393,15.753849 2.00275862,15.749927 L21.9972414,15.749927 Z M21.996203,16.249927 C21.9958359,16.249924 21.9954688,16.249921 21.9951018,16.2499178 L21.9972414,16.249927 L21.996203,16.249927 Z",id:"shape",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF"}),h.jsx("path",{d:"M10.0021142,2.05179033 L10.0021142,2.03579033 L14.0021142,2.03579033 L14.0021142,2.05179033 C17.1375481,2.28122918 19.5642283,4.89197286 19.5642283,8.03579033 C19.5642283,11.1796078 17.1375481,13.7903515 14.0021142,14.0197903 L14.0021142,14.0357903 L10.0021142,14.0357903 L10.0021142,14.0197903 C6.86668021,13.7903515 4.44,11.1796078 4.44,8.03579033 C4.44,4.89197286 6.86668021,2.28122918 10.0021142,2.05179033 Z",id:"shape",fill:"#0165AC"}),h.jsx("path",{d:"M11.6021142,11.4277903 C13.0374002,10.9175027 13.9961556,9.55908923 13.9961556,8.03579033 C13.9961556,6.51249143 13.0374002,5.15407792 11.6021142,4.64379033 L11.6021142,11.4277903 L11.6021142,11.4277903 Z M9.20211417,4.64379033 C7.76682809,5.15407792 6.80807271,6.51249143 6.80807271,8.03579033 C6.80807271,9.55908923 7.76682809,10.9175027 9.20211417,11.4277903 L9.20211417,4.64379033 L9.20211417,4.64379033 Z M10.4021142,13.2357903 C7.53023347,13.2357903 5.20211417,10.907671 5.20211417,8.03579033 C5.20211417,5.16390963 7.53023347,2.83579033 10.4021142,2.83579033 C13.2739949,2.83579033 15.6021142,5.16390963 15.6021142,8.03579033 C15.6021142,10.907671 13.2739949,13.2357903 10.4021142,13.2357903 Z",id:"shape",fill:"#FFFFFF"})]})})})})})})}),K0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},z0={width:"100%",height:"100%"},U0=({className:e})=>h.jsx("div",{style:K0,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",viewBox:"0 0 23 16",width:"23",style:z0,children:h.jsxs("g",{fill:"none",children:[h.jsx("path",{d:"m.20535714 16h4.51785715c1.0278125 0 2.25892857-1.1946667 2.25892857-2.1333333v-13.8666667h-4.51785715c-1.0278125 0-2.25892857 1.19466667-2.25892857 3.2z",fill:"#047ab1"}),h.jsx("path",{d:"m2.76924107 10.816c-.86733559.0001606-1.73039558-.1147397-2.56388393-.3413333v-1.17333337c.64678874.37770431 1.38610045.59084099 2.14598215.61866667.8696875 0 1.35535714-.576 1.35535714-1.36533333v-3.22133334h2.14598214v3.22133334c0 1.25866666-.70026786 2.26133333-3.0834375 2.26133333z",fill:"#fff"}),h.jsx("path",{d:"m8.11160714 16h4.51785716c1.0278125 0 2.2589286-1.1946667 2.2589286-2.1333333v-13.8666667h-4.5178572c-1.02781249 0-2.25892856 1.19466667-2.25892856 3.2z",fill:"#d42d06"}),h.jsx("path",{d:"m8.11160714 6.08c.65508929-.59733333 1.78455357-.97066667 3.61428576-.88533333.9939285.04266666 2.0330357.32 2.0330357.32v1.184c-.5943231-.3394747-1.2623758-.54734656-1.9539732-.608-1.3892411-.11733334-2.23633933.61866666-2.23633933 1.90933333s.84709823 2.0266667 2.23633933 1.92c.6920185-.06606555 1.3596342-.27744592 1.9539732-.61866667v1.17333337s-1.0391072.288-2.0330357.3306666c-1.82973219.0853334-2.95919647-.288-3.61428576-.8853333z",fill:"#fff"}),h.jsx("path",{d:"m16.0178571 16h4.5178572c1.0278125 0 2.2589286-1.1946667 2.2589286-2.1333333v-13.8666667h-4.5178572c-1.0278125 0-2.2589286 1.19466667-2.2589286 3.2z",fill:"#67b637"}),h.jsx("path",{d:"m21.6651786 9.28c0 .8533333-.7002679 1.3866667-1.6377232 1.3866667h-4.0095983v-5.33333337h3.6481697l.2597768.01066667c.8245089.04266667 1.4344196.50133333 1.4344196 1.29066667 0 .61866666-.4179018 1.152-1.1746428 1.28v.032c.8358035.05333333 1.4795982.55466666 1.4795982 1.33333333zm-2.880134-3.104c-.0486104-.00686658-.0976798-.01043129-.1468303-.01066667h-1.3553572v1.344h1.5021875c.2823661-.064.5195536-.30933333.5195536-.672 0-.36266666-.2371875-.608-.5195536-.66133333zm.1694197 2.176c-.059755-.00886168-.1202559-.01243275-.1807143-.01066667h-1.4908929v1.46133334h1.4908929l.1807143-.02133334c.2823661-.064.5195536-.34133333.5195536-.71466666 0-.37333334-.2258929-.64-.5195536-.71466667z",fill:"#fff"})]})})}),$0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},G0={width:"100%",height:"100%"},W0=({className:e})=>h.jsx("div",{style:$0,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"16px",viewBox:"0 0 24 16",version:"1.1",style:G0,children:h.jsx("g",{id:"319",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:h.jsx("g",{id:"New-Icons",transform:"translate(-280.000000, -280.000000)",fillRule:"nonzero",children:h.jsx("g",{id:"Card-Brands",transform:"translate(40.000000, 200.000000)",children:h.jsx("g",{id:"Color",transform:"translate(0.000000, 80.000000)",children:h.jsxs("g",{id:"Discover",transform:"translate(240.000000, 0.000000)",children:[h.jsx("path",{d:"M21.9972414,15.749927 L21.999381,15.7499362 C22.9544683,15.7581106 23.73806,14.9772525 23.75,14.0041555 L23.7500083,2.00630219 C23.7461702,1.53568921 23.5588633,1.08617106 23.2297297,0.756801782 C22.9014319,0.428268884 22.4589161,0.246148853 21.9972414,0.250070854 L2.00063,0.250061791 C1.54108393,0.246148853 1.09856813,0.428268884 0.77027028,0.756801782 C0.441136651,1.08617106 0.253829819,1.53568921 0.25,2.00426336 L0.249991686,13.9936957 C0.253829819,14.4643086 0.441136651,14.9138268 0.77027028,15.2431961 C1.09856813,15.571729 1.54108393,15.753849 2.00275862,15.749927 L21.9972414,15.749927 Z M21.996203,16.249927 C21.9958359,16.249924 21.9954688,16.249921 21.9951018,16.2499178 L21.9972414,16.249927 L21.996203,16.249927 Z",id:"shape",strokeOpacity:"0.2",stroke:"#000000",strokeWidth:"0.5",fill:"#FFFFFF"}),h.jsx("path",{d:"M12.6124138,15.9999283 L21.9972414,15.9999283 C22.5240217,16.0043364 23.0309756,15.7992919 23.4065697,15.4299059 C23.7821638,15.06052 23.9956285,14.5570537 24,14.0302731 L24,11.6716524 C20.4561668,13.7059622 16.6127929,15.1667795 12.6124138,15.9999283 L12.6124138,15.9999283 Z",id:"shape",fill:"#F27712"}),h.jsx("path",{d:"M23.1724138,9.29647999 L22.32,9.29647999 L21.36,8.03027309 L21.2689655,8.03027309 L21.2689655,9.29647999 L20.5737931,9.29647999 L20.5737931,6.1516524 L21.6,6.1516524 C22.4027586,6.1516524 22.8662069,6.48268688 22.8662069,7.07854895 C22.8662069,7.56682481 22.5765517,7.88130757 22.0551724,7.98061792 L23.1724138,9.29647999 Z M22.1462069,7.10337654 C22.1462069,6.79716964 21.9144828,6.63992826 21.4841379,6.63992826 L21.2689655,6.63992826 L21.2689655,7.5916524 L21.4675862,7.5916524 C21.9144828,7.5916524 22.1462069,7.42613516 22.1462069,7.10337654 L22.1462069,7.10337654 Z M18.1406897,6.1516524 L20.1103448,6.1516524 L20.1103448,6.68130757 L18.8358621,6.68130757 L18.8358621,7.38475585 L20.0606897,7.38475585 L20.0606897,7.92268688 L18.8358621,7.92268688 L18.8358621,8.77510068 L20.1103448,8.77510068 L20.1103448,9.30475585 L18.1406897,9.30475585 L18.1406897,6.1516524 Z M15.9062069,9.37923861 L14.4,6.14337654 L15.1613793,6.14337654 L16.1131034,8.26199723 L17.0731034,6.14337654 L17.817931,6.14337654 L16.2951724,9.37923861 L15.9227586,9.37923861 L15.9062069,9.37923861 Z M9.60827586,9.37096274 C8.54896552,9.37096274 7.72137931,8.65096274 7.72137931,7.71579033 C7.72137931,6.8054455 8.56551724,6.06889378 9.62482759,6.06889378 C9.92275862,6.06889378 10.1710345,6.12682481 10.4772414,6.25923861 L10.4772414,6.98751447 C10.2453534,6.75969251 9.93335245,6.63192067 9.60827586,6.6316524 C8.9462069,6.6316524 8.44137931,7.1116524 8.44137931,7.71579033 C8.44137931,8.35303171 8.93793103,8.80820412 9.64137931,8.80820412 C9.95586207,8.80820412 10.1958621,8.70889378 10.4772414,8.46061792 L10.4772414,9.18889378 C10.1627586,9.32130757 9.89793103,9.37096274 9.60827586,9.37096274 L9.60827586,9.37096274 Z M7.5062069,8.33647999 C7.5062069,8.94889378 7.00137931,9.37096274 6.27310345,9.37096274 C5.74344828,9.37096274 5.36275862,9.18889378 5.04,8.77510068 L5.49517241,8.38613516 C5.65241379,8.66751447 5.91724138,8.80820412 6.24827586,8.80820412 C6.56275862,8.80820412 6.7862069,8.6178593 6.7862069,8.36958343 C6.7862069,8.22889378 6.72,8.12130757 6.57931034,8.03854895 C6.42504922,7.96369158 6.26441119,7.90275992 6.09931034,7.85647999 C5.44551724,7.64958343 5.22206897,7.42613516 5.22206897,6.98751447 C5.22206897,6.47441102 5.70206897,6.0854455 6.33103448,6.0854455 C6.72827586,6.0854455 7.08413793,6.20958343 7.38206897,6.44130757 L7.01793103,6.85510068 C6.87360928,6.69688076 6.66932728,6.60675635 6.45517241,6.60682481 C6.15724138,6.60682481 5.94206897,6.75579033 5.94206897,6.95441102 C5.94206897,7.11992826 6.0662069,7.21096274 6.48,7.3516524 C7.27448276,7.59992826 7.5062069,7.8316524 7.5062069,8.34475585 L7.5062069,8.33647999 Z M4.08827586,6.1516524 L4.78344828,6.1516524 L4.78344828,9.30475585 L4.08827586,9.30475585 L4.08827586,6.1516524 Z M1.8537931,9.30475585 L0.827586207,9.30475585 L0.827586207,6.1516524 L1.8537931,6.1516524 C2.97931034,6.1516524 3.75724138,6.79716964 3.75724138,7.72406619 C3.75724138,8.19579033 3.52551724,8.64268688 3.12,8.94061792 C2.77241379,9.18889378 2.38344828,9.30475585 1.84551724,9.30475585 L1.8537931,9.30475585 Z M2.66482759,6.9378593 C2.43310345,6.75579033 2.16827586,6.68958343 1.71310345,6.68958343 L1.52275862,6.68958343 L1.52275862,8.77510068 L1.71310345,8.77510068 C2.16,8.77510068 2.44137931,8.69234206 2.66482759,8.52682481 C2.90482759,8.32820412 3.04551724,8.03027309 3.04551724,7.72406619 C3.04551724,7.4178593 2.90482759,7.12820412 2.66482759,6.9378593 Z",id:"shape",fill:"#000000"}),h.jsx("path",{d:"M12.4137931,6.06889378 C11.5034483,6.06889378 10.7586207,6.79716964 10.7586207,7.69923861 C10.7586207,8.65923861 11.4703448,9.37923861 12.4137931,9.37923861 C13.3406897,9.37923861 14.0689655,8.65096274 14.0689655,7.72406619 C14.0689655,6.79716964 13.3489655,6.06889378 12.4137931,6.06889378 Z",id:"shape",fill:"#F27712"})]})})})})})})}),Y0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},H0={width:"100%",height:"100%"},Z0=({className:e})=>h.jsx("div",{style:Y0,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 16",style:H0,children:h.jsxs("g",{fill:"none",fillRule:"evenodd",children:[h.jsx("rect",{fill:"#016fd0",height:"16",rx:"2",width:"24"}),h.jsx("path",{d:"m13.7640663 13.3938564v-5.70139231l10.1475359.00910497v1.57489503l-1.1728619 1.25339231 1.1728619 1.2648839v1.6083094h-1.8726188l-.9951823-1.0981657-.9881105 1.1023204z",fill:"#fffffe"}),h.jsx("path",{d:"m14.4418122 12.7687956v-4.448884h3.7722872v1.02488398h-2.550895v.69569062h2.4900774v1.0078232h-2.4900774v.6833149h2.550895v1.0371713z",fill:"#016fd0"}),h.jsx("path",{d:"m18.1952707 12.7687956 2.087337-2.2270055-2.0874254-2.2217901h1.6156464l1.2754917 1.41003315 1.2791161-1.41003315h1.5461657v.03500552l-2.0428729 2.18678458 2.0428729 2.1638895v.063116h-1.5617237l-1.2981216-1.4241768-1.2847735 1.4241768z",fill:"#016fd0"}),h.jsx("path",{d:"m14.2373481 2.6319558h2.4460552l.8591381 1.95085083v-1.95085083h3.0198453l.5207514 1.46156906.5225194-1.46156906h2.3059447v5.70139227h-12.1865193z",fill:"#fffffe"}),h.jsxs("g",{fill:"#016fd0",children:[h.jsx("path",{d:"m14.7004641 3.25135912-1.9740111 4.44517127h1.3539006l.3724199-.89016575h2.0179447l.3721547.89016575h1.3875801l-1.96579-4.44517127zm.1696353 2.55743646.592-1.41507182.5915581 1.41507182z"}),h.jsx("path",{d:"m18.2119779 7.69573481v-4.44508288l1.903116.00654144.9792707 2.73272928.9856354-2.73927072h1.8316022v4.44508288l-1.1786077.01043094v-3.05334807l-1.1125746 3.04291713h-1.0758011l-1.1356464-3.05334807v3.05334807z"})]})]})})}),X0={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},J0={width:"100%",height:"100%"},Q0=({className:e})=>h.jsx("div",{style:X0,className:e,children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",viewBox:"0 0 24 16",width:"24",style:J0,children:h.jsxs("g",{fill:"none",children:[h.jsx("path",{d:"m4.54588254.00006676h5.79377466c.8087588 0 1.3117793.72566459 1.1231113 1.61890981l-2.69741608 12.74856503c-.19036262.8901361-1.00010994 1.6164225-1.80943362 1.6164225h-5.79320976c-.80762905 0-1.31177937-.7262864-1.12311135-1.6164225l2.69854581-12.74856503c.18866803-.89324522.9979917-1.61890981 1.80773904-1.61890981",fill:"#dd2423"}),h.jsx("path",{d:"m9.85756516.00006676h6.66269264c.8086174 0 .4439911.72566459.2537697 1.61890981l-2.6969924 12.74856503c-.1892329.8901361-.1302036 1.6164225-.9405158 1.6164225h-6.66269248c-.81031221 0-1.31177939-.7262864-1.12141672-1.6164225l2.69685116-12.74856503c.19149238-.89324522.99912144-1.61890981 1.8083039-1.61890981",fill:"#16315e"}),h.jsx("path",{d:"m16.2559813.00006676h5.7937745c.8098886 0 1.3129092.72566459 1.1226878 1.61890981l-2.6969924 12.74856503c-.1903626.8901361-1.0006749 1.6164225-1.8104222 1.6164225h-5.7910915c-.8103122 0-1.3129091-.7262864-1.1231113-1.6164225l2.697416-12.74856503c.1886681-.89324522.9974268-1.61890981 1.8077391-1.61890981",fill:"#036862"}),h.jsx("path",{d:"m6.05901135 4.08561434c-.59580116.00668457-.77175951 0-.8279645-.01461278-.02160646.11301588-.42365577 2.15460824-.42478553 2.15631824-.08656699.4130443-.14955043.7074763-.36349659.89759795-.12144798.1105286-.26323144.1638497-.42760986.1638497-.26421996 0-.41814822-.1444178-.44399122-.41832975l-.00494264-.09405035s.08049458-.55326485.08049458-.55637395c0 0 .42196112-1.86048711.49751306-2.10641713.00395412-.01399096.00508387-.02129736.00607239-.02798193-.82132725.00792821-.9669236 0-.97695012-.01461278-.00550753.02005371-.025843.13540142-.025843.13540142l-.43085788 2.09693437-.03699927.1778407-.07159782.5817131c0 .1725552.03078565.31339755.09207452.4324762.19629382.37760055.75622549.4341862 1.07297875.4341862.40812169 0 .79096525-.09544945 1.04967767-.26971465.44907509-.2921002.56656897-.74867195.67135315-1.15440985l.04857917-.20815445s.43467082-1.93230737.5085281-2.18367833c.00282441-.01399096.00395413-.02129736.00776704-.02798193zm1.47893982 1.55881086c-.10478422 0-.29627659.0279819-.46828081.12078865-.0624186.0352883-.12144796.07601755-.18372539.11659135l.056205-.22338905-.03078563-.03762015c-.36476761.08130305-.44639193.0921849-.78333945.14441785l-.02824374.0206755c-.03911752.3570805-.07385733.6255515-.21888878 1.32743145-.05521646.25867735-.11255121.519842-.17002718.7778975l.01553403.03280105c.34527946-.0200537.45006363-.0200537.75015309-.0146128l.02428961-.0290701c.03812903-.21499445.04307165-.2653619.12752039-.70079175.03968242-.20644445.1224365-.66006255.16324868-.8215804.07498704-.038242.14898558-.07586215.21959486-.07586215.16819135 0 .14771465.1615179.14121858.22587635-.00720213.1080413-.06849101.4609245-.13133325.76390655l-.04194194.19556255c-.02923223.14441785-.06128888.2847938-.09052111.427968l.01270966.02860375c.34033679-.0200537.44413246-.0200537.73476028-.0146128l.0341749-.0290701c.0525333-.3357831.06792611-.42563615.16113038-.9145426l.04688457-.22463265c.09108601-.43962715.13684082-.6625498.06792616-.8441214-.07286879-.2034908-.24769738-.2526146-.40826291-.2526146zm1.65214439.4602871c-.18090101.038242-.29627659.0637366-.41094606.08021485-.11368097.02005375-.22453757.038242-.39936616.06498025l-.01383941.0138355-.01270966.01103735c-.01821719.14332965-.0309269.26722735-.05507525.41288885-.02047669.150636-.05196844.3217921-.10323077.56772215-.03968243.18825615-.06015913.25385825-.08275412.32008215-.0220301.06622385-.04631967.1305823-.09094476.31572935l.01045019.0171001.00875554.01570095c.1633899-.00855005.27029237-.0146128.38016043-.01570095.10972684-.00435275.22340776 0 .39936611.00108815l.01539286-.0138355.01652257-.0152346c.02541932-.1669588.02923224-.21188535.04476626-.29334385.01539282-.0873658.04194194-.20830985.10704369-.53134565.03078568-.1517242.06510179-.30298205.09701718-.4578154.03318641-.1542115.06792612-.30609115.10097127-.45781535l-.00494263-.0183437zm.00385525-.620608c-.1643784-.10679765-.45288796-.07290845-.64706354.0746185-.19361063.14457325-.21564072.34977405-.05182718.4579708.16155403.10384405.45119334.0729085.64367421-.0758621.19318708-.14768235.21733543-.3510177.05521651-.4567272zm.99410809 2.473369c.3325698 0 .6734715-.1008904.9300657-.400297.1974235-.2428209.2879446-.60409865.3192952-.7528692.1021011-.4931037.0225949-.7233328-.0772466-.8635533-.1516687-.21375085-.4197016-.28230655-.697761-.28230655-.1672028 0-.5654392.01818825-.87654364.33391765-.22340786.22774175-.32663863.5367866-.38891601.83308405-.06284224.3018939-.13514621.84536505.31887154 1.0476122.14008884.0662239.34203141.08441215.47223481.08441215zm-.0259841-1.10948335c.0766817-.3734032.1672028-.6868008.3982364-.6868008.1810422 0 .1941755.23318275.1136809.6078296-.0144042.0831685-.0804945.3923688-.1698859.5240393-.0624186.09715945-.1362759.15607695-.2179003.15607695-.0242896 0-.1687562 0-.1710157-.23613635-.0011297-.11659135.0204767-.23567.0468846-.3650087zm2.1066988 1.06146325.0259841-.0290701c.0368581-.21499445.0429305-.2655174.1245549-.70079175.0408121-.20644445.1252608-.66006255.1649433-.82158045.0751282-.0383974.1478558-.07601755.2207245-.07601755.1670616 0 .1467262.1615179.140089.2258763-.0060725.1081968-.0673613.4609245-.1313334.76390655l-.0396824.1955626c-.030362.14457325-.0634071.2847938-.0926394.42812345l.0127097.02860375c.3414665-.02005375.441308-.02005375.7336305-.0146128l.0353047-.0290701c.0512623-.33593855.0651017-.42579165.1611304-.9145426l.0457548-.2247881c.0915096-.43962715.1378292-.66239435.0700444-.84396595-.0749871-.2034908-.2509454-.2526146-.4092515-.2526146-.1049254 0-.2974063.02782645-.468422.12078865-.0611476.0352883-.1224365.0758621-.1825956.11659135l.0523921-.22338905-.0281025-.0377756c-.3646263.0814585-.4479453.09234035-.7844692.1445733l-.025843.0206755c-.0408122.35708045-.0739986.62539605-.21903 1.32743145-.0552164.25867735-.1125512.51984195-.1698859.7778975l.0153928.03280105c.3458442-.02005375.4490751-.02005375.7485997-.0146128zm2.5088186.01453505c.0214652-.1153477.1489856-.7990394.1501153-.7990394 0 0 .1085971-.50165375.1152345-.519842 0 0 .0341748-.0522329.0683497-.07290845h.0502738c.4743532 0 1.0099953 0 1.4298381-.3399804.2856852-.2331827.4809905-.57751585.5681223-.99600105.022595-.1026004.0392588-.22463269.0392588-.34666496 0-.16027425-.0292322-.3188385-.1136809-.44273624-.2140874-.32972035-.6404262-.3357831-1.132573-.33827039-.0015534 0-.2426136.00248729-.2426136.00248729-.629976.00855003-.8826161.00606275-.9864117-.00792821-.0087556.05052291-.0252782.14037599-.0252782.14037599s-.2256673 1.15130077-.2256673 1.15316622c0 0-.5400198 2.4477966-.5654392 2.5631443.5500464-.00730635.7755725-.00730635.8704714.0041973zm.4181482-2.0451678s.2399304-1.14896892.2388007-1.14461618l.0077669-.05891749.0033893-.04492654.0958874.01088185s.4948299.046792.5064099.04803565c.1953052.0831685.2757998.29754113.2195948.57736036-.0512623.2557237-.2019425.4707182-.3955532.5745622-.1594358.0879876-.3547411.095294-.5559775.095294h-.1302035zm1.4938667.99045135c-.0634072.2975411-.136276.8410123.3154822 1.0347094.1440429.0674675.2731167.0875212.4043088.08021485.1385355-.00823915.2669031-.08472305.3858092-.1947853-.0107326.04523745-.0214652.0904749-.0321978.1358678l.0204766.0290701c.324944-.01507915.4257741-.01507915.7778319-.0121255l.0319154-.0267383c.0514036-.332674.0998416-.65570975.2334344-1.2921431.0651017-.30484755.1300622-.6067414.1968587-.9103453l-.0104501-.03342285c-.3634967.0741521-.4606551.09000855-.8103124.1445733l-.026549.0237846c-.0035305.0309356-.0072021.0606275-.0105914.09031945-.0543692-.0966931-.1331691-.17923975-.2547583-.2306954-.1554817-.0673121-.5206729.01943185-.8346018.33407305-.2205834.2246327-.3264973.53243385-.3866564.8276432zm.7634275.01818825c.0778115-.3667187.1672028-.67700715.3988014-.67700715.1464436 0 .2235489.14877055.2078737.40247335-.0124272.06327025-.025843.1299605-.0418008.20535625-.0231597.10897405-.0482967.21701535-.0727275.32521215-.0248545.07399665-.0538043.143796-.0855784.1902771-.0595943.09296215-.2013777.150636-.2830021.150636-.0231599 0-.1660731 0-.1710157-.23193905-.0011298-.11550315.0204767-.23442635.0474494-.36500865zm3.9866711-1.21085565-.0281024-.0352883c-.3596838.08021485-.4247856.09296215-.755237.142086l-.0242897.02673825c-.0011296.00435275-.0021182.01103735-.0038128.0171001l-.0011298-.00606275c-.2460027.6247742-.2388006.4899946-.4390485.98185465-.0011298-.02238555-.0011298-.0363765-.0022595-.06016115l-.0501327-1.0662668-.0314917-.0352883c-.3767711.08021485-.3856679.09296215-.7336305.142086l-.0271139.02673825c-.003813.01274735-.003813.0267383-.0060724.0419729l.0022594.00544095c.0434954.2446864.0330452.19012165.0766818.5762722.0203354.1894998.0474494.3800878.0677848.5672558.0343162.3132421.0535219.4674536.0954638.94547815-.2349878.4268798-.2906279.5883977-.51686.9630446l.0015534.0037309-.1592946.27733195c-.0182171.0292256-.0347397.0492793-.0578996.05782935-.0254193.0138355-.0584644.01632275-.1043605.01632275h-.0882616l-.131192.4803564.4500635.00855005c.26422-.00124365.4302931-.1372669.5196844-.32008215l.283002-.53383295h-.004519l.0297972-.03762015c.1903626-.4511308 1.6384179-3.1855867 1.6384179-3.1855867zm-4.7501128 6.3087581h-.1909276l.7066579-2.57293795h.2344228l.0744221-.265051.0072022.29474295c-.0087556.1821934.121448.3437113.4634794.31697305h.3955532l.1361347-.49543555h-.1488443c-.0855785 0-.1252609-.02378465-.1203182-.0747739l-.0072022-.299873h-.7325008v.00155455c-.2368235.00544095-.9440462.0250283-1.0872418.0670012-.1732752.0491238-.3558709.1936971-.3558709.1936971l.071739-.26536195h-.6851925l-.1427719.52652655-.7161194 2.61226815h-.1389591l-.136276.4918601h1.3647364l-.0457548.1640051h.6724828l.0446251-.1640051h.1886681zm-.5599316-2.0501423c-.1097268.03342285-.313929.1347796-.313929.1347796l.1816071-.65757525h.5443977l-.1313333.47911275s-.1681914.01088185-.2807425.0436829zm.0104502.9394154s-.1710158.0236292-.283567.0516111c-.1108566.0369984-.3187303.1535897-.3187303.1535897l.1875382-.6843135h.5472221zm-.3050322 1.1167897h-.5460922l.158306-.5775158h.5443976zm1.315112-1.5959024h.7871525l-.1131162.4032506h-.7976024l-.1197535.4408708h.6979023l-.5284398.8190931c-.0369994.0601612-.0701858.0814585-.1070437.0984031-.0369994.0206755-.0855785.0449265-.1417835.0449265h-.1936107l-.133028.4828437h.5064098c.2632315 0 .4187131-.131826.5335239-.3048476l.3623669-.5459584.0778115.5543531c.0165225.1038439.0843074.1646269.1302034.1882561.0506975.0279819.1030897.0760176.1770882.0831685.0793648.0037309.1366995.0066846.1748285.0066846h.2488272l.1494092-.5403621h-.0981469c-.0563463 0-.1533633-.0104155-.1698859-.0298474-.0165226-.0236292-.0165226-.0600057-.0254194-.1153477l-.0789412-.5555967h-.3232494l.1417836-.1857688h.796049l.1224365-.4408708h-.7370197l.1148107-.4032506h.7347603l.1362759-.497301h-2.1905826zm-6.6483163 1.7081877.1837253-.6728098h.7550958l.1379705-.5004101h-.7558018l.1153756-.4141325h.7385731l.1368408-.4845537h-1.84798632l-.13401641.4845537h.41984283l-.1119863.4141325h-.42097264l-.13952389.5089601h.41970155l-.24487301.8901361c-.03304514.117835.01553408.1627615.04631971.2174817.03149175.0533211.06340718.0886094.13514621.1086631.07399857.0181883.12469597.0290701.19361067.0290701h.8512656l.1516688-.554353-.3773361.0570521c-.0728688 0-.2746701-.0096382-.25264-.0837903zm.0866093-3.22084395-.1913512.38070965c-.0409534.08316845-.0778114.1347796-.1109978.1585642-.0292322.02005375-.0871318.0284483-.1710157.0284483h-.0998415l-.13345158.48704095h.33158128c.1594357 0 .2818722-.0643584.3403368-.09653765.0628422-.0369983.0793647-.0158564.1279439-.0674675l.1119864-.1067977h1.0354146l.1374057-.50709465h-.7579202l.1323219-.2768656zm1.5286064 3.23062205c-.0176524-.027982-.0049427-.0772612.0220301-.1798616l.283002-1.0311339h1.0067472c.1467262-.0023318.25264-.0041973.3215547-.0096382.0739985-.0085501.1544932-.0376202.2421899-.0898531.0905212-.0547202.1368408-.1123941.1759583-.178618.0436366-.0660684.113681-.2106417.1738401-.4335643l.3557296-1.3048905-1.044735.0066846s-.3216959.0522329-.4633381.10990675c-.1429132.06435845-.3471154.2440646-.3471154.2440646l.0943341-.3577023h-.645369l-.9035164 3.29860265c-.0320566.1280949-.0535218.2210571-.0584645.2768655-.0016946.0601612.0689147.1197005.1146695.164627.0540867.0449266.1340164.0376202.2106981.0449266.0806358.0066846.1953053.0108818.3536113.0108818h.4959597l.1522336-.5658567-.4439912.0461702c-.0474494 0-.0817655-.027982-.0960286-.0516111zm.4876277-1.9074346h1.0574447l-.06722.2319391c-.0094616.0054409-.0320566-.0115037-.1396652.0024873h-.9156612zm.2118279-.77789745h1.0663414l-.0766816.27935285s-.5025969-.0054409-.5830915.01088185c-.3541763.06746755-.5610614.27577745-.5610614.27577745zm.802065 1.78653705c-.0087555.0346665-.0225949.0558084-.0419418.0716648-.0214654.0152346-.0562051.0206755-.1080323.0206755h-.1506803l.0088968-.2824619h-.626728l-.0254193 1.380908c-.0009886.0996467.007767.1573206.0739985.2034908.0662315.0576738.2702923.0649802.5449624.0649802h.392729l.1417834-.5168883-.3418902.0206755-.1136809.0073064c-.0155341-.0073064-.030362-.013991-.0468846-.0321792-.0144043-.015701-.0386939-.0060627-.0347398-.1057095l.0026831-.3539713.3585541-.0163228c.1936107 0 .2763648-.0693331.346974-.1354015.0673612-.0632702.0893913-.1360232.1148107-.2344264l.0601592-.3133975h-.4927118z",fill:"#fefefe"})]})})}),e1={width:30,height:20,display:"flex",alignItems:"center",justifyContent:"center"},t1={width:"100%",height:"100%"},n1=({className:e})=>h.jsx("div",{style:e1,className:e,children:h.jsxs("svg",{width:"30",height:"20",viewBox:"0 0 30 20",xmlns:"http://www.w3.org/2000/svg",fill:"rgb(220 38 38)",role:"presentation",style:t1,children:[h.jsxs("g",{clipPath:"url(#clip0_184_11820)",children:[h.jsx("path",{opacity:"0.74",d:"M26.2061 0.00488281C28.3194 0.112115 30 1.85996 30 4V13.335L28.5 10.623V8H27.0488L25.9736 6.05664C25.744 5.64161 25.4595 5.2894 25.1367 5H28.5V4C28.5 2.61929 27.3807 1.5 26 1.5H4C2.61929 1.5 1.5 2.61929 1.5 4V5H19.8643C19.608 5.22972 19.3755 5.49872 19.1758 5.80762L19.0264 6.05664L17.9512 8H1.5V16C1.5 17.3807 2.61929 18.5 4 18.5H13.0371C13.1062 19.0302 13.2775 19.5408 13.5391 20H4L3.79395 19.9951C1.7488 19.8913 0.108652 18.2512 0.00488281 16.2061L0 16V4C0 1.85996 1.68056 0.112115 3.79395 0.00488281L4 0H26L26.2061 0.00488281Z"}),h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7762 7.0252C21.5325 5.65827 23.4673 5.65826 24.2235 7.0252L29.743 17.0027C30.4843 18.3434 29.5319 19.9995 28.0194 19.9998H16.9803C15.4679 19.9995 14.5155 18.3434 15.2567 17.0027L20.7762 7.0252ZM22.4999 15.4998C21.8095 15.4998 21.2499 16.0595 21.2499 16.7498C21.2499 17.4402 21.8095 17.9998 22.4999 17.9998C23.1902 17.9998 23.7499 17.4402 23.7499 16.7498C23.7499 16.0595 23.1902 15.4998 22.4999 15.4998ZM22.4999 8.99981C21.9476 8.99981 21.4999 9.44753 21.4999 9.99981V12.9998C21.4999 13.5521 21.9476 13.9998 22.4999 13.9998C23.0522 13.9998 23.4999 13.5521 23.4999 12.9998V9.99981C23.4999 9.44753 23.0522 8.99981 22.4999 8.99981Z"})]}),h.jsx("defs",{children:h.jsx("clipPath",{id:"clip0_184_11820",children:h.jsx("rect",{width:"30",height:"20"})})})]})}),r1={cvcIcon:"_cvcIcon_1yx89_1"},Fa=f.createContext(null),xt=()=>f.useContext(Fa),i1=({children:e,styles:t})=>h.jsx(Fa.Provider,{value:t||null,children:e});var K=(e=>(e.Invalid="invalid",e.Empty="empty",e.Incomplete="incomplete",e.Unsupported="unsupported",e.Expired="expired",e))(K||{}),W=(e=>(e.Visa="visa",e.Mastercard="mastercard",e.AmericanExpress="american-express",e.Discover="discover",e.JCB="jcb",e.DinersClub="diners-club",e.UnionPay="unionpay",e.Maestro="maestro",e))(W||{});const Yt=[{name:"Visa",type:"visa",pattern:/^4/,minLength:16,maxLength:16},{name:"MasterCard",type:"mastercard",pattern:/^5[1-5]/,minLength:16,maxLength:16},{name:"American Express",type:"american-express",pattern:/^3[47]/,minLength:15,maxLength:15},{name:"Discover",type:"discover",pattern:/^6(?:011|5[0-9]{2})/,minLength:16,maxLength:16},{name:"JCB",type:"jcb",pattern:/^(?:2131|1800|35\d{3})/,minLength:15,maxLength:16},{name:"Diners Club",type:"diners-club",pattern:/^3(?:0[0-5]|[68][0-9])/,minLength:14,maxLength:16},{name:"Union Pay",type:"unionpay",pattern:/^62/,minLength:16,maxLength:19},{name:"Maestro",type:"maestro",pattern:/^(50[^69]|5[68]|5018|5020|5038|6[237]|6304|6759|6761|6763)/,minLength:12,maxLength:19}],Ka=e=>Yt.find(t=>t.pattern.test(e))||null,s1=e=>Yt.filter(t=>t.pattern.test(e)),a1=e=>{let t=0,n=!1;for(let r=e.length-1;r>=0;r--){let i=parseInt(e[r]);n&&(i*=2,i>9&&(i-=9)),t+=i,n=!n}return t%10===0},za=(e,t)=>{const n=e.replace(/\D/g,"");if(!n)return{isValid:!1,cardType:null,error:K.Empty};if(!/^\d+$/.test(n))return{isValid:!1,cardType:null,error:K.Invalid};const r=Ka(n);if(r){if(n.length<r.minLength||n.length>r.maxLength)return{isValid:!1,cardType:r.name,error:K.Incomplete}}else if(n.length<16)return{isValid:!1,cardType:null,error:K.Incomplete};return r&&t&&!t.includes(r.type)?{isValid:!1,cardType:r.name,error:"unsupported"}:a1(n)?{isValid:!0,cardType:r?.name||null,error:null}:{isValid:!1,cardType:r?.name||null,error:K.Invalid}},Ua=(e,t="")=>{const n=Ie.getTypeInfo(t),r=!e,i=e.length<(n?.code.size||3);return!r&&!i?null:r?K.Empty:K.Incomplete},o1=({onChange:e,onError:t,id:n,value:r,isTouchSubmit:i,disabled:s,cardType:a=""})=>{const o=Me(),l=xt(),[u,c]=f.useState(""),[d,p]=f.useState(!0),[m,g]=f.useState(!1),b=(i||m)&&(!!u||d);f.useEffect(()=>{b?t(u,d):t("",!1)},[b,u,d,t]);const v=C=>{const S=Ua(C,a);if(S){if(S===K.Empty)c(""),p(!0);else{const w=S===K.Incomplete?o.card.cvc.error.incomplete:o.card.cvc.error.invalid;c(w),p(!1)}return}p(!1),c("")},T=C=>{if(s)return;const{value:S}=C.currentTarget;c(""),p(!1),m||g(!0);const w=an(S,a),k=Ie.getTypeInfo(a);w.length===k?.code.size&&v(w),e({value:w,isValid:Ua(w,a)===null})};return h.jsx(Gt,{id:n,autoComplete:"cc-exp",value:r,disabled:s,placeholder:o.card.cvc.placeholder,onChange:T,onBlur:()=>v(r),styles:l?.card?.input,endContent:b?h.jsx(Wt,{}):h.jsx(E0,{className:r1.cvcIcon})})},$a=e=>{const t=!e,n=e.length<7,r=new Date,[i,s]=e.split(" / ");r.setFullYear(2e3+parseInt(s),parseInt(i)-1,31);const a=r.getTime()<Date.now();return!t&&!n&&!a?null:t?K.Empty:n?K.Incomplete:r.getFullYear()===new Date().getFullYear()?"dateExpired":"expired"},l1=({onChange:e,onError:t,id:n,value:r,isTouchSubmit:i,disabled:s})=>{const a=Me(),o=xt(),[l,u]=f.useState(""),[c,d]=f.useState(!0),[p,m]=f.useState(!1),y=(i||p)&&(!!l||c);f.useEffect(()=>{y?t(l,c):t("",!1)},[y,l,c,t]);const b=T=>{const C=$a(T);if(C){if(C===K.Empty)u(""),d(!0);else{let S=a.card.expiry.error.invalid;C==="expired"?S=a.card.expiry.error.expired.replace("{date}","year"):C==="dateExpired"?S=a.card.expiry.error.expired.replace("{date}","date"):C===K.Incomplete&&(S=a.card.expiry.error.incomplete),d(!1),u(S)}return}d(!1),u("")},v=T=>{if(s)return;const{value:C}=T.currentTarget;u(""),d(!1),p||m(!0);const S=zo(C,r);S.length===7&&b(S),e({value:S,isValid:$a(S)===null})};return h.jsx(Gt,{id:n,autoComplete:"cc-exp",value:r,disabled:s,placeholder:a.card.expiry.placeholder||"MM / YY",onChange:v,onBlur:()=>b(r),styles:o?.card?.input,endContent:y?h.jsx(Wt,{}):null})},Ga=e=>e?null:K.Empty,c1=({onChange:e,value:t,isTouchSubmit:n,disabled:r})=>{const i=f.useId(),s=Me(),a=xt(),[o,l]=f.useState(""),[u,c]=f.useState(!0),[d,p]=f.useState(!1),m=n||d,g=v=>{if(Ga(v)){l(""),c(!0);return}c(!1),l("")},y=v=>{if(r)return;const{value:T}=v.currentTarget;l(""),c(!1),d||p(!0),e({value:T,isValid:Ga(T)===null})},b=m&&(!!o||u);return h.jsx(Gt,{id:i,label:s.card.name.label,labelError:b&&u?s.card.name.error.required:void 0,autoComplete:"cc-name",value:t,disabled:r,placeholder:s.card.name.placeholder,error:b&&!u?o:void 0,onChange:y,onBlur:()=>g(t),styles:a?.card?.input,endContent:b?h.jsx(Wt,{}):null})},Wa=Yt.map(e=>e.type),Re={iconContainer:"_iconContainer_29xfy_1"},u1=({cardTypes:e,supportedCardTypes:t})=>e.filter(n=>t.includes(n)).slice(0,3).map(n=>{switch(n){case W.Visa:return h.jsx("span",{className:Re.iconContainer,children:h.jsx(D0,{})},n);case W.Maestro:case W.Mastercard:return h.jsx("span",{className:Re.iconContainer,children:h.jsx(O0,{})},n);case W.DinersClub:return h.jsx("span",{className:Re.iconContainer,children:h.jsx(F0,{})},n);case W.JCB:return h.jsx("span",{className:Re.iconContainer,children:h.jsx(U0,{})},n);case W.AmericanExpress:return h.jsx("span",{className:Re.iconContainer,children:h.jsx(Z0,{})},n);case W.Discover:return h.jsx("span",{className:Re.iconContainer,children:h.jsx(W0,{})},n);case W.UnionPay:return h.jsx("span",{className:Re.iconContainer,children:h.jsx(Q0,{})},n);default:return null}}),d1=({onChange:e,value:t,disabled:n,isTouchSubmit:r,supportedCardTypes:i})=>{const s=f.useId(),a=Me(),o=xt(),[l,u]=f.useState(Wa),[c,d]=f.useState(""),[p,m]=f.useState(!0),[g,y]=f.useState(!1),b=r||g,v=S=>{const{isValid:w,error:k}=za(S,i);if(!w)return k===K.Empty?(d(""),m(!0)):k===K.Unsupported?(d(a.card.number.error.unsupported),m(!1)):(d(k===K.Incomplete?a.card.number.error.incomplete:a.card.number.error.invalid),m(!1)),!1;m(!1),d("")},T=S=>{if(n)return;const{value:w}=S.currentTarget;d(""),m(!1),g||y(!0);const k=s1(w).map(V=>V.type),E=Ka(w),P=Ko(w,E?.type||"");P.replace(/\D/g,"").length===(E?.maxLength||16)&&v(P),u(k.length?k:Wa),e({card:P,cardType:E?.type||"",cardTypes:k,isValid:za(P).isValid})},C=b&&!n&&(!!c||p);return h.jsx(Gt,{id:s,label:a.card.number.label,labelError:C&&p?a.card.number.error.required:void 0,autoComplete:"cc-number",value:t,disabled:n,placeholder:"1234 1234 1234 1234",error:C&&!p?c:void 0,onChange:T,onBlur:()=>v(t),styles:o?.card?.input,endContent:C?h.jsx(n1,{}):h.jsx(u1,{cardTypes:l,supportedCardTypes:i||[]})})},Ht={container:"_container_1yamy_1",iconContainer:"_iconContainer_1yamy_5",icon:"_icon_1yamy_5",title:"_title_1yamy_15"},h1=({title:e})=>h.jsxs("div",{className:Ht.container,children:[h.jsx("div",{className:Ht.iconContainer,children:h.jsx(Wt,{className:Ht.icon})}),h.jsx("div",{className:Ht.title,children:e})]}),Ya={svg:"_svg_1kkac_1",sr:"_sr_1kkac_5"},wr=({className:e})=>h.jsxs("div",{role:"status",className:e,children:[h.jsxs("svg",{"aria-hidden":"true",className:Ya.svg,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),h.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),h.jsx("span",{className:Ya.sr,children:"Loading..."})]}),p1=({isFetching:e,isFail:t,supportedCardTypes:n,onSubmit:r})=>{const i=Me(),s=xt(),[a,o]=f.useState({value:"",isValid:!1}),l=f.useId(),[u,c]=f.useState(""),[d,p]=f.useState(!1),[m,g]=f.useState({value:"",isValid:!1}),y=f.useId(),[b,v]=f.useState(""),[T,C]=f.useState(!1),[S,w]=f.useState({value:"",isValid:!1}),[k,E]=f.useState(""),[P,V]=f.useState({value:"",isValid:!1}),[M,q]=f.useState(!1),te=({card:_,cardType:I,isValid:J})=>{w({value:_,isValid:J}),E(I);const x=an(a.value,I);o({value:x,isValid:a.isValid})},Y=({value:_,isValid:I})=>{const J=an(_,k);o({value:J,isValid:I})},U=_=>{if(_.preventDefault(),!(S.isValid&&m.isValid&&a.isValid&&P.isValid))return;const J=/\s/g;r({number:S.value.replace(J,""),expiry:m.value.replace(J,""),cvc:a.value,name:P.value,cardBrand:k})},R=(_,I)=>{C(I),v(I?i.card.expiry.error.required:_)},ne=(_,I)=>{p(I),c(I?i.card.cvc.error.required:_)};return h.jsxs("form",{onSubmit:U,className:Pt.card,children:[h.jsx(d1,{value:S.value,onChange:te,isTouchSubmit:M,supportedCardTypes:n,disabled:e}),h.jsxs("div",{className:Pt.cardDataContainer,children:[h.jsx(Cr,{id:y,label:i.card.expiry.label,error:T?b:void 0,styles:s?.card?.input,disabled:e}),h.jsx(Cr,{id:l,label:i.card.cvc.label,error:d?u:void 0,styles:s?.card?.input,disabled:e}),h.jsx(l1,{id:y,value:m.value,onError:R,onChange:g,isTouchSubmit:M,disabled:e}),h.jsx(o1,{id:l,cardType:k,value:a.value,onError:ne,onChange:Y,isTouchSubmit:M,disabled:e}),h.jsx("div",{children:h.jsx(xr,{error:T?void 0:b,disabled:e,styles:s?.card?.input})}),h.jsx("div",{children:h.jsx(xr,{error:d?void 0:u,disabled:e,styles:s?.card?.input})})]}),h.jsx(c1,{value:P.value,onChange:V,isTouchSubmit:M,disabled:e}),t?h.jsx(h1,{title:i.status.error}):null,h.jsxs(qr,{type:"submit",color:"primary",isLoading:e,disabled:e,onClick:()=>q(!0),className:ve(Pt.payButton,s?.card?.button?.className),style:s?.card?.button?.styles,children:[e&&h.jsx(wr,{className:Pt.spinner}),i.card.pay.button]})]})},ge={container:"_container_a64yo_1",backBtn:"_backBtn_a64yo_5",cardBtn:"_cardBtn_a64yo_9",btnContainer:"_btnContainer_a64yo_13",spinner:"_spinner_a64yo_17",spinnerContainer:"_spinnerContainer_a64yo_21"};/*!
32
32
  * react-paypal-js v8.8.3 (2025-04-11T19:50:46.506Z)
33
33
  * Copyright 2020-present, PayPal, Inc. All rights reserved.
34
34
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paynext/sdk",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",