@fileflow/sdk 0.1.13 → 0.1.14

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,6 +1,6 @@
1
1
  import { jsx as bi } from "react/jsx-runtime";
2
- import st, { useRef as ut, useState as xi, useEffect as ht, useMemo as et, useReducer as wi, useCallback as Se, forwardRef as Jr, useImperativeHandle as _i, Fragment as ki, createElement as Rr } from "react";
3
- const Ei = `.ff-container{width:100%}@media (min-width: 640px){.ff-container{max-width:640px}}@media (min-width: 768px){.ff-container{max-width:768px}}@media (min-width: 1024px){.ff-container{max-width:1024px}}@media (min-width: 1280px){.ff-container{max-width:1280px}}@media (min-width: 1536px){.ff-container{max-width:1536px}}.fileflow-sdk-root{all:revert;isolation:isolate;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif;font-size:16px;line-height:1.5;font-weight:400;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box;color:#21201d;background-color:transparent;text-align:left;direction:ltr;text-rendering:optimizeLegibility;margin:0;padding:0;--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fileflow-sdk-root *,.fileflow-sdk-root *:before,.fileflow-sdk-root *:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000}.fileflow-sdk-root button,.fileflow-sdk-root input,.fileflow-sdk-root select,.fileflow-sdk-root textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}.fileflow-sdk-root button{cursor:pointer;background:none;border:none;padding:0}.fileflow-sdk-root img,.fileflow-sdk-root svg{display:block;max-width:100%}.fileflow-sdk-root a{color:inherit;text-decoration:inherit}.fileflow-sdk-root h1,.fileflow-sdk-root h2,.fileflow-sdk-root h3,.fileflow-sdk-root h4,.fileflow-sdk-root h5,.fileflow-sdk-root h6{font-size:inherit;font-weight:inherit;margin:0}.fileflow-sdk-root p,.fileflow-sdk-root ul,.fileflow-sdk-root ol{margin:0;padding:0}.fileflow-sdk-root ul,.fileflow-sdk-root ol{list-style:none}.fileflow-sdk-root{--ff-primary-10: #f9fafb;--ff-primary-20: #eef0f6;--ff-primary-30: #e2e6f0;--ff-primary-40: #dce1ec;--ff-primary-50: #d7e1f2;--ff-primary-60: #c6d6f0;--ff-primary-70: #c0d0ed;--ff-primary-80: #b9cbeb;--ff-primary-90: #728ab3;--ff-primary-100: #6980a5;--ff-primary-110: #4f6180;--ff-primary-120: #132036;--ff-primary-500: #d7e1f2;--ff-primary-600: #c0d0ed;--ff-brown-10: #f0ece8;--ff-brown-20: #d4c4ba;--ff-brown-30: #b59f8c;--ff-brown-40: #a68c74;--ff-brown-50: #97795d;--ff-brown-60: #8a6447;--ff-brown-70: #7a522f;--ff-brown-80: #6b3f18;--ff-brown-90: #613916;--ff-brown-100: #563213;--ff-brown-110: #4b2c11;--ff-brown-120: #36200c;--ff-primary-text: #6b3f18;--ff-gray-white: #ffffff;--ff-gray-10: #fcfcfb;--ff-gray-20: #f9f9f7;--ff-gray-30: #f0efed;--ff-gray-40: #e9e8e4;--ff-gray-50: #e2e0dd;--ff-gray-60: #dadad5;--ff-gray-70: #cfceca;--ff-gray-80: #bcbbb7;--ff-gray-90: #8e8d89;--ff-gray-100: #848280;--ff-gray-110: #656461;--ff-gray-120: #21201d;--ff-bg-primary: var(--ff-gray-white);--ff-bg-secondary: var(--ff-gray-10);--ff-bg-tertiary: var(--ff-gray-30);--ff-bg-brand: var(--ff-primary-50);--ff-bg-brand-light: var(--ff-primary-20);--ff-text-primary: var(--ff-gray-120);--ff-text-secondary: var(--ff-gray-110);--ff-text-muted: var(--ff-gray-90);--ff-text-supportive: var(--ff-gray-80);--ff-text-inverse: var(--ff-gray-white);--ff-text-link: var(--ff-primary-90);--ff-text-brand: var(--ff-brown-80);--ff-border-light: var(--ff-gray-30);--ff-border-default: var(--ff-gray-40);--ff-border-dark: var(--ff-gray-70);--ff-border-brand: var(--ff-brown-80);--ff-border-focus: var(--ff-primary-70);--ff-icon-default: var(--ff-gray-90);--ff-icon-active: var(--ff-gray-120);--ff-icon-muted: var(--ff-gray-80);--ff-icon-brand: var(--ff-brown-80);--ff-icon-inverse: var(--ff-gray-white);--ff-success-light: #e7f5e4;--ff-success: #298e33;--ff-success-dark: #1f3c20;--ff-warning-light: #ffe6c1;--ff-warning: #a86807;--ff-warning-dark: #4a3723;--ff-error-light: #fcdede;--ff-error: #d43338;--ff-error-dark: #641a1a;--ff-focus-ring: rgba(192, 208, 237, .5);--ff-focus-ring-accent: rgba(168, 85, 247, .25);--ff-accent-50: #faf5ff;--ff-accent-100: #f3e8ff;--ff-accent-200: #e9d5ff;--ff-accent-300: #d8b4fe;--ff-accent-400: #c084fc;--ff-accent-500: #a855f7;--ff-accent-600: #9333ea;--ff-accent-700: #7c3aed;--ff-accent-800: #6b21a8;--ff-accent-900: #581c87;--ff-navy-950: #1a2029}.ff-container{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--ff-text-primary);font-feature-settings:"cv02","cv03","cv04","cv11"}.ff-table-container{position:relative;overflow:auto;border-radius:1rem;border-width:1px;border-color:var(--ff-border-light);background-color:var(--ff-bg-primary)}.ff-table{width:100%;font-size:.875rem;line-height:1.25rem}.ff-table thead{position:sticky;top:0;z-index:10;background-color:var(--ff-bg-secondary)}.ff-table thead tr:first-child th:first-child{border-top-left-radius:1rem}.ff-table thead tr:first-child th:last-child{border-top-right-radius:1rem}.ff-table th{padding:.75rem 1rem;text-align:left;font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--ff-text-secondary);border-bottom:2px solid var(--ff-border-light)}.ff-table td{padding:.75rem 1rem;color:var(--ff-text-primary);border-bottom:1px solid var(--ff-border-light)}.ff-table tbody tr{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-table tbody tr:hover{background-color:var(--ff-bg-secondary)}.ff-cell-error{border-left-width:4px;background-color:var(--ff-error-light);border-left-color:var(--ff-error)}.ff-cell-warning{border-left-width:4px;background-color:var(--ff-warning-light);border-left-color:var(--ff-warning)}.ff-cell-editing{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);background-color:var(--ff-primary-50);--tw-ring-color: var(--ff-primary-400)}.ff-cell-success{background-color:var(--ff-success-light)}.ff-row-error{background-color:#d433381a}.ff-edit-btn{color:var(--ff-text-muted)}.ff-edit-btn:hover{color:var(--ff-text-secondary)}.ff-input{width:100%;border-radius:.75rem;border-width:1px;padding:.75rem 1rem;font-size:.875rem;line-height:1.25rem;border-color:var(--ff-border-default);background-color:var(--ff-bg-primary);color:var(--ff-text-primary);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.ff-input::-moz-placeholder{color:var(--ff-text-muted)}.ff-input::placeholder{color:var(--ff-text-muted)}.ff-input:hover{border-color:var(--ff-border-dark)}.ff-input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);border-color:var(--ff-primary-500);--tw-ring-color: var(--ff-focus-ring)}.ff-input-error{border-color:var(--ff-error)}.ff-input-error:focus{border-color:var(--ff-error);--tw-ring-color: rgba(212, 51, 56, .2)}.ff-select{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:2.5rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2378716c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:1.25em 1.25em}.ff-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-size:.875rem;line-height:1.25rem;font-weight:600;padding:.625rem 1.25rem;border-radius:.75rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-width:1px;border-color:transparent;cursor:pointer}.ff-btn:focus{outline:2px solid transparent;outline-offset:2px}.ff-btn:disabled{cursor:not-allowed;opacity:.5}.ff-btn-primary{background-color:var(--ff-primary-50);color:var(--ff-primary-text)}.ff-btn-primary:hover:not(:disabled){background-color:var(--ff-primary-70)}.ff-btn-primary:active:not(:disabled){background-color:var(--ff-primary-80)}.ff-btn-primary:focus-visible{box-shadow:0 0 0 3px var(--ff-focus-ring)}.ff-btn-secondary{background-color:var(--ff-bg-primary);color:var(--ff-text-primary);border-color:var(--ff-border-default)}.ff-btn-secondary:hover:not(:disabled){background-color:var(--ff-bg-secondary);border-color:var(--ff-border-dark)}.ff-btn-secondary:active:not(:disabled){background-color:var(--ff-bg-tertiary)}.ff-btn-secondary:focus-visible{box-shadow:0 0 0 3px var(--ff-focus-ring)}.ff-btn-ghost{background-color:transparent;color:var(--ff-text-secondary)}.ff-btn-ghost:hover:not(:disabled){background-color:var(--ff-bg-secondary);color:var(--ff-text-primary)}.ff-btn-accent{background-color:var(--ff-accent-500);color:var(--ff-text-inverse)}.ff-btn-accent:hover:not(:disabled){background-color:var(--ff-accent-600);transform:translateY(-1px);box-shadow:0 4px 12px -2px #a855f74d}.ff-btn-accent:active:not(:disabled){background-color:var(--ff-accent-700);transform:translateY(0)}.ff-btn-accent:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ff-focus-ring-accent)}.ff-btn-danger{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.ff-btn-danger:hover:not(:disabled){--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1));transform:translateY(-1px)}.ff-btn-link{background-color:transparent;color:var(--ff-primary-text);padding:.25rem .5rem}.ff-btn-link:hover:not(:disabled){color:#4a2a10;text-decoration:underline}.ff-btn-sm{border-radius:.375rem;padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem}.ff-btn-lg{border-radius:1rem;padding:.75rem 1.5rem;font-size:1rem;line-height:1.5rem}.ff-checkbox{height:1.25rem;width:1.25rem;cursor:pointer;border-radius:.5rem;border-width:2px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-color:var(--ff-border-default);background-color:var(--ff-bg-primary)}.ff-checkbox:hover{border-color:var(--ff-primary-400)}.ff-checkbox:checked{background-color:var(--ff-primary-500);border-color:var(--ff-primary-500);background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}.ff-checkbox:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ff-focus-ring)}.ff-radio{height:1.25rem;width:1.25rem;cursor:pointer;border-radius:9999px;border-width:2px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-color:var(--ff-border-default);background-color:var(--ff-bg-primary)}.ff-radio:checked{border-color:var(--ff-primary-500);border-width:6px}.ff-radio:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ff-focus-ring)}.ff-toggle{position:relative;height:1.5rem;width:2.75rem;cursor:pointer;border-radius:9999px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;background-color:var(--ff-border-default)}.ff-toggle:after{position:absolute;top:.125rem;left:.125rem;height:1.25rem;width:1.25rem;border-radius:9999px;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;content:"";background-color:var(--ff-bg-primary);box-shadow:0 1px 3px #0000001a}.ff-toggle:checked{background-color:var(--ff-primary-500)}.ff-toggle:checked:after{transform:translate(1.25rem)}.ff-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;border-radius:1rem;border-width:2px;border-style:dashed;border-color:var(--ff-border-default);background-color:var(--ff-bg-secondary);cursor:pointer;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-dropzone *{pointer-events:none}.ff-dropzone input{pointer-events:auto}.ff-dropzone:hover{border-color:var(--ff-primary-70);background-color:var(--ff-primary-10)}.ff-dropzone-active{border-color:var(--ff-primary-90);background-color:var(--ff-primary-20);--tw-scale-x: 1.01;--tw-scale-y: 1.01;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))}.ff-dropzone-icon-wrapper{margin-left:auto;margin-right:auto;margin-bottom:1rem;display:flex;height:3.5rem;width:3.5rem;align-items:center;justify-content:center;border-radius:1rem;background-color:var(--ff-primary-20);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-dropzone-active .ff-dropzone-icon-wrapper{background-color:var(--ff-primary-30)}.ff-dropzone-icon{height:1.75rem;width:1.75rem;color:var(--ff-primary-90);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-dropzone-active .ff-dropzone-icon{color:var(--ff-primary-110)}.ff-dropzone-text{margin-bottom:.25rem;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--ff-text-primary)}.ff-dropzone-hint{margin-bottom:1rem;font-size:.875rem;line-height:1.25rem;color:var(--ff-text-muted)}.ff-dropzone-formats{margin-top:.75rem;font-size:.75rem;line-height:1rem;color:var(--ff-text-muted)}.ff-badge{display:inline-flex;align-items:center;border-radius:9999px;padding:.25rem .625rem;font-size:.75rem;line-height:1rem;font-weight:600}.ff-badge-error{background-color:var(--ff-error-light);color:var(--ff-error)}.ff-badge-warning{background-color:var(--ff-warning-light);color:var(--ff-warning)}.ff-badge-success{background-color:var(--ff-success-light);color:var(--ff-success)}.ff-badge-info{background-color:var(--ff-primary-20);color:var(--ff-primary-90)}.ff-badge-neutral{background-color:var(--ff-bg-tertiary);color:var(--ff-text-secondary)}.ff-badge-primary{background-color:var(--ff-primary-100);color:var(--ff-primary-700)}.ff-badge-accent{background-color:var(--ff-accent-100);color:var(--ff-accent-700)}.ff-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background-color:#1c191780;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:1rem;animation:ff-fade-in .2s ease-out;overflow-y:auto}@keyframes ff-fade-in{0%{opacity:0}to{opacity:1}}.ff-modal{background-color:var(--ff-bg-primary);border-radius:1.25rem;width:100%;max-width:56rem;display:flex;flex-direction:column;max-height:min(90vh,calc(100vh - 2rem));box-shadow:0 25px 50px -12px #00000040;animation:ff-scale-in .2s ease-out;margin-top:auto;margin-bottom:auto}@keyframes ff-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.ff-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid var(--ff-border-light);flex-shrink:0;border-top-left-radius:1.25rem;border-top-right-radius:1.25rem}.ff-modal-header-left{display:flex;align-items:center;gap:1rem}.ff-modal-icon{display:flex;height:2.5rem;width:2.5rem;align-items:center;justify-content:center;border-radius:.75rem;background-color:var(--ff-primary-20)}.ff-modal-icon svg{height:1.25rem;width:1.25rem;color:var(--ff-primary-90)}.ff-modal-title{font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--ff-text-primary)}.ff-modal-close{border-radius:.75rem;padding:.5rem;color:var(--ff-text-muted);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-modal-close:hover{color:var(--ff-text-primary);background-color:var(--ff-bg-tertiary)}.ff-modal-body{flex:1 1 0%;overflow-y:auto;padding:1.5rem}.ff-modal-footer{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;background-color:var(--ff-bg-secondary);border-top:1px solid var(--ff-border-light);flex-shrink:0;border-bottom-right-radius:1.25rem;border-bottom-left-radius:1.25rem}.ff-steps{display:flex;align-items:center;gap:.5rem}.ff-step{display:flex;align-items:center;justify-content:center;height:2rem;width:2rem;border-radius:9999px;font-size:.875rem;line-height:1.25rem;font-weight:600;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-step-pending{background-color:var(--ff-bg-tertiary);color:var(--ff-text-muted)}.ff-step-active{background-color:var(--ff-primary-50);color:var(--ff-primary-90);box-shadow:0 0 0 4px var(--ff-primary-20)}.ff-step-complete{background-color:var(--ff-success);color:#fff}.ff-step-connector{height:.125rem;width:2rem;background-color:var(--ff-border-default);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-step-connector-complete{background-color:var(--ff-success)}.ff-progress{height:.5rem;overflow:hidden;border-radius:9999px;background-color:var(--ff-bg-tertiary)}.ff-progress-bar{height:100%;border-radius:9999px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.5s;transition-timing-function:cubic-bezier(0,0,.2,1);background-color:var(--ff-primary-500)}.ff-progress-bar-animated{background:linear-gradient(90deg,var(--ff-primary-400) 0%,var(--ff-primary-500) 50%,var(--ff-primary-400) 100%);background-size:200% 100%;animation:shimmer 2s linear infinite}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.ff-tooltip{position:absolute;z-index:50;border-radius:.75rem;padding:.5rem .75rem;font-size:.75rem;line-height:1rem;font-weight:500;visibility:hidden;opacity:0;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;background-color:var(--ff-navy-950);color:var(--ff-text-inverse);box-shadow:0 4px 12px -2px #0003}.ff-tooltip-visible{visibility:visible;opacity:1}.ff-spinner{height:1.25rem;width:1.25rem}.ff-spinner{animation:ff-spin 1s linear infinite;border-radius:9999px;border-width:2px;border-color:var(--ff-border-light);border-top-color:var(--ff-primary-500)}.ff-spinner-lg{height:2rem;width:2rem;border-width:3px}.ff-document-preview{position:relative;overflow:hidden;border-radius:1rem;background-color:var(--ff-bg-tertiary)}.ff-document-preview img{height:auto;width:100%;-o-object-fit:contain;object-fit:contain}.ff-mapping-header{margin-bottom:1rem;display:flex;align-items:center;justify-content:space-between}.ff-mapping-title{font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--ff-text-primary)}.ff-mapping-subtitle{font-size:.875rem;line-height:1.25rem;color:var(--ff-text-muted)}.ff-mapping-legend{display:flex;align-items:center;gap:1rem;font-size:.875rem;line-height:1.25rem}.ff-mapping-legend-item{display:flex;align-items:center;gap:.375rem}.ff-mapping-legend-dot{height:.5rem;width:.5rem;border-radius:9999px}.ff-mapping-row{display:flex;align-items:center;gap:1rem;border-radius:1rem;border-width:1px;padding:1rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;background-color:var(--ff-bg-primary);border-color:var(--ff-border-light)}.ff-mapping-row:hover{border-color:var(--ff-border-default);background-color:var(--ff-bg-secondary)}.ff-mapping-row-success{border-color:var(--ff-success-light);background-color:#e7f5e480}.ff-mapping-row-warning{border-color:var(--ff-warning-light);background-color:#ffe6c180}.ff-mapping-source{flex:1 1 0%;border-radius:.75rem;padding:.625rem 1rem;font-family:JetBrains Mono,SF Mono,Monaco,monospace;font-size:.875rem;line-height:1.25rem;background-color:var(--ff-bg-tertiary);color:var(--ff-text-secondary)}.ff-mapping-arrow{flex-shrink:0;color:var(--ff-text-muted)}.ff-mapping-target{flex:1 1 0%}.ff-mapping-status{display:flex;width:2rem;justify-content:center}.ff-confidence{display:inline-flex;align-items:center;gap:.375rem;font-size:.75rem;line-height:1rem;font-weight:500}.ff-confidence-high{color:var(--ff-success)}.ff-confidence-medium{color:var(--ff-warning)}.ff-confidence-low{color:var(--ff-error)}.ff-confidence-bar{height:.375rem;border-radius:9999px;background-color:var(--ff-bg-tertiary)}.ff-confidence-bar-fill{height:100%;border-radius:9999px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.ff-validation-summary{border-radius:1rem;border-width:1px;padding:1rem}.ff-validation-summary-error{background-color:var(--ff-error-light);border-color:var(--ff-error)}.ff-validation-summary-warning{background-color:var(--ff-warning-light);border-color:var(--ff-warning)}.ff-validation-summary-success{background-color:var(--ff-success-light);border-color:var(--ff-success)}.ff-card{border-radius:1rem;border-width:1px;background-color:var(--ff-bg-primary);border-color:var(--ff-border-light);box-shadow:0 2px 8px -2px #0000000a}.ff-card-hover{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.ff-card-hover:hover{border-color:var(--ff-border-default);box-shadow:0 8px 24px -4px #00000014;transform:translateY(-2px)}.ff-status{display:inline-flex;align-items:center;gap:.5rem}.ff-status-dot{height:.5rem;width:.5rem;border-radius:9999px}.ff-status-dot-success{background-color:var(--ff-success)}.ff-status-dot-warning{background-color:var(--ff-warning)}.ff-status-dot-error{background-color:var(--ff-error)}.ff-status-dot-pending{background-color:var(--ff-text-muted)}.ff-status-dot-processing{animation:ff-pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:var(--ff-primary-90)}.ff-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-top:3rem;padding-bottom:3rem;text-align:center}.ff-empty-state-icon{margin-bottom:1rem;height:4rem;width:4rem;color:var(--ff-border-default)}.ff-empty-state-title{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--ff-text-primary)}.ff-empty-state-description{max-width:24rem;font-size:.875rem;line-height:1.25rem;color:var(--ff-text-muted)}@keyframes ff-pulse{50%{opacity:.5}}.ff-skeleton{animation:ff-pulse 2s cubic-bezier(.4,0,.6,1) infinite;border-radius:.5rem;background-color:var(--ff-bg-tertiary)}.ff-skeleton-text{height:1rem;border-radius:.5rem}.ff-skeleton-title{height:1.5rem;width:75%;border-radius:.5rem}.ff-skeleton-avatar{height:2.5rem;width:2.5rem;border-radius:9999px}.ff-pagination{display:flex;align-items:center;gap:.25rem}.ff-pagination-btn{display:flex;height:2.25rem;width:2.25rem;align-items:center;justify-content:center;border-radius:.75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;color:var(--ff-text-secondary)}.ff-pagination-btn:hover{background-color:var(--ff-bg-secondary);color:var(--ff-text-primary)}.ff-pagination-btn-active{background-color:var(--ff-primary-500);color:var(--ff-text-inverse)}.ff-pagination-btn-active:hover{background-color:var(--ff-primary-600);color:var(--ff-text-inverse)}.ff-selector-group{display:inline-flex;flex-wrap:wrap;gap:.5rem}.ff-selector-item{display:inline-flex;align-items:center;gap:.375rem;border-radius:9999px;padding:.375rem .75rem;cursor:pointer;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;background-color:var(--ff-bg-secondary);color:var(--ff-text-secondary);border:1px solid var(--ff-border-light)}.ff-selector-item:hover{background-color:var(--ff-bg-tertiary);border-color:var(--ff-border-default)}.ff-selector-item-active{background-color:var(--ff-primary-500);color:var(--ff-text-inverse);border-color:var(--ff-primary-500)}.ff-selector-item-active:hover{background-color:var(--ff-primary-600);border-color:var(--ff-primary-600)}.ff-fade-in{animation:fadeIn .3s ease-out}.ff-slide-up{animation:slideUp .3s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.ff-theme-accent{--ff-primary-50: var(--ff-accent-50);--ff-primary-100: var(--ff-accent-100);--ff-primary-200: var(--ff-accent-200);--ff-primary-300: var(--ff-accent-300);--ff-primary-400: var(--ff-accent-400);--ff-primary-500: var(--ff-accent-500);--ff-primary-600: var(--ff-accent-600);--ff-primary-700: var(--ff-accent-700);--ff-primary-800: var(--ff-accent-800);--ff-primary-900: var(--ff-accent-900);--ff-focus-ring: var(--ff-focus-ring-accent)}.ff-relative{position:relative}.ff-bottom-full{bottom:100%}.ff-left-1\\/2{left:50%}.ff-mx-auto{margin-left:auto;margin-right:auto}.ff-mb-2{margin-bottom:.5rem}.ff-mb-4{margin-bottom:1rem}.ff-mb-6{margin-bottom:1.5rem}.ff-ml-4{margin-left:1rem}.ff-mr-1{margin-right:.25rem}.ff-mt-0\\.5{margin-top:.125rem}.ff-mt-1{margin-top:.25rem}.ff-mt-2{margin-top:.5rem}.ff-mt-3{margin-top:.75rem}.ff-block{display:block}.ff-inline-block{display:inline-block}.ff-flex{display:flex}.ff-table{display:table}.ff-grid{display:grid}.ff-aspect-\\[3\\/4\\]{aspect-ratio:3/4}.ff-h-10{height:2.5rem}.ff-h-12{height:3rem}.ff-h-16{height:4rem}.ff-h-3{height:.75rem}.ff-h-4{height:1rem}.ff-h-5{height:1.25rem}.ff-h-6{height:1.5rem}.ff-h-8{height:2rem}.ff-h-full{height:100%}.ff-max-h-96{max-height:24rem}.ff-max-h-\\[500px\\]{max-height:500px}.ff-w-10{width:2.5rem}.ff-w-12{width:3rem}.ff-w-16{width:4rem}.ff-w-3{width:.75rem}.ff-w-4{width:1rem}.ff-w-48{width:12rem}.ff-w-5{width:1.25rem}.ff-w-6{width:1.5rem}.ff-w-8{width:2rem}.ff-w-full{width:100%}.ff-min-w-0{min-width:0px}.ff-max-w-lg{max-width:32rem}.ff-max-w-md{max-width:28rem}.ff-max-w-xl{max-width:36rem}.ff-max-w-xs{max-width:20rem}.ff-flex-1{flex:1 1 0%}.ff-flex-shrink-0{flex-shrink:0}.ff--translate-x-1\\/2{--tw-translate-x: -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))}.ff-transform{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))}@keyframes ff-spin{to{transform:rotate(360deg)}}.ff-animate-spin{animation:ff-spin 1s linear infinite}.ff-cursor-not-allowed{cursor:not-allowed}.ff-cursor-pointer{cursor:pointer}.ff-cursor-wait{cursor:wait}.ff-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ff-list-inside{list-style-position:inside}.ff-list-disc{list-style-type:disc}.ff-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.ff-flex-col{flex-direction:column}.ff-flex-wrap{flex-wrap:wrap}.ff-items-start{align-items:flex-start}.ff-items-center{align-items:center}.ff-justify-center{justify-content:center}.ff-justify-between{justify-content:space-between}.ff-gap-1{gap:.25rem}.ff-gap-2{gap:.5rem}.ff-gap-3{gap:.75rem}.ff-gap-4{gap:1rem}.ff-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.ff-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.ff-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.ff-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.ff-space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.ff-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.ff-overflow-hidden{overflow:hidden}.ff-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ff-rounded{border-radius:.5rem}.ff-rounded-full{border-radius:9999px}.ff-rounded-lg{border-radius:.75rem}.ff-rounded-xl{border-radius:1rem}.ff-border{border-width:1px}.ff-border-2{border-width:2px}.ff-border-b{border-bottom-width:1px}.ff-border-transparent{border-color:transparent}.ff-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.ff-object-contain{-o-object-fit:contain;object-fit:contain}.ff-p-1{padding:.25rem}.ff-p-1\\.5{padding:.375rem}.ff-p-2{padding:.5rem}.ff-p-3{padding:.75rem}.ff-p-4{padding:1rem}.ff-p-6{padding:1.5rem}.ff-px-2{padding-left:.5rem;padding-right:.5rem}.ff-px-4{padding-left:1rem;padding-right:1rem}.ff-py-1{padding-top:.25rem;padding-bottom:.25rem}.ff-py-12{padding-top:3rem;padding-bottom:3rem}.ff-py-3{padding-top:.75rem;padding-bottom:.75rem}.ff-py-4{padding-top:1rem;padding-bottom:1rem}.ff-py-8{padding-top:2rem;padding-bottom:2rem}.ff-text-left{text-align:left}.ff-text-center{text-align:center}.ff-text-right{text-align:right}.ff-font-mono{font-family:JetBrains Mono,SF Mono,Monaco,monospace}.ff-text-2xl{font-size:1.5rem;line-height:2rem}.ff-text-lg{font-size:1.125rem;line-height:1.75rem}.ff-text-sm{font-size:.875rem;line-height:1.25rem}.ff-text-xl{font-size:1.25rem;line-height:1.75rem}.ff-text-xs{font-size:.75rem;line-height:1rem}.ff-font-bold{font-weight:700}.ff-font-medium{font-weight:500}.ff-font-semibold{font-weight:600}.ff-opacity-0{opacity:0}.ff-opacity-50{opacity:.5}.ff-shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ff-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-duration-150{transition-duration:.15s}.hover\\:ff-border-transparent:hover{border-color:transparent}.ff-group:hover .group-hover\\:ff-opacity-100{opacity:1}`, dn = "fileflow-sdk-styles";
2
+ import st, { useRef as ut, useState as xi, useEffect as ht, useMemo as et, useReducer as wi, useCallback as Ee, forwardRef as Jr, useImperativeHandle as _i, Fragment as ki, createElement as Rr } from "react";
3
+ const Si = `.ff-container{width:100%}@media (min-width: 640px){.ff-container{max-width:640px}}@media (min-width: 768px){.ff-container{max-width:768px}}@media (min-width: 1024px){.ff-container{max-width:1024px}}@media (min-width: 1280px){.ff-container{max-width:1280px}}@media (min-width: 1536px){.ff-container{max-width:1536px}}.fileflow-sdk-root{all:revert;isolation:isolate;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif;font-size:16px;line-height:1.5;font-weight:400;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box;color:#21201d;background-color:transparent;text-align:left;direction:ltr;text-rendering:optimizeLegibility;margin:0;padding:0;--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.fileflow-sdk-root *,.fileflow-sdk-root *:before,.fileflow-sdk-root *:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000}.fileflow-sdk-root button,.fileflow-sdk-root input,.fileflow-sdk-root select,.fileflow-sdk-root textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}.fileflow-sdk-root button{cursor:pointer;background:none;border:none;padding:0}.fileflow-sdk-root img,.fileflow-sdk-root svg{display:block;max-width:100%}.fileflow-sdk-root a{color:inherit;text-decoration:inherit}.fileflow-sdk-root h1,.fileflow-sdk-root h2,.fileflow-sdk-root h3,.fileflow-sdk-root h4,.fileflow-sdk-root h5,.fileflow-sdk-root h6{font-size:inherit;font-weight:inherit;margin:0}.fileflow-sdk-root p,.fileflow-sdk-root ul,.fileflow-sdk-root ol{margin:0;padding:0}.fileflow-sdk-root ul,.fileflow-sdk-root ol{list-style:none}.fileflow-sdk-root{--ff-primary-10: #f9fafb;--ff-primary-20: #eef0f6;--ff-primary-30: #e2e6f0;--ff-primary-40: #dce1ec;--ff-primary-50: #d7e1f2;--ff-primary-60: #c6d6f0;--ff-primary-70: #c0d0ed;--ff-primary-80: #b9cbeb;--ff-primary-90: #728ab3;--ff-primary-100: #6980a5;--ff-primary-110: #4f6180;--ff-primary-120: #132036;--ff-primary-500: #d7e1f2;--ff-primary-600: #c0d0ed;--ff-brown-10: #f0ece8;--ff-brown-20: #d4c4ba;--ff-brown-30: #b59f8c;--ff-brown-40: #a68c74;--ff-brown-50: #97795d;--ff-brown-60: #8a6447;--ff-brown-70: #7a522f;--ff-brown-80: #6b3f18;--ff-brown-90: #613916;--ff-brown-100: #563213;--ff-brown-110: #4b2c11;--ff-brown-120: #36200c;--ff-primary-text: #6b3f18;--ff-gray-white: #ffffff;--ff-gray-10: #fcfcfb;--ff-gray-20: #f9f9f7;--ff-gray-30: #f0efed;--ff-gray-40: #e9e8e4;--ff-gray-50: #e2e0dd;--ff-gray-60: #dadad5;--ff-gray-70: #cfceca;--ff-gray-80: #bcbbb7;--ff-gray-90: #8e8d89;--ff-gray-100: #848280;--ff-gray-110: #656461;--ff-gray-120: #21201d;--ff-bg-primary: var(--ff-gray-white);--ff-bg-secondary: var(--ff-gray-10);--ff-bg-tertiary: var(--ff-gray-30);--ff-bg-brand: var(--ff-primary-50);--ff-bg-brand-light: var(--ff-primary-20);--ff-text-primary: var(--ff-gray-120);--ff-text-secondary: var(--ff-gray-110);--ff-text-muted: var(--ff-gray-90);--ff-text-supportive: var(--ff-gray-80);--ff-text-inverse: var(--ff-gray-white);--ff-text-link: var(--ff-primary-90);--ff-text-brand: var(--ff-brown-80);--ff-border-light: var(--ff-gray-30);--ff-border-default: var(--ff-gray-40);--ff-border-dark: var(--ff-gray-70);--ff-border-brand: var(--ff-brown-80);--ff-border-focus: var(--ff-primary-70);--ff-icon-default: var(--ff-gray-90);--ff-icon-active: var(--ff-gray-120);--ff-icon-muted: var(--ff-gray-80);--ff-icon-brand: var(--ff-brown-80);--ff-icon-inverse: var(--ff-gray-white);--ff-success-light: #e7f5e4;--ff-success: #298e33;--ff-success-dark: #1f3c20;--ff-warning-light: #ffe6c1;--ff-warning: #a86807;--ff-warning-dark: #4a3723;--ff-error-light: #fcdede;--ff-error: #d43338;--ff-error-dark: #641a1a;--ff-focus-ring: rgba(192, 208, 237, .5);--ff-focus-ring-accent: rgba(168, 85, 247, .25);--ff-accent-50: #faf5ff;--ff-accent-100: #f3e8ff;--ff-accent-200: #e9d5ff;--ff-accent-300: #d8b4fe;--ff-accent-400: #c084fc;--ff-accent-500: #a855f7;--ff-accent-600: #9333ea;--ff-accent-700: #7c3aed;--ff-accent-800: #6b21a8;--ff-accent-900: #581c87;--ff-navy-950: #1a2029}.ff-container{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--ff-text-primary);font-feature-settings:"cv02","cv03","cv04","cv11"}.ff-table-container{position:relative;overflow:auto;border-radius:1rem;border-width:1px;border-color:var(--ff-border-light);background-color:var(--ff-bg-primary)}.ff-table{width:100%;font-size:.875rem;line-height:1.25rem}.ff-table thead{position:sticky;top:0;z-index:10;background-color:var(--ff-bg-secondary)}.ff-table thead tr:first-child th:first-child{border-top-left-radius:1rem}.ff-table thead tr:first-child th:last-child{border-top-right-radius:1rem}.ff-table th{padding:.75rem 1rem;text-align:left;font-size:.75rem;line-height:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--ff-text-secondary);border-bottom:2px solid var(--ff-border-light)}.ff-table td{padding:.75rem 1rem;color:var(--ff-text-primary);border-bottom:1px solid var(--ff-border-light)}.ff-table tbody tr{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-table tbody tr:hover{background-color:var(--ff-bg-secondary)}.ff-cell-error{border-left-width:4px;background-color:var(--ff-error-light);border-left-color:var(--ff-error)}.ff-cell-warning{border-left-width:4px;background-color:var(--ff-warning-light);border-left-color:var(--ff-warning)}.ff-cell-editing{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);background-color:var(--ff-primary-50);--tw-ring-color: var(--ff-primary-400)}.ff-cell-success{background-color:var(--ff-success-light)}.ff-row-error{background-color:#d433381a}.ff-edit-btn{color:var(--ff-text-muted)}.ff-edit-btn:hover{color:var(--ff-text-secondary)}.ff-input{width:100%;border-radius:.75rem;border-width:1px;padding:.75rem 1rem;font-size:.875rem;line-height:1.25rem;border-color:var(--ff-border-default);background-color:var(--ff-bg-primary);color:var(--ff-text-primary);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.ff-input::-moz-placeholder{color:var(--ff-text-muted)}.ff-input::placeholder{color:var(--ff-text-muted)}.ff-input:hover{border-color:var(--ff-border-dark)}.ff-input:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);border-color:var(--ff-primary-500);--tw-ring-color: var(--ff-focus-ring)}.ff-input-error{border-color:var(--ff-error)}.ff-input-error:focus{border-color:var(--ff-error);--tw-ring-color: rgba(212, 51, 56, .2)}.ff-select{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:2.5rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2378716c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:1.25em 1.25em}.ff-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-size:.875rem;line-height:1.25rem;font-weight:600;padding:.625rem 1.25rem;border-radius:.75rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-width:1px;border-color:transparent;cursor:pointer}.ff-btn:focus{outline:2px solid transparent;outline-offset:2px}.ff-btn:disabled{cursor:not-allowed;opacity:.5}.ff-btn-primary{background-color:var(--ff-primary-110);color:var(--ff-gray-white)}.ff-btn-primary:hover:not(:disabled){background-color:var(--ff-primary-120);transform:translateY(-1px);box-shadow:0 4px 12px -2px #0003}.ff-btn-primary:active:not(:disabled){background-color:var(--ff-primary-130);transform:translateY(0)}.ff-btn-primary:focus-visible{box-shadow:0 0 0 3px var(--ff-focus-ring)}.ff-btn-secondary{background-color:var(--ff-bg-primary);color:var(--ff-text-primary);border-color:var(--ff-border-default)}.ff-btn-secondary:hover:not(:disabled){background-color:var(--ff-bg-secondary);border-color:var(--ff-border-dark)}.ff-btn-secondary:active:not(:disabled){background-color:var(--ff-bg-tertiary)}.ff-btn-secondary:focus-visible{box-shadow:0 0 0 3px var(--ff-focus-ring)}.ff-btn-ghost{background-color:transparent;color:var(--ff-text-secondary)}.ff-btn-ghost:hover:not(:disabled){background-color:var(--ff-bg-secondary);color:var(--ff-text-primary)}.ff-btn-accent{background-color:var(--ff-accent-500);color:var(--ff-text-inverse)}.ff-btn-accent:hover:not(:disabled){background-color:var(--ff-accent-600);transform:translateY(-1px);box-shadow:0 4px 12px -2px #a855f74d}.ff-btn-accent:active:not(:disabled){background-color:var(--ff-accent-700);transform:translateY(0)}.ff-btn-accent:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ff-focus-ring-accent)}.ff-btn-danger{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.ff-btn-danger:hover:not(:disabled){--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1));transform:translateY(-1px)}.ff-btn-link{background-color:transparent;color:var(--ff-primary-text);padding:.25rem .5rem}.ff-btn-link:hover:not(:disabled){color:#4a2a10;text-decoration:underline}.ff-btn-sm{border-radius:.375rem;padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem}.ff-btn-lg{border-radius:1rem;padding:.75rem 1.5rem;font-size:1rem;line-height:1.5rem}.ff-checkbox{height:1.25rem;width:1.25rem;cursor:pointer;border-radius:.5rem;border-width:2px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-color:var(--ff-border-default);background-color:var(--ff-bg-primary)}.ff-checkbox:hover{border-color:var(--ff-primary-400)}.ff-checkbox:checked{background-color:var(--ff-primary-500);border-color:var(--ff-primary-500);background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}.ff-checkbox:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ff-focus-ring)}.ff-radio{height:1.25rem;width:1.25rem;cursor:pointer;border-radius:9999px;border-width:2px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;border-color:var(--ff-border-default);background-color:var(--ff-bg-primary)}.ff-radio:checked{border-color:var(--ff-primary-500);border-width:6px}.ff-radio:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: var(--ff-focus-ring)}.ff-toggle{position:relative;height:1.5rem;width:2.75rem;cursor:pointer;border-radius:9999px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;background-color:var(--ff-border-default)}.ff-toggle:after{position:absolute;top:.125rem;left:.125rem;height:1.25rem;width:1.25rem;border-radius:9999px;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;content:"";background-color:var(--ff-bg-primary);box-shadow:0 1px 3px #0000001a}.ff-toggle:checked{background-color:var(--ff-primary-500)}.ff-toggle:checked:after{transform:translate(1.25rem)}.ff-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;border-radius:1rem;border-width:2px;border-style:dashed;border-color:var(--ff-border-default);background-color:var(--ff-bg-secondary);cursor:pointer;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-dropzone *{pointer-events:none}.ff-dropzone input{pointer-events:auto}.ff-dropzone:hover{border-color:var(--ff-primary-70);background-color:var(--ff-primary-10)}.ff-dropzone-active{border-color:var(--ff-primary-90);background-color:var(--ff-primary-20);--tw-scale-x: 1.01;--tw-scale-y: 1.01;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))}.ff-dropzone-icon-wrapper{margin-left:auto;margin-right:auto;margin-bottom:1rem;display:flex;height:3.5rem;width:3.5rem;align-items:center;justify-content:center;border-radius:1rem;background-color:var(--ff-primary-20);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-dropzone-active .ff-dropzone-icon-wrapper{background-color:var(--ff-primary-30)}.ff-dropzone-icon{height:1.75rem;width:1.75rem;color:var(--ff-primary-90);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-dropzone-active .ff-dropzone-icon{color:var(--ff-primary-110)}.ff-dropzone-text{margin-bottom:.25rem;font-size:1rem;line-height:1.5rem;font-weight:600;color:var(--ff-text-primary)}.ff-dropzone-hint{margin-bottom:1rem;font-size:.875rem;line-height:1.25rem;color:var(--ff-text-muted)}.ff-dropzone-formats{margin-top:.75rem;font-size:.75rem;line-height:1rem;color:var(--ff-text-muted)}.ff-badge{display:inline-flex;align-items:center;border-radius:9999px;padding:.25rem .625rem;font-size:.75rem;line-height:1rem;font-weight:600}.ff-badge-error{background-color:var(--ff-error-light);color:var(--ff-error)}.ff-badge-warning{background-color:var(--ff-warning-light);color:var(--ff-warning)}.ff-badge-success{background-color:var(--ff-success-light);color:var(--ff-success)}.ff-badge-info{background-color:var(--ff-primary-20);color:var(--ff-primary-90)}.ff-badge-neutral{background-color:var(--ff-bg-tertiary);color:var(--ff-text-secondary)}.ff-badge-primary{background-color:var(--ff-primary-100);color:var(--ff-primary-700)}.ff-badge-accent{background-color:var(--ff-accent-100);color:var(--ff-accent-700)}.ff-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background-color:#1c191780;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:1rem;animation:ff-fade-in .2s ease-out;overflow-y:auto}@keyframes ff-fade-in{0%{opacity:0}to{opacity:1}}.ff-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;background-color:#00000080;display:flex;align-items:center;justify-content:center;padding:1rem}.ff-modal{background-color:var(--ff-bg-primary);border-radius:1.25rem;width:100%;max-width:56rem;display:flex;flex-direction:column;max-height:min(90vh,calc(100vh - 2rem));box-shadow:0 25px 50px -12px #00000040;animation:ff-scale-in .2s ease-out;margin-top:auto;margin-bottom:auto}.ff-embed{background-color:var(--ff-bg-primary);display:flex;width:100%;flex-direction:column;border-radius:1rem;border-width:1px;border-color:var(--ff-border-light)}.ff-embed .ff-modal-header{border-top-left-radius:1rem;border-top-right-radius:1rem}.ff-embed .ff-modal-footer{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}@keyframes ff-scale-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.ff-modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;border-bottom:1px solid var(--ff-border-light);flex-shrink:0;border-top-left-radius:1.25rem;border-top-right-radius:1.25rem}.ff-modal-header-left{display:flex;align-items:center;gap:1rem}.ff-modal-icon{display:flex;height:2.5rem;width:2.5rem;align-items:center;justify-content:center;border-radius:.75rem;background-color:var(--ff-primary-20)}.ff-modal-icon svg{height:1.25rem;width:1.25rem;color:var(--ff-primary-90)}.ff-modal-title{font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--ff-text-primary)}.ff-modal-close{border-radius:.75rem;padding:.5rem;color:var(--ff-text-muted);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-modal-close:hover{color:var(--ff-text-primary);background-color:var(--ff-bg-tertiary)}.ff-modal-body{flex:1 1 0%;overflow-y:auto;padding:1.5rem}.ff-modal-footer{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;background-color:var(--ff-bg-secondary);border-top:1px solid var(--ff-border-light);flex-shrink:0;border-bottom-right-radius:1.25rem;border-bottom-left-radius:1.25rem}.ff-steps{display:flex;align-items:center;gap:.5rem}.ff-step{display:flex;align-items:center;justify-content:center;height:2rem;width:2rem;border-radius:9999px;font-size:.875rem;line-height:1.25rem;font-weight:600;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-step-pending{background-color:var(--ff-bg-tertiary);color:var(--ff-text-muted)}.ff-step-active{background-color:var(--ff-primary-50);color:var(--ff-primary-90);box-shadow:0 0 0 4px var(--ff-primary-20)}.ff-step-complete{background-color:var(--ff-success);color:#fff}.ff-step-connector{height:.125rem;width:2rem;background-color:var(--ff-border-default);transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-step-connector-complete{background-color:var(--ff-success)}.ff-progress{height:.5rem;overflow:hidden;border-radius:9999px;background-color:var(--ff-bg-tertiary)}.ff-progress-bar{height:100%;border-radius:9999px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.5s;transition-timing-function:cubic-bezier(0,0,.2,1);background-color:var(--ff-primary-500)}.ff-progress-bar-animated{background:linear-gradient(90deg,var(--ff-primary-400) 0%,var(--ff-primary-500) 50%,var(--ff-primary-400) 100%);background-size:200% 100%;animation:shimmer 2s linear infinite}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.ff-tooltip{position:absolute;z-index:50;border-radius:.75rem;padding:.5rem .75rem;font-size:.75rem;line-height:1rem;font-weight:500;visibility:hidden;opacity:0;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;background-color:var(--ff-navy-950);color:var(--ff-text-inverse);box-shadow:0 4px 12px -2px #0003}.ff-tooltip-visible{visibility:visible;opacity:1}.ff-spinner{height:1.25rem;width:1.25rem}.ff-spinner{animation:ff-spin 1s linear infinite;border-radius:9999px;border-width:2px;border-color:var(--ff-border-light);border-top-color:var(--ff-primary-500)}.ff-spinner-lg{height:2rem;width:2rem;border-width:3px}.ff-document-preview{position:relative;overflow:hidden;border-radius:1rem;background-color:var(--ff-bg-tertiary)}.ff-document-preview img{height:auto;width:100%;-o-object-fit:contain;object-fit:contain}.ff-mapping-header{margin-bottom:1rem;display:flex;align-items:center;justify-content:space-between}.ff-mapping-title{font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--ff-text-primary)}.ff-mapping-subtitle{font-size:.875rem;line-height:1.25rem;color:var(--ff-text-muted)}.ff-mapping-legend{display:flex;align-items:center;gap:1rem;font-size:.875rem;line-height:1.25rem}.ff-mapping-legend-item{display:flex;align-items:center;gap:.375rem}.ff-mapping-legend-dot{height:.5rem;width:.5rem;border-radius:9999px}.ff-mapping-row{display:flex;align-items:center;gap:1rem;border-radius:1rem;border-width:1px;padding:1rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;background-color:var(--ff-bg-primary);border-color:var(--ff-border-light)}.ff-mapping-row:hover{border-color:var(--ff-border-default);background-color:var(--ff-bg-secondary)}.ff-mapping-row-success{border-color:var(--ff-success-light);background-color:#e7f5e480}.ff-mapping-row-warning{border-color:var(--ff-warning-light);background-color:#ffe6c180}.ff-mapping-source{flex:1 1 0%;border-radius:.75rem;padding:.625rem 1rem;font-family:JetBrains Mono,SF Mono,Monaco,monospace;font-size:.875rem;line-height:1.25rem;background-color:var(--ff-bg-tertiary);color:var(--ff-text-secondary)}.ff-mapping-arrow{flex-shrink:0;color:var(--ff-text-muted)}.ff-mapping-target{flex:1 1 0%}.ff-mapping-status{display:flex;width:2rem;justify-content:center}.ff-confidence{display:inline-flex;align-items:center;gap:.375rem;font-size:.75rem;line-height:1rem;font-weight:500}.ff-confidence-high{color:var(--ff-success)}.ff-confidence-medium{color:var(--ff-warning)}.ff-confidence-low{color:var(--ff-error)}.ff-confidence-bar{height:.375rem;border-radius:9999px;background-color:var(--ff-bg-tertiary)}.ff-confidence-bar-fill{height:100%;border-radius:9999px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.ff-validation-summary{border-radius:1rem;border-width:1px;padding:1rem}.ff-validation-summary-error{background-color:var(--ff-error-light);border-color:var(--ff-error)}.ff-validation-summary-warning{background-color:var(--ff-warning-light);border-color:var(--ff-warning)}.ff-validation-summary-success{background-color:var(--ff-success-light);border-color:var(--ff-success)}.ff-card{border-radius:1rem;border-width:1px;background-color:var(--ff-bg-primary);border-color:var(--ff-border-light);box-shadow:0 2px 8px -2px #0000000a}.ff-card-hover{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.ff-card-hover:hover{border-color:var(--ff-border-default);box-shadow:0 8px 24px -4px #00000014;transform:translateY(-2px)}.ff-status{display:inline-flex;align-items:center;gap:.5rem}.ff-status-dot{height:.5rem;width:.5rem;border-radius:9999px}.ff-status-dot-success{background-color:var(--ff-success)}.ff-status-dot-warning{background-color:var(--ff-warning)}.ff-status-dot-error{background-color:var(--ff-error)}.ff-status-dot-pending{background-color:var(--ff-text-muted)}.ff-status-dot-processing{animation:ff-pulse 2s cubic-bezier(.4,0,.6,1) infinite;background-color:var(--ff-primary-90)}.ff-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-top:3rem;padding-bottom:3rem;text-align:center}.ff-empty-state-icon{margin-bottom:1rem;height:4rem;width:4rem;color:var(--ff-border-default)}.ff-empty-state-title{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--ff-text-primary)}.ff-empty-state-description{max-width:24rem;font-size:.875rem;line-height:1.25rem;color:var(--ff-text-muted)}@keyframes ff-pulse{50%{opacity:.5}}.ff-skeleton{animation:ff-pulse 2s cubic-bezier(.4,0,.6,1) infinite;border-radius:.5rem;background-color:var(--ff-bg-tertiary)}.ff-skeleton-text{height:1rem;border-radius:.5rem}.ff-skeleton-title{height:1.5rem;width:75%;border-radius:.5rem}.ff-skeleton-avatar{height:2.5rem;width:2.5rem;border-radius:9999px}.ff-pagination{display:flex;align-items:center;gap:.25rem}.ff-pagination-btn{display:flex;height:2.25rem;width:2.25rem;align-items:center;justify-content:center;border-radius:.75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;color:var(--ff-text-secondary)}.ff-pagination-btn:hover{background-color:var(--ff-bg-secondary);color:var(--ff-text-primary)}.ff-pagination-btn-active{background-color:var(--ff-primary-500);color:var(--ff-text-inverse)}.ff-pagination-btn-active:hover{background-color:var(--ff-primary-600);color:var(--ff-text-inverse)}.ff-selector-group{display:inline-flex;flex-wrap:wrap;gap:.5rem}.ff-selector-item{display:inline-flex;align-items:center;gap:.375rem;border-radius:9999px;padding:.375rem .75rem;cursor:pointer;font-size:.875rem;line-height:1.25rem;font-weight:500;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;background-color:var(--ff-bg-secondary);color:var(--ff-text-secondary);border:1px solid var(--ff-border-light)}.ff-selector-item:hover{background-color:var(--ff-bg-tertiary);border-color:var(--ff-border-default)}.ff-selector-item-active{background-color:var(--ff-primary-500);color:var(--ff-text-inverse);border-color:var(--ff-primary-500)}.ff-selector-item-active:hover{background-color:var(--ff-primary-600);border-color:var(--ff-primary-600)}.ff-fade-in{animation:fadeIn .3s ease-out}.ff-slide-up{animation:slideUp .3s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.ff-theme-accent{--ff-primary-50: var(--ff-accent-50);--ff-primary-100: var(--ff-accent-100);--ff-primary-200: var(--ff-accent-200);--ff-primary-300: var(--ff-accent-300);--ff-primary-400: var(--ff-accent-400);--ff-primary-500: var(--ff-accent-500);--ff-primary-600: var(--ff-accent-600);--ff-primary-700: var(--ff-accent-700);--ff-primary-800: var(--ff-accent-800);--ff-primary-900: var(--ff-accent-900);--ff-focus-ring: var(--ff-focus-ring-accent)}.ff-relative{position:relative}.ff-bottom-full{bottom:100%}.ff-left-1\\/2{left:50%}.ff-mx-auto{margin-left:auto;margin-right:auto}.ff-mb-2{margin-bottom:.5rem}.ff-mb-4{margin-bottom:1rem}.ff-mb-6{margin-bottom:1.5rem}.ff-ml-4{margin-left:1rem}.ff-mr-1{margin-right:.25rem}.ff-mt-0\\.5{margin-top:.125rem}.ff-mt-1{margin-top:.25rem}.ff-mt-2{margin-top:.5rem}.ff-mt-3{margin-top:.75rem}.ff-block{display:block}.ff-inline-block{display:inline-block}.ff-flex{display:flex}.ff-table{display:table}.ff-grid{display:grid}.ff-aspect-\\[3\\/4\\]{aspect-ratio:3/4}.ff-h-10{height:2.5rem}.ff-h-12{height:3rem}.ff-h-16{height:4rem}.ff-h-3{height:.75rem}.ff-h-4{height:1rem}.ff-h-5{height:1.25rem}.ff-h-6{height:1.5rem}.ff-h-8{height:2rem}.ff-h-full{height:100%}.ff-max-h-96{max-height:24rem}.ff-max-h-\\[500px\\]{max-height:500px}.ff-w-10{width:2.5rem}.ff-w-12{width:3rem}.ff-w-16{width:4rem}.ff-w-3{width:.75rem}.ff-w-4{width:1rem}.ff-w-48{width:12rem}.ff-w-5{width:1.25rem}.ff-w-6{width:1.5rem}.ff-w-8{width:2rem}.ff-w-full{width:100%}.ff-min-w-0{min-width:0px}.ff-max-w-lg{max-width:32rem}.ff-max-w-md{max-width:28rem}.ff-max-w-xl{max-width:36rem}.ff-max-w-xs{max-width:20rem}.ff-flex-1{flex:1 1 0%}.ff-flex-shrink-0{flex-shrink:0}.ff--translate-x-1\\/2{--tw-translate-x: -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))}.ff-transform{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))}@keyframes ff-spin{to{transform:rotate(360deg)}}.ff-animate-spin{animation:ff-spin 1s linear infinite}.ff-cursor-not-allowed{cursor:not-allowed}.ff-cursor-pointer{cursor:pointer}.ff-cursor-wait{cursor:wait}.ff-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ff-list-inside{list-style-position:inside}.ff-list-disc{list-style-type:disc}.ff-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.ff-flex-col{flex-direction:column}.ff-flex-wrap{flex-wrap:wrap}.ff-items-start{align-items:flex-start}.ff-items-center{align-items:center}.ff-justify-center{justify-content:center}.ff-justify-between{justify-content:space-between}.ff-gap-1{gap:.25rem}.ff-gap-2{gap:.5rem}.ff-gap-3{gap:.75rem}.ff-gap-4{gap:1rem}.ff-space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.ff-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.ff-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.ff-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.ff-space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.ff-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.ff-overflow-hidden{overflow:hidden}.ff-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ff-rounded{border-radius:.5rem}.ff-rounded-full{border-radius:9999px}.ff-rounded-lg{border-radius:.75rem}.ff-rounded-xl{border-radius:1rem}.ff-border{border-width:1px}.ff-border-2{border-width:2px}.ff-border-b{border-bottom-width:1px}.ff-border-transparent{border-color:transparent}.ff-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.ff-object-contain{-o-object-fit:contain;object-fit:contain}.ff-p-1{padding:.25rem}.ff-p-1\\.5{padding:.375rem}.ff-p-2{padding:.5rem}.ff-p-3{padding:.75rem}.ff-p-4{padding:1rem}.ff-p-6{padding:1.5rem}.ff-px-2{padding-left:.5rem;padding-right:.5rem}.ff-px-4{padding-left:1rem;padding-right:1rem}.ff-py-1{padding-top:.25rem;padding-bottom:.25rem}.ff-py-12{padding-top:3rem;padding-bottom:3rem}.ff-py-3{padding-top:.75rem;padding-bottom:.75rem}.ff-py-4{padding-top:1rem;padding-bottom:1rem}.ff-py-8{padding-top:2rem;padding-bottom:2rem}.ff-text-left{text-align:left}.ff-text-center{text-align:center}.ff-text-right{text-align:right}.ff-font-mono{font-family:JetBrains Mono,SF Mono,Monaco,monospace}.ff-text-2xl{font-size:1.5rem;line-height:2rem}.ff-text-lg{font-size:1.125rem;line-height:1.75rem}.ff-text-sm{font-size:.875rem;line-height:1.25rem}.ff-text-xl{font-size:1.25rem;line-height:1.75rem}.ff-text-xs{font-size:.75rem;line-height:1rem}.ff-font-bold{font-weight:700}.ff-font-medium{font-weight:500}.ff-font-semibold{font-weight:600}.ff-opacity-0{opacity:0}.ff-opacity-50{opacity:.5}.ff-shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ff-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ff-duration-150{transition-duration:.15s}.hover\\:ff-border-transparent:hover{border-color:transparent}.ff-group:hover .group-hover\\:ff-opacity-100{opacity:1}`, dn = "fileflow-sdk-styles";
4
4
  let ur = !1;
5
5
  function jr() {
6
6
  if (ur || typeof document > "u") return;
@@ -9,26 +9,35 @@ function jr() {
9
9
  return;
10
10
  }
11
11
  const t = document.createElement("style");
12
- t.id = dn, t.setAttribute("data-fileflow-sdk", "true"), t.textContent = Ei, document.head.appendChild(t), ur = !0;
12
+ t.id = dn, t.setAttribute("data-fileflow-sdk", "true"), t.textContent = Si, document.head.appendChild(t), ur = !0;
13
13
  }
14
- const Ll = ({
14
+ function Ei(t) {
15
+ if (!t) return;
16
+ const e = {};
17
+ return t.primaryColor && (e["--ff-primary-110"] = t.primaryColor), t.primaryHoverColor && (e["--ff-primary-120"] = t.primaryHoverColor), t.primaryTextColor && (e["--ff-gray-white"] = t.primaryTextColor), t.successColor && (e["--ff-success"] = t.successColor), t.errorColor && (e["--ff-error"] = t.errorColor), t.warningColor && (e["--ff-warning"] = t.warningColor), t.backgroundColor && (e["--ff-bg-primary"] = t.backgroundColor), t.textColor && (e["--ff-text-primary"] = t.textColor), t.textMutedColor && (e["--ff-text-muted"] = t.textMutedColor), t.borderColor && (e["--ff-border-default"] = t.borderColor), Object.keys(e).length > 0 ? e : void 0;
18
+ }
19
+ const ql = ({
15
20
  children: t,
16
- className: e = ""
21
+ className: e = "",
22
+ theme: r
17
23
  }) => {
18
- const r = ut(null), [n, a] = xi(!1);
19
- return ht(() => {
20
- jr(), a(!0);
21
- }, []), !n && typeof window < "u" && jr(), /* @__PURE__ */ bi(
24
+ const n = ut(null), [a, i] = xi(!1);
25
+ ht(() => {
26
+ jr(), i(!0);
27
+ }, []), !a && typeof window < "u" && jr();
28
+ const o = Ei(r);
29
+ return /* @__PURE__ */ bi(
22
30
  "div",
23
31
  {
24
- ref: r,
32
+ ref: n,
25
33
  className: `fileflow-sdk-root ${e}`.trim(),
26
34
  "data-fileflow-sdk": "true",
35
+ style: o,
27
36
  children: t
28
37
  }
29
38
  );
30
39
  };
31
- function ql() {
40
+ function Ml() {
32
41
  ht(() => {
33
42
  jr();
34
43
  }, []);
@@ -38,24 +47,24 @@ function ma(t, e) {
38
47
  return t.apply(e, arguments);
39
48
  };
40
49
  }
41
- const { toString: Si } = Object.prototype, { getPrototypeOf: Gr } = Object, { iterator: Qt, toStringTag: ha } = Symbol, er = /* @__PURE__ */ ((t) => (e) => {
42
- const r = Si.call(e);
50
+ const { toString: Ti } = Object.prototype, { getPrototypeOf: Gr } = Object, { iterator: Qt, toStringTag: ha } = Symbol, er = /* @__PURE__ */ ((t) => (e) => {
51
+ const r = Ti.call(e);
43
52
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
44
53
  })(/* @__PURE__ */ Object.create(null)), Ce = (t) => (t = t.toLowerCase(), (e) => er(e) === t), tr = (t) => (e) => typeof e === t, { isArray: ct } = Array, nt = tr("undefined");
45
54
  function bt(t) {
46
55
  return t !== null && !nt(t) && t.constructor !== null && !nt(t.constructor) && ye(t.constructor.isBuffer) && t.constructor.isBuffer(t);
47
56
  }
48
57
  const ga = Ce("ArrayBuffer");
49
- function Ti(t) {
58
+ function Oi(t) {
50
59
  let e;
51
60
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && ga(t.buffer), e;
52
61
  }
53
- const Oi = tr("string"), ye = tr("function"), va = tr("number"), xt = (t) => t !== null && typeof t == "object", Ci = (t) => t === !0 || t === !1, Pt = (t) => {
62
+ const Ci = tr("string"), ye = tr("function"), va = tr("number"), xt = (t) => t !== null && typeof t == "object", Ai = (t) => t === !0 || t === !1, Pt = (t) => {
54
63
  if (er(t) !== "object")
55
64
  return !1;
56
65
  const e = Gr(t);
57
66
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(ha in t) && !(Qt in t);
58
- }, Ai = (t) => {
67
+ }, Ri = (t) => {
59
68
  if (!xt(t) || bt(t))
60
69
  return !1;
61
70
  try {
@@ -63,11 +72,11 @@ const Oi = tr("string"), ye = tr("function"), va = tr("number"), xt = (t) => t !
63
72
  } catch {
64
73
  return !1;
65
74
  }
66
- }, Ri = Ce("Date"), ji = Ce("File"), Di = Ce("Blob"), Pi = Ce("FileList"), Ii = (t) => xt(t) && ye(t.pipe), Ni = (t) => {
75
+ }, ji = Ce("Date"), Di = Ce("File"), Pi = Ce("Blob"), Ii = Ce("FileList"), Ni = (t) => xt(t) && ye(t.pipe), zi = (t) => {
67
76
  let e;
68
77
  return t && (typeof FormData == "function" && t instanceof FormData || ye(t.append) && ((e = er(t)) === "formdata" || // detect form-data instance
69
78
  e === "object" && ye(t.toString) && t.toString() === "[object FormData]"));
70
- }, Fi = Ce("URLSearchParams"), [zi, Li, qi, Mi] = ["ReadableStream", "Request", "Response", "Headers"].map(Ce), $i = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
79
+ }, Fi = Ce("URLSearchParams"), [Li, qi, Mi, $i] = ["ReadableStream", "Request", "Response", "Headers"].map(Ce), Bi = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
71
80
  function wt(t, e, { allOwnKeys: r = !1 } = {}) {
72
81
  if (t === null || typeof t > "u")
73
82
  return;
@@ -105,13 +114,13 @@ function Dr() {
105
114
  arguments[a] && wt(arguments[a], n);
106
115
  return r;
107
116
  }
108
- const Bi = (t, e, r, { allOwnKeys: n } = {}) => (wt(e, (a, i) => {
117
+ const Ui = (t, e, r, { allOwnKeys: n } = {}) => (wt(e, (a, i) => {
109
118
  r && ye(a) ? t[i] = ma(a, r) : t[i] = a;
110
- }, { allOwnKeys: n }), t), Ui = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Zi = (t, e, r, n) => {
119
+ }, { allOwnKeys: n }), t), Zi = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Vi = (t, e, r, n) => {
111
120
  t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
112
121
  value: e.prototype
113
122
  }), r && Object.assign(t.prototype, r);
114
- }, Vi = (t, e, r, n) => {
123
+ }, Hi = (t, e, r, n) => {
115
124
  let a, i, o;
116
125
  const s = {};
117
126
  if (e = e || {}, t == null) return e;
@@ -125,7 +134,7 @@ const Bi = (t, e, r, { allOwnKeys: n } = {}) => (wt(e, (a, i) => {
125
134
  t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
126
135
  const n = t.indexOf(e, r);
127
136
  return n !== -1 && n === r;
128
- }, Hi = (t) => {
137
+ }, Yi = (t) => {
129
138
  if (!t) return null;
130
139
  if (ct(t)) return t;
131
140
  let e = t.length;
@@ -134,31 +143,31 @@ const Bi = (t, e, r, { allOwnKeys: n } = {}) => (wt(e, (a, i) => {
134
143
  for (; e-- > 0; )
135
144
  r[e] = t[e];
136
145
  return r;
137
- }, Yi = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Gr(Uint8Array)), Ki = (t, e) => {
146
+ }, Ki = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Gr(Uint8Array)), Ji = (t, e) => {
138
147
  const n = (t && t[Qt]).call(t);
139
148
  let a;
140
149
  for (; (a = n.next()) && !a.done; ) {
141
150
  const i = a.value;
142
151
  e.call(t, i[0], i[1]);
143
152
  }
144
- }, Ji = (t, e) => {
153
+ }, Gi = (t, e) => {
145
154
  let r;
146
155
  const n = [];
147
156
  for (; (r = t.exec(e)) !== null; )
148
157
  n.push(r);
149
158
  return n;
150
- }, Gi = Ce("HTMLFormElement"), Xi = (t) => t.toLowerCase().replace(
159
+ }, Xi = Ce("HTMLFormElement"), Qi = (t) => t.toLowerCase().replace(
151
160
  /[-_\s]([a-z\d])(\w*)/g,
152
161
  function(r, n, a) {
153
162
  return n.toUpperCase() + a;
154
163
  }
155
- ), pn = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Qi = Ce("RegExp"), xa = (t, e) => {
164
+ ), pn = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), eo = Ce("RegExp"), xa = (t, e) => {
156
165
  const r = Object.getOwnPropertyDescriptors(t), n = {};
157
166
  wt(r, (a, i) => {
158
167
  let o;
159
168
  (o = e(a, i, t)) !== !1 && (n[i] = o || a);
160
169
  }), Object.defineProperties(t, n);
161
- }, eo = (t) => {
170
+ }, to = (t) => {
162
171
  xa(t, (e, r) => {
163
172
  if (ye(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
164
173
  return !1;
@@ -173,19 +182,19 @@ const Bi = (t, e, r, { allOwnKeys: n } = {}) => (wt(e, (a, i) => {
173
182
  });
174
183
  }
175
184
  });
176
- }, to = (t, e) => {
185
+ }, ro = (t, e) => {
177
186
  const r = {}, n = (a) => {
178
187
  a.forEach((i) => {
179
188
  r[i] = !0;
180
189
  });
181
190
  };
182
191
  return ct(t) ? n(t) : n(String(t).split(e)), r;
183
- }, ro = () => {
184
- }, no = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
185
- function ao(t) {
192
+ }, no = () => {
193
+ }, ao = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
194
+ function io(t) {
186
195
  return !!(t && ye(t.append) && t[ha] === "FormData" && t[Qt]);
187
196
  }
188
- const io = (t) => {
197
+ const oo = (t) => {
189
198
  const e = new Array(10), r = (n, a) => {
190
199
  if (xt(n)) {
191
200
  if (e.indexOf(n) >= 0)
@@ -204,72 +213,72 @@ const io = (t) => {
204
213
  return n;
205
214
  };
206
215
  return r(t, 0);
207
- }, oo = Ce("AsyncFunction"), so = (t) => t && (xt(t) || ye(t)) && ye(t.then) && ye(t.catch), wa = ((t, e) => t ? setImmediate : e ? ((r, n) => (Ue.addEventListener("message", ({ source: a, data: i }) => {
216
+ }, so = Ce("AsyncFunction"), co = (t) => t && (xt(t) || ye(t)) && ye(t.then) && ye(t.catch), wa = ((t, e) => t ? setImmediate : e ? ((r, n) => (Ue.addEventListener("message", ({ source: a, data: i }) => {
208
217
  a === Ue && i === r && n.length && n.shift()();
209
218
  }, !1), (a) => {
210
219
  n.push(a), Ue.postMessage(r, "*");
211
220
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
212
221
  typeof setImmediate == "function",
213
222
  ye(Ue.postMessage)
214
- ), co = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ue) : typeof process < "u" && process.nextTick || wa, lo = (t) => t != null && ye(t[Qt]), p = {
223
+ ), lo = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ue) : typeof process < "u" && process.nextTick || wa, po = (t) => t != null && ye(t[Qt]), p = {
215
224
  isArray: ct,
216
225
  isArrayBuffer: ga,
217
226
  isBuffer: bt,
218
- isFormData: Ni,
219
- isArrayBufferView: Ti,
220
- isString: Oi,
227
+ isFormData: zi,
228
+ isArrayBufferView: Oi,
229
+ isString: Ci,
221
230
  isNumber: va,
222
- isBoolean: Ci,
231
+ isBoolean: Ai,
223
232
  isObject: xt,
224
233
  isPlainObject: Pt,
225
- isEmptyObject: Ai,
226
- isReadableStream: zi,
227
- isRequest: Li,
228
- isResponse: qi,
229
- isHeaders: Mi,
234
+ isEmptyObject: Ri,
235
+ isReadableStream: Li,
236
+ isRequest: qi,
237
+ isResponse: Mi,
238
+ isHeaders: $i,
230
239
  isUndefined: nt,
231
- isDate: Ri,
232
- isFile: ji,
233
- isBlob: Di,
234
- isRegExp: Qi,
240
+ isDate: ji,
241
+ isFile: Di,
242
+ isBlob: Pi,
243
+ isRegExp: eo,
235
244
  isFunction: ye,
236
- isStream: Ii,
245
+ isStream: Ni,
237
246
  isURLSearchParams: Fi,
238
- isTypedArray: Yi,
239
- isFileList: Pi,
247
+ isTypedArray: Ki,
248
+ isFileList: Ii,
240
249
  forEach: wt,
241
250
  merge: Dr,
242
- extend: Bi,
243
- trim: $i,
244
- stripBOM: Ui,
245
- inherits: Zi,
246
- toFlatObject: Vi,
251
+ extend: Ui,
252
+ trim: Bi,
253
+ stripBOM: Zi,
254
+ inherits: Vi,
255
+ toFlatObject: Hi,
247
256
  kindOf: er,
248
257
  kindOfTest: Ce,
249
258
  endsWith: Wi,
250
- toArray: Hi,
251
- forEachEntry: Ki,
252
- matchAll: Ji,
253
- isHTMLForm: Gi,
259
+ toArray: Yi,
260
+ forEachEntry: Ji,
261
+ matchAll: Gi,
262
+ isHTMLForm: Xi,
254
263
  hasOwnProperty: pn,
255
264
  hasOwnProp: pn,
256
265
  // an alias to avoid ESLint no-prototype-builtins detection
257
266
  reduceDescriptors: xa,
258
- freezeMethods: eo,
259
- toObjectSet: to,
260
- toCamelCase: Xi,
261
- noop: ro,
262
- toFiniteNumber: no,
267
+ freezeMethods: to,
268
+ toObjectSet: ro,
269
+ toCamelCase: Qi,
270
+ noop: no,
271
+ toFiniteNumber: ao,
263
272
  findKey: ya,
264
273
  global: Ue,
265
274
  isContextDefined: ba,
266
- isSpecCompliantForm: ao,
267
- toJSONObject: io,
268
- isAsyncFn: oo,
269
- isThenable: so,
275
+ isSpecCompliantForm: io,
276
+ toJSONObject: oo,
277
+ isAsyncFn: so,
278
+ isThenable: co,
270
279
  setImmediate: wa,
271
- asap: co,
272
- isIterable: lo
280
+ asap: lo,
281
+ isIterable: po
273
282
  };
274
283
  function L(t, e, r, n, a) {
275
284
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), r && (this.config = r), n && (this.request = n), a && (this.response = a, this.status = a.status ? a.status : null);
@@ -323,22 +332,22 @@ L.from = (t, e, r, n, a, i) => {
323
332
  const s = t && t.message ? t.message : "Error", d = e == null && t ? t.code : e;
324
333
  return L.call(o, s, d, r, n, a), t && o.cause == null && Object.defineProperty(o, "cause", { value: t, configurable: !0 }), o.name = t && t.name || "Error", i && Object.assign(o, i), o;
325
334
  };
326
- const po = null;
335
+ const fo = null;
327
336
  function Pr(t) {
328
337
  return p.isPlainObject(t) || p.isArray(t);
329
338
  }
330
- function Ea(t) {
339
+ function Sa(t) {
331
340
  return p.endsWith(t, "[]") ? t.slice(0, -2) : t;
332
341
  }
333
342
  function fn(t, e, r) {
334
343
  return t ? t.concat(e).map(function(a, i) {
335
- return a = Ea(a), !r && i ? "[" + a + "]" : a;
344
+ return a = Sa(a), !r && i ? "[" + a + "]" : a;
336
345
  }).join(r ? "." : "") : e;
337
346
  }
338
- function fo(t) {
347
+ function uo(t) {
339
348
  return p.isArray(t) && !t.some(Pr);
340
349
  }
341
- const uo = p.toFlatObject(p, {}, null, function(e) {
350
+ const mo = p.toFlatObject(p, {}, null, function(e) {
342
351
  return /^is[A-Z]/.test(e);
343
352
  });
344
353
  function rr(t, e, r) {
@@ -369,8 +378,8 @@ function rr(t, e, r) {
369
378
  if (f && !h && typeof f == "object") {
370
379
  if (p.endsWith(m, "{}"))
371
380
  m = n ? m : m.slice(0, -2), f = JSON.stringify(f);
372
- else if (p.isArray(f) && fo(f) || (p.isFileList(f) || p.endsWith(m, "[]")) && (A = p.toArray(f)))
373
- return m = Ea(m), A.forEach(function(R, N) {
381
+ else if (p.isArray(f) && uo(f) || (p.isFileList(f) || p.endsWith(m, "[]")) && (A = p.toArray(f)))
382
+ return m = Sa(m), A.forEach(function(R, N) {
374
383
  !(p.isUndefined(R) || R === null) && e.append(
375
384
  // eslint-disable-next-line no-nested-ternary
376
385
  o === !0 ? fn([m], N, i) : o === null ? m : m + "[]",
@@ -380,7 +389,7 @@ function rr(t, e, r) {
380
389
  }
381
390
  return Pr(f) ? !0 : (e.append(fn(h, m, i), c(f)), !1);
382
391
  }
383
- const u = [], b = Object.assign(uo, {
392
+ const u = [], b = Object.assign(mo, {
384
393
  defaultVisitor: l,
385
394
  convertValue: c,
386
395
  isVisitable: Pr
@@ -421,11 +430,11 @@ function un(t) {
421
430
  function Xr(t, e) {
422
431
  this._pairs = [], t && rr(t, this, e);
423
432
  }
424
- const Sa = Xr.prototype;
425
- Sa.append = function(e, r) {
433
+ const Ea = Xr.prototype;
434
+ Ea.append = function(e, r) {
426
435
  this._pairs.push([e, r]);
427
436
  };
428
- Sa.toString = function(e) {
437
+ Ea.toString = function(e) {
429
438
  const r = e ? function(n) {
430
439
  return e.call(this, n, un);
431
440
  } : un;
@@ -433,13 +442,13 @@ Sa.toString = function(e) {
433
442
  return r(a[0]) + "=" + r(a[1]);
434
443
  }, "").join("&");
435
444
  };
436
- function mo(t) {
445
+ function ho(t) {
437
446
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
438
447
  }
439
448
  function Ta(t, e, r) {
440
449
  if (!e)
441
450
  return t;
442
- const n = r && r.encode || mo;
451
+ const n = r && r.encode || ho;
443
452
  p.isFunction(r) && (r = {
444
453
  serialize: r
445
454
  });
@@ -509,27 +518,27 @@ const Oa = {
509
518
  silentJSONParsing: !0,
510
519
  forcedJSONParsing: !0,
511
520
  clarifyTimeoutError: !1
512
- }, ho = typeof URLSearchParams < "u" ? URLSearchParams : Xr, go = typeof FormData < "u" ? FormData : null, vo = typeof Blob < "u" ? Blob : null, yo = {
521
+ }, go = typeof URLSearchParams < "u" ? URLSearchParams : Xr, vo = typeof FormData < "u" ? FormData : null, yo = typeof Blob < "u" ? Blob : null, bo = {
513
522
  isBrowser: !0,
514
523
  classes: {
515
- URLSearchParams: ho,
516
- FormData: go,
517
- Blob: vo
524
+ URLSearchParams: go,
525
+ FormData: vo,
526
+ Blob: yo
518
527
  },
519
528
  protocols: ["http", "https", "file", "blob", "url", "data"]
520
- }, Qr = typeof window < "u" && typeof document < "u", Ir = typeof navigator == "object" && navigator || void 0, bo = Qr && (!Ir || ["ReactNative", "NativeScript", "NS"].indexOf(Ir.product) < 0), xo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
521
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", wo = Qr && window.location.href || "http://localhost", _o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
529
+ }, Qr = typeof window < "u" && typeof document < "u", Ir = typeof navigator == "object" && navigator || void 0, xo = Qr && (!Ir || ["ReactNative", "NativeScript", "NS"].indexOf(Ir.product) < 0), wo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
530
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", _o = Qr && window.location.href || "http://localhost", ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
522
531
  __proto__: null,
523
532
  hasBrowserEnv: Qr,
524
- hasStandardBrowserEnv: bo,
525
- hasStandardBrowserWebWorkerEnv: xo,
533
+ hasStandardBrowserEnv: xo,
534
+ hasStandardBrowserWebWorkerEnv: wo,
526
535
  navigator: Ir,
527
- origin: wo
536
+ origin: _o
528
537
  }, Symbol.toStringTag, { value: "Module" })), ue = {
529
- ..._o,
530
- ...yo
538
+ ...ko,
539
+ ...bo
531
540
  };
532
- function ko(t, e) {
541
+ function So(t, e) {
533
542
  return rr(t, new ue.classes.URLSearchParams(), {
534
543
  visitor: function(r, n, a, i) {
535
544
  return ue.isNode && p.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
@@ -540,7 +549,7 @@ function ko(t, e) {
540
549
  function Eo(t) {
541
550
  return p.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
542
551
  }
543
- function So(t) {
552
+ function To(t) {
544
553
  const e = {}, r = Object.keys(t);
545
554
  let n;
546
555
  const a = r.length;
@@ -554,7 +563,7 @@ function Ca(t) {
554
563
  let o = r[i++];
555
564
  if (o === "__proto__") return !0;
556
565
  const s = Number.isFinite(+o), d = i >= r.length;
557
- return o = !o && p.isArray(a) ? a.length : o, d ? (p.hasOwnProp(a, o) ? a[o] = [a[o], n] : a[o] = n, !s) : ((!a[o] || !p.isObject(a[o])) && (a[o] = []), e(r, n, a[o], i) && p.isArray(a[o]) && (a[o] = So(a[o])), !s);
566
+ return o = !o && p.isArray(a) ? a.length : o, d ? (p.hasOwnProp(a, o) ? a[o] = [a[o], n] : a[o] = n, !s) : ((!a[o] || !p.isObject(a[o])) && (a[o] = []), e(r, n, a[o], i) && p.isArray(a[o]) && (a[o] = To(a[o])), !s);
558
567
  }
559
568
  if (p.isFormData(t) && p.isFunction(t.entries)) {
560
569
  const r = {};
@@ -564,7 +573,7 @@ function Ca(t) {
564
573
  }
565
574
  return null;
566
575
  }
567
- function To(t, e, r) {
576
+ function Oo(t, e, r) {
568
577
  if (p.isString(t))
569
578
  try {
570
579
  return (e || JSON.parse)(t), p.trim(t);
@@ -590,7 +599,7 @@ const _t = {
590
599
  let s;
591
600
  if (i) {
592
601
  if (n.indexOf("application/x-www-form-urlencoded") > -1)
593
- return ko(e, this.formSerializer).toString();
602
+ return So(e, this.formSerializer).toString();
594
603
  if ((s = p.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
595
604
  const d = this.env && this.env.FormData;
596
605
  return rr(
@@ -600,7 +609,7 @@ const _t = {
600
609
  );
601
610
  }
602
611
  }
603
- return i || a ? (r.setContentType("application/json", !1), To(e)) : e;
612
+ return i || a ? (r.setContentType("application/json", !1), Oo(e)) : e;
604
613
  }],
605
614
  transformResponse: [function(e) {
606
615
  const r = this.transitional || _t.transitional, n = r && r.forcedJSONParsing, a = this.responseType === "json";
@@ -643,7 +652,7 @@ const _t = {
643
652
  p.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
644
653
  _t.headers[t] = {};
645
654
  });
646
- const Oo = p.toObjectSet([
655
+ const Co = p.toObjectSet([
647
656
  "age",
648
657
  "authorization",
649
658
  "content-length",
@@ -661,12 +670,12 @@ const Oo = p.toObjectSet([
661
670
  "referer",
662
671
  "retry-after",
663
672
  "user-agent"
664
- ]), Co = (t) => {
673
+ ]), Ao = (t) => {
665
674
  const e = {};
666
675
  let r, n, a;
667
676
  return t && t.split(`
668
677
  `).forEach(function(o) {
669
- a = o.indexOf(":"), r = o.substring(0, a).trim().toLowerCase(), n = o.substring(a + 1).trim(), !(!r || e[r] && Oo[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
678
+ a = o.indexOf(":"), r = o.substring(0, a).trim().toLowerCase(), n = o.substring(a + 1).trim(), !(!r || e[r] && Co[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
670
679
  }), e;
671
680
  }, hn = Symbol("internals");
672
681
  function ft(t) {
@@ -675,14 +684,14 @@ function ft(t) {
675
684
  function It(t) {
676
685
  return t === !1 || t == null ? t : p.isArray(t) ? t.map(It) : String(t);
677
686
  }
678
- function Ao(t) {
687
+ function Ro(t) {
679
688
  const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
680
689
  let n;
681
690
  for (; n = r.exec(t); )
682
691
  e[n[1]] = n[2];
683
692
  return e;
684
693
  }
685
- const Ro = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
694
+ const jo = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
686
695
  function mr(t, e, r, n, a) {
687
696
  if (p.isFunction(n))
688
697
  return n.call(this, e, r);
@@ -693,10 +702,10 @@ function mr(t, e, r, n, a) {
693
702
  return n.test(e);
694
703
  }
695
704
  }
696
- function jo(t) {
705
+ function Do(t) {
697
706
  return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
698
707
  }
699
- function Do(t, e) {
708
+ function Po(t, e) {
700
709
  const r = p.toCamelCase(" " + e);
701
710
  ["get", "set", "has"].forEach((n) => {
702
711
  Object.defineProperty(t, n + r, {
@@ -723,8 +732,8 @@ let be = class {
723
732
  const o = (s, d) => p.forEach(s, (c, l) => i(c, l, d));
724
733
  if (p.isPlainObject(e) || e instanceof this.constructor)
725
734
  o(e, r);
726
- else if (p.isString(e) && (e = e.trim()) && !Ro(e))
727
- o(Co(e), r);
735
+ else if (p.isString(e) && (e = e.trim()) && !jo(e))
736
+ o(Ao(e), r);
728
737
  else if (p.isObject(e) && p.isIterable(e)) {
729
738
  let s = {}, d, c;
730
739
  for (const l of e) {
@@ -745,7 +754,7 @@ let be = class {
745
754
  if (!r)
746
755
  return a;
747
756
  if (r === !0)
748
- return Ao(a);
757
+ return Ro(a);
749
758
  if (p.isFunction(r))
750
759
  return r.call(this, a, n);
751
760
  if (p.isRegExp(r))
@@ -789,7 +798,7 @@ let be = class {
789
798
  r[o] = It(a), delete r[i];
790
799
  return;
791
800
  }
792
- const s = e ? jo(i) : String(i).trim();
801
+ const s = e ? Do(i) : String(i).trim();
793
802
  s !== i && delete r[i], r[s] = It(a), n[s] = !0;
794
803
  }), this;
795
804
  }
@@ -828,7 +837,7 @@ let be = class {
828
837
  }).accessors, a = this.prototype;
829
838
  function i(o) {
830
839
  const s = ft(o);
831
- n[s] || (Do(a, o), n[s] = !0);
840
+ n[s] || (Po(a, o), n[s] = !0);
832
841
  }
833
842
  return p.isArray(e) ? e.forEach(i) : i(e), this;
834
843
  }
@@ -870,11 +879,11 @@ function Ra(t, e, r) {
870
879
  r
871
880
  ));
872
881
  }
873
- function Po(t) {
882
+ function Io(t) {
874
883
  const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
875
884
  return e && e[1] || "";
876
885
  }
877
- function Io(t, e) {
886
+ function No(t, e) {
878
887
  t = t || 10;
879
888
  const r = new Array(t), n = new Array(t);
880
889
  let a = 0, i = 0, o;
@@ -890,7 +899,7 @@ function Io(t, e) {
890
899
  return x ? Math.round(b * 1e3 / x) : void 0;
891
900
  };
892
901
  }
893
- function No(t, e) {
902
+ function zo(t, e) {
894
903
  let r = 0, n = 1e3 / e, a, i;
895
904
  const o = (c, l = Date.now()) => {
896
905
  r = l, a = null, i && (clearTimeout(i), i = null), t(...c);
@@ -902,10 +911,10 @@ function No(t, e) {
902
911
  }, n - u)));
903
912
  }, () => a && o(a)];
904
913
  }
905
- const Ft = (t, e, r = 3) => {
914
+ const zt = (t, e, r = 3) => {
906
915
  let n = 0;
907
- const a = Io(50, 250);
908
- return No((i) => {
916
+ const a = No(50, 250);
917
+ return zo((i) => {
909
918
  const o = i.loaded, s = i.lengthComputable ? i.total : void 0, d = o - n, c = a(d), l = o <= s;
910
919
  n = o;
911
920
  const u = {
@@ -931,7 +940,7 @@ const Ft = (t, e, r = 3) => {
931
940
  }, vn = (t) => (...e) => p.asap(() => t(...e)), Fo = ue.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, ue.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
932
941
  new URL(ue.origin),
933
942
  ue.navigator && /(msie|trident)/i.test(ue.navigator.userAgent)
934
- ) : () => !0, zo = ue.hasStandardBrowserEnv ? (
943
+ ) : () => !0, Lo = ue.hasStandardBrowserEnv ? (
935
944
  // Standard browser envs support document.cookie
936
945
  {
937
946
  write(t, e, r, n, a, i, o) {
@@ -960,15 +969,15 @@ const Ft = (t, e, r = 3) => {
960
969
  }
961
970
  }
962
971
  );
963
- function Lo(t) {
972
+ function qo(t) {
964
973
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
965
974
  }
966
- function qo(t, e) {
975
+ function Mo(t, e) {
967
976
  return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
968
977
  }
969
978
  function ja(t, e, r) {
970
- let n = !Lo(e);
971
- return t && (n || r == !1) ? qo(t, e) : e;
979
+ let n = !qo(e);
980
+ return t && (n || r == !1) ? Mo(t, e) : e;
972
981
  }
973
982
  const yn = (t) => t instanceof be ? { ...t } : t;
974
983
  function Ve(t, e) {
@@ -1052,11 +1061,11 @@ const Da = (t) => {
1052
1061
  }
1053
1062
  }
1054
1063
  if (ue.hasStandardBrowserEnv && (n && p.isFunction(n) && (n = n(e)), n || n !== !1 && Fo(e.url))) {
1055
- const d = a && i && zo.read(i);
1064
+ const d = a && i && Lo.read(i);
1056
1065
  d && o.set(a, d);
1057
1066
  }
1058
1067
  return e;
1059
- }, Mo = typeof XMLHttpRequest < "u", $o = Mo && function(t) {
1068
+ }, $o = typeof XMLHttpRequest < "u", Bo = $o && function(t) {
1060
1069
  return new Promise(function(r, n) {
1061
1070
  const a = Da(t);
1062
1071
  let i = a.data;
@@ -1104,17 +1113,17 @@ const Da = (t) => {
1104
1113
  )), h = null;
1105
1114
  }, i === void 0 && o.setContentType(null), "setRequestHeader" in h && p.forEach(o.toJSON(), function(N, y) {
1106
1115
  h.setRequestHeader(y, N);
1107
- }), p.isUndefined(a.withCredentials) || (h.withCredentials = !!a.withCredentials), s && s !== "json" && (h.responseType = a.responseType), c && ([b, f] = Ft(c, !0), h.addEventListener("progress", b)), d && h.upload && ([u, x] = Ft(d), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", x)), (a.cancelToken || a.signal) && (l = (R) => {
1116
+ }), p.isUndefined(a.withCredentials) || (h.withCredentials = !!a.withCredentials), s && s !== "json" && (h.responseType = a.responseType), c && ([b, f] = zt(c, !0), h.addEventListener("progress", b)), d && h.upload && ([u, x] = zt(d), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", x)), (a.cancelToken || a.signal) && (l = (R) => {
1108
1117
  h && (n(!R || R.type ? new lt(null, t, h) : R), h.abort(), h = null);
1109
1118
  }, a.cancelToken && a.cancelToken.subscribe(l), a.signal && (a.signal.aborted ? l() : a.signal.addEventListener("abort", l)));
1110
- const K = Po(a.url);
1119
+ const K = Io(a.url);
1111
1120
  if (K && ue.protocols.indexOf(K) === -1) {
1112
1121
  n(new L("Unsupported protocol " + K + ":", L.ERR_BAD_REQUEST, t));
1113
1122
  return;
1114
1123
  }
1115
1124
  h.send(i || null);
1116
1125
  });
1117
- }, Bo = (t, e) => {
1126
+ }, Uo = (t, e) => {
1118
1127
  const { length: r } = t = t ? t.filter(Boolean) : [];
1119
1128
  if (e || r) {
1120
1129
  let n = new AbortController(), a;
@@ -1137,7 +1146,7 @@ const Da = (t) => {
1137
1146
  const { signal: d } = n;
1138
1147
  return d.unsubscribe = () => p.asap(s), d;
1139
1148
  }
1140
- }, Uo = function* (t, e) {
1149
+ }, Zo = function* (t, e) {
1141
1150
  let r = t.byteLength;
1142
1151
  if (r < e) {
1143
1152
  yield t;
@@ -1146,10 +1155,10 @@ const Da = (t) => {
1146
1155
  let n = 0, a;
1147
1156
  for (; n < r; )
1148
1157
  a = n + e, yield t.slice(n, a), n = a;
1149
- }, Zo = async function* (t, e) {
1150
- for await (const r of Vo(t))
1151
- yield* Uo(r, e);
1152
- }, Vo = async function* (t) {
1158
+ }, Vo = async function* (t, e) {
1159
+ for await (const r of Ho(t))
1160
+ yield* Zo(r, e);
1161
+ }, Ho = async function* (t) {
1153
1162
  if (t[Symbol.asyncIterator]) {
1154
1163
  yield* t;
1155
1164
  return;
@@ -1166,7 +1175,7 @@ const Da = (t) => {
1166
1175
  await e.cancel();
1167
1176
  }
1168
1177
  }, bn = (t, e, r, n) => {
1169
- const a = Zo(t, e);
1178
+ const a = Vo(t, e);
1170
1179
  let i = 0, o, s = (d) => {
1171
1180
  o || (o = !0, n && n(d));
1172
1181
  };
@@ -1206,7 +1215,7 @@ const Da = (t) => {
1206
1215
  } catch {
1207
1216
  return !1;
1208
1217
  }
1209
- }, Ho = (t) => {
1218
+ }, Yo = (t) => {
1210
1219
  t = p.merge.call({
1211
1220
  skipUndefined: !0
1212
1221
  }, Wo, t);
@@ -1268,9 +1277,9 @@ const Da = (t) => {
1268
1277
  fetchOptions: ke
1269
1278
  } = Da(f), Ae = e || fetch;
1270
1279
  B = B ? (B + "").toLowerCase() : "text";
1271
- let Ee = Bo([K, R && R.toAbortSignal()], N), ve = null;
1272
- const G = Ee && Ee.unsubscribe && (() => {
1273
- Ee.unsubscribe();
1280
+ let Se = Uo([K, R && R.toAbortSignal()], N), ve = null;
1281
+ const G = Se && Se.unsubscribe && (() => {
1282
+ Se.unsubscribe();
1274
1283
  });
1275
1284
  let ce;
1276
1285
  try {
@@ -1281,17 +1290,17 @@ const Da = (t) => {
1281
1290
  duplex: "half"
1282
1291
  }), D;
1283
1292
  if (p.isFormData(A) && (D = _.headers.get("content-type")) && pe.setContentType(D), _.body) {
1284
- const [z, C] = gn(
1293
+ const [F, C] = gn(
1285
1294
  ce,
1286
- Ft(vn($))
1295
+ zt(vn($))
1287
1296
  );
1288
- A = bn(_.body, xn, z, C);
1297
+ A = bn(_.body, xn, F, C);
1289
1298
  }
1290
1299
  }
1291
1300
  p.isString(ge) || (ge = ge ? "include" : "omit");
1292
1301
  const re = i && "credentials" in r.prototype, xe = {
1293
1302
  ...ke,
1294
- signal: Ee,
1303
+ signal: Se,
1295
1304
  method: h.toUpperCase(),
1296
1305
  headers: pe.normalize().toJSON(),
1297
1306
  body: A,
@@ -1306,12 +1315,12 @@ const Da = (t) => {
1306
1315
  ["status", "statusText", "headers"].forEach((U) => {
1307
1316
  _[U] = fe[U];
1308
1317
  });
1309
- const D = p.toFiniteNumber(fe.headers.get("content-length")), [z, C] = y && gn(
1318
+ const D = p.toFiniteNumber(fe.headers.get("content-length")), [F, C] = y && gn(
1310
1319
  D,
1311
- Ft(vn(y), !0)
1320
+ zt(vn(y), !0)
1312
1321
  ) || [];
1313
1322
  fe = new n(
1314
- bn(fe.body, xn, z, () => {
1323
+ bn(fe.body, xn, F, () => {
1315
1324
  C && C(), G && G();
1316
1325
  }),
1317
1326
  _
@@ -1338,22 +1347,22 @@ const Da = (t) => {
1338
1347
  ) : L.from(re, re && re.code, f, ve);
1339
1348
  }
1340
1349
  };
1341
- }, Yo = /* @__PURE__ */ new Map(), Pa = (t) => {
1350
+ }, Ko = /* @__PURE__ */ new Map(), Pa = (t) => {
1342
1351
  let e = t && t.env || {};
1343
1352
  const { fetch: r, Request: n, Response: a } = e, i = [
1344
1353
  n,
1345
1354
  a,
1346
1355
  r
1347
1356
  ];
1348
- let o = i.length, s = o, d, c, l = Yo;
1357
+ let o = i.length, s = o, d, c, l = Ko;
1349
1358
  for (; s--; )
1350
- d = i[s], c = l.get(d), c === void 0 && l.set(d, c = s ? /* @__PURE__ */ new Map() : Ho(e)), l = c;
1359
+ d = i[s], c = l.get(d), c === void 0 && l.set(d, c = s ? /* @__PURE__ */ new Map() : Yo(e)), l = c;
1351
1360
  return c;
1352
1361
  };
1353
1362
  Pa();
1354
1363
  const en = {
1355
- http: po,
1356
- xhr: $o,
1364
+ http: fo,
1365
+ xhr: Bo,
1357
1366
  fetch: {
1358
1367
  get: Pa
1359
1368
  }
@@ -1367,8 +1376,8 @@ p.forEach(en, (t, e) => {
1367
1376
  Object.defineProperty(t, "adapterName", { value: e });
1368
1377
  }
1369
1378
  });
1370
- const En = (t) => `- ${t}`, Ko = (t) => p.isFunction(t) || t === null || t === !1;
1371
- function Jo(t, e) {
1379
+ const Sn = (t) => `- ${t}`, Jo = (t) => p.isFunction(t) || t === null || t === !1;
1380
+ function Go(t, e) {
1372
1381
  t = p.isArray(t) ? t : [t];
1373
1382
  const { length: r } = t;
1374
1383
  let n, a;
@@ -1376,7 +1385,7 @@ function Jo(t, e) {
1376
1385
  for (let o = 0; o < r; o++) {
1377
1386
  n = t[o];
1378
1387
  let s;
1379
- if (a = n, !Ko(n) && (a = en[(s = String(n)).toLowerCase()], a === void 0))
1388
+ if (a = n, !Jo(n) && (a = en[(s = String(n)).toLowerCase()], a === void 0))
1380
1389
  throw new L(`Unknown adapter '${s}'`);
1381
1390
  if (a && (p.isFunction(a) || (a = a.get(e))))
1382
1391
  break;
@@ -1387,8 +1396,8 @@ function Jo(t, e) {
1387
1396
  ([d, c]) => `adapter ${d} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
1388
1397
  );
1389
1398
  let s = r ? o.length > 1 ? `since :
1390
- ` + o.map(En).join(`
1391
- `) : " " + En(o[0]) : "as no adapter specified";
1399
+ ` + o.map(Sn).join(`
1400
+ `) : " " + Sn(o[0]) : "as no adapter specified";
1392
1401
  throw new L(
1393
1402
  "There is no suitable adapter to dispatch the request " + s,
1394
1403
  "ERR_NOT_SUPPORT"
@@ -1401,7 +1410,7 @@ const Ia = {
1401
1410
  * Resolve an adapter from a list of adapter names or functions.
1402
1411
  * @type {Function}
1403
1412
  */
1404
- getAdapter: Jo,
1413
+ getAdapter: Go,
1405
1414
  /**
1406
1415
  * Exposes all known adapters
1407
1416
  * @type {Object<string, Function|Object>}
@@ -1412,7 +1421,7 @@ function gr(t) {
1412
1421
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
1413
1422
  throw new lt(null, t);
1414
1423
  }
1415
- function Sn(t) {
1424
+ function En(t) {
1416
1425
  return gr(t), t.headers = be.from(t.headers), t.data = hr.call(
1417
1426
  t,
1418
1427
  t.transformRequest
@@ -1458,7 +1467,7 @@ nr.transitional = function(e, r, n) {
1458
1467
  nr.spelling = function(e) {
1459
1468
  return (r, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
1460
1469
  };
1461
- function Go(t, e, r) {
1470
+ function Xo(t, e, r) {
1462
1471
  if (typeof t != "object")
1463
1472
  throw new L("options must be an object", L.ERR_BAD_OPTION_VALUE);
1464
1473
  const n = Object.keys(t);
@@ -1476,7 +1485,7 @@ function Go(t, e, r) {
1476
1485
  }
1477
1486
  }
1478
1487
  const Nt = {
1479
- assertOptions: Go,
1488
+ assertOptions: Xo,
1480
1489
  validators: nr
1481
1490
  }, Re = Nt.validators;
1482
1491
  let Ze = class {
@@ -1548,7 +1557,7 @@ let Ze = class {
1548
1557
  });
1549
1558
  let l, u = 0, b;
1550
1559
  if (!d) {
1551
- const f = [Sn.bind(this), void 0];
1560
+ const f = [En.bind(this), void 0];
1552
1561
  for (f.unshift(...s), f.push(...c), b = f.length, l = Promise.resolve(r); u < b; )
1553
1562
  l = l.then(f[u++], f[u++]);
1554
1563
  return l;
@@ -1565,7 +1574,7 @@ let Ze = class {
1565
1574
  }
1566
1575
  }
1567
1576
  try {
1568
- l = Sn.call(this, x);
1577
+ l = En.call(this, x);
1569
1578
  } catch (f) {
1570
1579
  return Promise.reject(f);
1571
1580
  }
@@ -1603,7 +1612,7 @@ p.forEach(["post", "put", "patch"], function(e) {
1603
1612
  }
1604
1613
  Ze.prototype[e] = r(), Ze.prototype[e + "Form"] = r(!0);
1605
1614
  });
1606
- let Xo = class Fa {
1615
+ let Qo = class za {
1607
1616
  constructor(e) {
1608
1617
  if (typeof e != "function")
1609
1618
  throw new TypeError("executor must be a function.");
@@ -1669,19 +1678,19 @@ let Xo = class Fa {
1669
1678
  static source() {
1670
1679
  let e;
1671
1680
  return {
1672
- token: new Fa(function(a) {
1681
+ token: new za(function(a) {
1673
1682
  e = a;
1674
1683
  }),
1675
1684
  cancel: e
1676
1685
  };
1677
1686
  }
1678
1687
  };
1679
- function Qo(t) {
1688
+ function es(t) {
1680
1689
  return function(r) {
1681
1690
  return t.apply(null, r);
1682
1691
  };
1683
1692
  }
1684
- function es(t) {
1693
+ function ts(t) {
1685
1694
  return p.isObject(t) && t.isAxiosError === !0;
1686
1695
  }
1687
1696
  const Nr = {
@@ -1758,16 +1767,16 @@ const Nr = {
1758
1767
  Object.entries(Nr).forEach(([t, e]) => {
1759
1768
  Nr[e] = t;
1760
1769
  });
1761
- function za(t) {
1770
+ function Fa(t) {
1762
1771
  const e = new Ze(t), r = ma(Ze.prototype.request, e);
1763
1772
  return p.extend(r, Ze.prototype, e, { allOwnKeys: !0 }), p.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(a) {
1764
- return za(Ve(t, a));
1773
+ return Fa(Ve(t, a));
1765
1774
  }, r;
1766
1775
  }
1767
- const ae = za(_t);
1776
+ const ae = Fa(_t);
1768
1777
  ae.Axios = Ze;
1769
1778
  ae.CanceledError = lt;
1770
- ae.CancelToken = Xo;
1779
+ ae.CancelToken = Qo;
1771
1780
  ae.isCancel = Aa;
1772
1781
  ae.VERSION = Na;
1773
1782
  ae.toFormData = rr;
@@ -1776,8 +1785,8 @@ ae.Cancel = ae.CanceledError;
1776
1785
  ae.all = function(e) {
1777
1786
  return Promise.all(e);
1778
1787
  };
1779
- ae.spread = Qo;
1780
- ae.isAxiosError = es;
1788
+ ae.spread = es;
1789
+ ae.isAxiosError = ts;
1781
1790
  ae.mergeConfig = Ve;
1782
1791
  ae.AxiosHeaders = be;
1783
1792
  ae.formToJSON = (t) => Ca(p.isHTMLForm(t) ? new FormData(t) : t);
@@ -1785,24 +1794,24 @@ ae.getAdapter = Ia.getAdapter;
1785
1794
  ae.HttpStatusCode = Nr;
1786
1795
  ae.default = ae;
1787
1796
  const {
1788
- Axios: Bl,
1789
- AxiosError: Ul,
1790
- CanceledError: Zl,
1791
- isCancel: Vl,
1797
+ Axios: Ul,
1798
+ AxiosError: Zl,
1799
+ CanceledError: Vl,
1800
+ isCancel: Hl,
1792
1801
  CancelToken: Wl,
1793
- VERSION: Hl,
1794
- all: Yl,
1795
- Cancel: Kl,
1796
- isAxiosError: Jl,
1797
- spread: Gl,
1798
- toFormData: Xl,
1799
- AxiosHeaders: Ql,
1800
- HttpStatusCode: ed,
1801
- formToJSON: td,
1802
- getAdapter: rd,
1803
- mergeConfig: nd
1802
+ VERSION: Yl,
1803
+ all: Kl,
1804
+ Cancel: Jl,
1805
+ isAxiosError: Gl,
1806
+ spread: Xl,
1807
+ toFormData: Ql,
1808
+ AxiosHeaders: ed,
1809
+ HttpStatusCode: td,
1810
+ formToJSON: rd,
1811
+ getAdapter: nd,
1812
+ mergeConfig: ad
1804
1813
  } = ae;
1805
- class ts {
1814
+ class rs {
1806
1815
  constructor(e) {
1807
1816
  const r = {
1808
1817
  "Content-Type": "application/json"
@@ -1815,7 +1824,7 @@ class ts {
1815
1824
  (n) => n,
1816
1825
  (n) => {
1817
1826
  var a, i;
1818
- throw (i = (a = n.response) == null ? void 0 : a.data) != null && i.error ? new rs(
1827
+ throw (i = (a = n.response) == null ? void 0 : a.data) != null && i.error ? new ns(
1819
1828
  n.response.data.error.code,
1820
1829
  n.response.data.error.message,
1821
1830
  n.response.status,
@@ -1863,24 +1872,24 @@ class ts {
1863
1872
  return (await this.client.post("/api/v1/kyc/verify", { sessionId: e, acceptWarnings: r })).data.data;
1864
1873
  }
1865
1874
  }
1866
- class rs extends Error {
1875
+ class ns extends Error {
1867
1876
  constructor(e, r, n, a) {
1868
1877
  super(r), this.code = e, this.status = n, this.details = a, this.name = "FileFlowError";
1869
1878
  }
1870
1879
  }
1871
- let zt = null;
1872
- function ad(t) {
1873
- return zt = new ts(t), zt;
1880
+ let Ft = null;
1881
+ function id(t) {
1882
+ return Ft = new rs(t), Ft;
1874
1883
  }
1875
- function id() {
1876
- if (!zt)
1884
+ function od() {
1885
+ if (!Ft)
1877
1886
  throw new Error("FileFlow client not initialized. Call initializeClient() first.");
1878
- return zt;
1887
+ return Ft;
1879
1888
  }
1880
1889
  function La(t) {
1881
1890
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1882
1891
  }
1883
- var Fr = { exports: {} }, Rt = { exports: {} }, X = {};
1892
+ var zr = { exports: {} }, Rt = { exports: {} }, X = {};
1884
1893
  /** @license React v16.13.1
1885
1894
  * react-is.production.min.js
1886
1895
  *
@@ -1890,7 +1899,7 @@ var Fr = { exports: {} }, Rt = { exports: {} }, X = {};
1890
1899
  * LICENSE file in the root directory of this source tree.
1891
1900
  */
1892
1901
  var On;
1893
- function ns() {
1902
+ function as() {
1894
1903
  if (On) return X;
1895
1904
  On = 1;
1896
1905
  var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, l = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, b = t ? Symbol.for("react.suspense_list") : 60120, x = t ? Symbol.for("react.memo") : 60115, f = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, h = t ? Symbol.for("react.fundamental") : 60117, A = t ? Symbol.for("react.responder") : 60118, K = t ? Symbol.for("react.scope") : 60119;
@@ -1965,7 +1974,7 @@ var Q = {};
1965
1974
  * LICENSE file in the root directory of this source tree.
1966
1975
  */
1967
1976
  var Cn;
1968
- function as() {
1977
+ function is() {
1969
1978
  return Cn || (Cn = 1, process.env.NODE_ENV !== "production" && function() {
1970
1979
  var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, l = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, b = t ? Symbol.for("react.suspense_list") : 60120, x = t ? Symbol.for("react.memo") : 60115, f = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, h = t ? Symbol.for("react.fundamental") : 60117, A = t ? Symbol.for("react.responder") : 60118, K = t ? Symbol.for("react.scope") : 60119;
1971
1980
  function R(w) {
@@ -2004,7 +2013,7 @@ function as() {
2004
2013
  }
2005
2014
  }
2006
2015
  }
2007
- var y = d, $ = c, B = s, pe = o, ge = e, ke = l, Ae = n, Ee = f, ve = x, G = r, ce = i, re = a, xe = u, fe = !1;
2016
+ var y = d, $ = c, B = s, pe = o, ge = e, ke = l, Ae = n, Se = f, ve = x, G = r, ce = i, re = a, xe = u, fe = !1;
2008
2017
  function ie(w) {
2009
2018
  return fe || (fe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), v(w) || N(w) === d;
2010
2019
  }
@@ -2017,7 +2026,7 @@ function as() {
2017
2026
  function D(w) {
2018
2027
  return N(w) === o;
2019
2028
  }
2020
- function z(w) {
2029
+ function F(w) {
2021
2030
  return typeof w == "object" && w !== null && w.$$typeof === e;
2022
2031
  }
2023
2032
  function C(w) {
@@ -2026,13 +2035,13 @@ function as() {
2026
2035
  function U(w) {
2027
2036
  return N(w) === n;
2028
2037
  }
2029
- function F(w) {
2038
+ function z(w) {
2030
2039
  return N(w) === f;
2031
2040
  }
2032
2041
  function M(w) {
2033
2042
  return N(w) === x;
2034
2043
  }
2035
- function W(w) {
2044
+ function H(w) {
2036
2045
  return N(w) === r;
2037
2046
  }
2038
2047
  function Y(w) {
@@ -2044,12 +2053,12 @@ function as() {
2044
2053
  function le(w) {
2045
2054
  return N(w) === u;
2046
2055
  }
2047
- Q.AsyncMode = y, Q.ConcurrentMode = $, Q.ContextConsumer = B, Q.ContextProvider = pe, Q.Element = ge, Q.ForwardRef = ke, Q.Fragment = Ae, Q.Lazy = Ee, Q.Memo = ve, Q.Portal = G, Q.Profiler = ce, Q.StrictMode = re, Q.Suspense = xe, Q.isAsyncMode = ie, Q.isConcurrentMode = v, Q.isContextConsumer = _, Q.isContextProvider = D, Q.isElement = z, Q.isForwardRef = C, Q.isFragment = U, Q.isLazy = F, Q.isMemo = M, Q.isPortal = W, Q.isProfiler = Y, Q.isStrictMode = Z, Q.isSuspense = le, Q.isValidElementType = R, Q.typeOf = N;
2056
+ Q.AsyncMode = y, Q.ConcurrentMode = $, Q.ContextConsumer = B, Q.ContextProvider = pe, Q.Element = ge, Q.ForwardRef = ke, Q.Fragment = Ae, Q.Lazy = Se, Q.Memo = ve, Q.Portal = G, Q.Profiler = ce, Q.StrictMode = re, Q.Suspense = xe, Q.isAsyncMode = ie, Q.isConcurrentMode = v, Q.isContextConsumer = _, Q.isContextProvider = D, Q.isElement = F, Q.isForwardRef = C, Q.isFragment = U, Q.isLazy = z, Q.isMemo = M, Q.isPortal = H, Q.isProfiler = Y, Q.isStrictMode = Z, Q.isSuspense = le, Q.isValidElementType = R, Q.typeOf = N;
2048
2057
  }()), Q;
2049
2058
  }
2050
2059
  var An;
2051
2060
  function qa() {
2052
- return An || (An = 1, process.env.NODE_ENV === "production" ? Rt.exports = ns() : Rt.exports = as()), Rt.exports;
2061
+ return An || (An = 1, process.env.NODE_ENV === "production" ? Rt.exports = as() : Rt.exports = is()), Rt.exports;
2053
2062
  }
2054
2063
  /*
2055
2064
  object-assign
@@ -2057,7 +2066,7 @@ object-assign
2057
2066
  @license MIT
2058
2067
  */
2059
2068
  var vr, Rn;
2060
- function is() {
2069
+ function os() {
2061
2070
  if (Rn) return vr;
2062
2071
  Rn = 1;
2063
2072
  var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
@@ -2114,7 +2123,7 @@ function Ma() {
2114
2123
  return Dn || (Dn = 1, br = Function.call.bind(Object.prototype.hasOwnProperty)), br;
2115
2124
  }
2116
2125
  var xr, Pn;
2117
- function os() {
2126
+ function ss() {
2118
2127
  if (Pn) return xr;
2119
2128
  Pn = 1;
2120
2129
  var t = function() {
@@ -2163,10 +2172,10 @@ function os() {
2163
2172
  }, xr = a, xr;
2164
2173
  }
2165
2174
  var wr, In;
2166
- function ss() {
2175
+ function cs() {
2167
2176
  if (In) return wr;
2168
2177
  In = 1;
2169
- var t = qa(), e = is(), r = tn(), n = Ma(), a = os(), i = function() {
2178
+ var t = qa(), e = os(), r = tn(), n = Ma(), a = ss(), i = function() {
2170
2179
  };
2171
2180
  process.env.NODE_ENV !== "production" && (i = function(s) {
2172
2181
  var d = "Warning: " + s;
@@ -2204,7 +2213,7 @@ function ss() {
2204
2213
  objectOf: pe,
2205
2214
  oneOf: B,
2206
2215
  oneOfType: ge,
2207
- shape: Ee,
2216
+ shape: Se,
2208
2217
  exact: ve
2209
2218
  };
2210
2219
  function f(v, _) {
@@ -2217,33 +2226,33 @@ function ss() {
2217
2226
  function h(v) {
2218
2227
  if (process.env.NODE_ENV !== "production")
2219
2228
  var _ = {}, D = 0;
2220
- function z(U, F, M, W, Y, Z, le) {
2221
- if (W = W || b, Z = Z || M, le !== r) {
2229
+ function F(U, z, M, H, Y, Z, le) {
2230
+ if (H = H || b, Z = Z || M, le !== r) {
2222
2231
  if (d) {
2223
2232
  var w = new Error(
2224
2233
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
2225
2234
  );
2226
2235
  throw w.name = "Invariant Violation", w;
2227
2236
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
2228
- var we = W + ":" + M;
2237
+ var we = H + ":" + M;
2229
2238
  !_[we] && // Avoid spamming the console because they are often not actionable except for lib authors
2230
2239
  D < 3 && (i(
2231
- "You are manually calling a React.PropTypes validation function for the `" + Z + "` prop on `" + W + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
2240
+ "You are manually calling a React.PropTypes validation function for the `" + Z + "` prop on `" + H + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
2232
2241
  ), _[we] = !0, D++);
2233
2242
  }
2234
2243
  }
2235
- return F[M] == null ? U ? F[M] === null ? new m("The " + Y + " `" + Z + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new m("The " + Y + " `" + Z + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : v(F, M, W, Y, Z);
2244
+ return z[M] == null ? U ? z[M] === null ? new m("The " + Y + " `" + Z + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new m("The " + Y + " `" + Z + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : v(z, M, H, Y, Z);
2236
2245
  }
2237
- var C = z.bind(null, !1);
2238
- return C.isRequired = z.bind(null, !0), C;
2246
+ var C = F.bind(null, !1);
2247
+ return C.isRequired = F.bind(null, !0), C;
2239
2248
  }
2240
2249
  function A(v) {
2241
- function _(D, z, C, U, F, M) {
2242
- var W = D[z], Y = re(W);
2250
+ function _(D, F, C, U, z, M) {
2251
+ var H = D[F], Y = re(H);
2243
2252
  if (Y !== v) {
2244
- var Z = xe(W);
2253
+ var Z = xe(H);
2245
2254
  return new m(
2246
- "Invalid " + U + " `" + F + "` of type " + ("`" + Z + "` supplied to `" + C + "`, expected ") + ("`" + v + "`."),
2255
+ "Invalid " + U + " `" + z + "` of type " + ("`" + Z + "` supplied to `" + C + "`, expected ") + ("`" + v + "`."),
2247
2256
  { expectedType: v }
2248
2257
  );
2249
2258
  }
@@ -2255,16 +2264,16 @@ function ss() {
2255
2264
  return h(o);
2256
2265
  }
2257
2266
  function R(v) {
2258
- function _(D, z, C, U, F) {
2267
+ function _(D, F, C, U, z) {
2259
2268
  if (typeof v != "function")
2260
- return new m("Property `" + F + "` of component `" + C + "` has invalid PropType notation inside arrayOf.");
2261
- var M = D[z];
2269
+ return new m("Property `" + z + "` of component `" + C + "` has invalid PropType notation inside arrayOf.");
2270
+ var M = D[F];
2262
2271
  if (!Array.isArray(M)) {
2263
- var W = re(M);
2264
- return new m("Invalid " + U + " `" + F + "` of type " + ("`" + W + "` supplied to `" + C + "`, expected an array."));
2272
+ var H = re(M);
2273
+ return new m("Invalid " + U + " `" + z + "` of type " + ("`" + H + "` supplied to `" + C + "`, expected an array."));
2265
2274
  }
2266
2275
  for (var Y = 0; Y < M.length; Y++) {
2267
- var Z = v(M, Y, C, U, F + "[" + Y + "]", r);
2276
+ var Z = v(M, Y, C, U, z + "[" + Y + "]", r);
2268
2277
  if (Z instanceof Error)
2269
2278
  return Z;
2270
2279
  }
@@ -2273,32 +2282,32 @@ function ss() {
2273
2282
  return h(_);
2274
2283
  }
2275
2284
  function N() {
2276
- function v(_, D, z, C, U) {
2277
- var F = _[D];
2278
- if (!s(F)) {
2279
- var M = re(F);
2280
- return new m("Invalid " + C + " `" + U + "` of type " + ("`" + M + "` supplied to `" + z + "`, expected a single ReactElement."));
2285
+ function v(_, D, F, C, U) {
2286
+ var z = _[D];
2287
+ if (!s(z)) {
2288
+ var M = re(z);
2289
+ return new m("Invalid " + C + " `" + U + "` of type " + ("`" + M + "` supplied to `" + F + "`, expected a single ReactElement."));
2281
2290
  }
2282
2291
  return null;
2283
2292
  }
2284
2293
  return h(v);
2285
2294
  }
2286
2295
  function y() {
2287
- function v(_, D, z, C, U) {
2288
- var F = _[D];
2289
- if (!t.isValidElementType(F)) {
2290
- var M = re(F);
2291
- return new m("Invalid " + C + " `" + U + "` of type " + ("`" + M + "` supplied to `" + z + "`, expected a single ReactElement type."));
2296
+ function v(_, D, F, C, U) {
2297
+ var z = _[D];
2298
+ if (!t.isValidElementType(z)) {
2299
+ var M = re(z);
2300
+ return new m("Invalid " + C + " `" + U + "` of type " + ("`" + M + "` supplied to `" + F + "`, expected a single ReactElement type."));
2292
2301
  }
2293
2302
  return null;
2294
2303
  }
2295
2304
  return h(v);
2296
2305
  }
2297
2306
  function $(v) {
2298
- function _(D, z, C, U, F) {
2299
- if (!(D[z] instanceof v)) {
2300
- var M = v.name || b, W = ie(D[z]);
2301
- return new m("Invalid " + U + " `" + F + "` of type " + ("`" + W + "` supplied to `" + C + "`, expected ") + ("instance of `" + M + "`."));
2307
+ function _(D, F, C, U, z) {
2308
+ if (!(D[F] instanceof v)) {
2309
+ var M = v.name || b, H = ie(D[F]);
2310
+ return new m("Invalid " + U + " `" + z + "` of type " + ("`" + H + "` supplied to `" + C + "`, expected ") + ("instance of `" + M + "`."));
2302
2311
  }
2303
2312
  return null;
2304
2313
  }
@@ -2309,28 +2318,28 @@ function ss() {
2309
2318
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
2310
2319
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
2311
2320
  ) : i("Invalid argument supplied to oneOf, expected an array.")), o;
2312
- function _(D, z, C, U, F) {
2313
- for (var M = D[z], W = 0; W < v.length; W++)
2314
- if (f(M, v[W]))
2321
+ function _(D, F, C, U, z) {
2322
+ for (var M = D[F], H = 0; H < v.length; H++)
2323
+ if (f(M, v[H]))
2315
2324
  return null;
2316
2325
  var Y = JSON.stringify(v, function(le, w) {
2317
2326
  var we = xe(w);
2318
2327
  return we === "symbol" ? String(w) : w;
2319
2328
  });
2320
- return new m("Invalid " + U + " `" + F + "` of value `" + String(M) + "` " + ("supplied to `" + C + "`, expected one of " + Y + "."));
2329
+ return new m("Invalid " + U + " `" + z + "` of value `" + String(M) + "` " + ("supplied to `" + C + "`, expected one of " + Y + "."));
2321
2330
  }
2322
2331
  return h(_);
2323
2332
  }
2324
2333
  function pe(v) {
2325
- function _(D, z, C, U, F) {
2334
+ function _(D, F, C, U, z) {
2326
2335
  if (typeof v != "function")
2327
- return new m("Property `" + F + "` of component `" + C + "` has invalid PropType notation inside objectOf.");
2328
- var M = D[z], W = re(M);
2329
- if (W !== "object")
2330
- return new m("Invalid " + U + " `" + F + "` of type " + ("`" + W + "` supplied to `" + C + "`, expected an object."));
2336
+ return new m("Property `" + z + "` of component `" + C + "` has invalid PropType notation inside objectOf.");
2337
+ var M = D[F], H = re(M);
2338
+ if (H !== "object")
2339
+ return new m("Invalid " + U + " `" + z + "` of type " + ("`" + H + "` supplied to `" + C + "`, expected an object."));
2331
2340
  for (var Y in M)
2332
2341
  if (n(M, Y)) {
2333
- var Z = v(M, Y, C, U, F + "." + Y, r);
2342
+ var Z = v(M, Y, C, U, z + "." + Y, r);
2334
2343
  if (Z instanceof Error)
2335
2344
  return Z;
2336
2345
  }
@@ -2348,39 +2357,39 @@ function ss() {
2348
2357
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + fe(D) + " at index " + _ + "."
2349
2358
  ), o;
2350
2359
  }
2351
- function z(C, U, F, M, W) {
2360
+ function F(C, U, z, M, H) {
2352
2361
  for (var Y = [], Z = 0; Z < v.length; Z++) {
2353
- var le = v[Z], w = le(C, U, F, M, W, r);
2362
+ var le = v[Z], w = le(C, U, z, M, H, r);
2354
2363
  if (w == null)
2355
2364
  return null;
2356
2365
  w.data && n(w.data, "expectedType") && Y.push(w.data.expectedType);
2357
2366
  }
2358
2367
  var we = Y.length > 0 ? ", expected one of type [" + Y.join(", ") + "]" : "";
2359
- return new m("Invalid " + M + " `" + W + "` supplied to " + ("`" + F + "`" + we + "."));
2368
+ return new m("Invalid " + M + " `" + H + "` supplied to " + ("`" + z + "`" + we + "."));
2360
2369
  }
2361
- return h(z);
2370
+ return h(F);
2362
2371
  }
2363
2372
  function ke() {
2364
- function v(_, D, z, C, U) {
2365
- return G(_[D]) ? null : new m("Invalid " + C + " `" + U + "` supplied to " + ("`" + z + "`, expected a ReactNode."));
2373
+ function v(_, D, F, C, U) {
2374
+ return G(_[D]) ? null : new m("Invalid " + C + " `" + U + "` supplied to " + ("`" + F + "`, expected a ReactNode."));
2366
2375
  }
2367
2376
  return h(v);
2368
2377
  }
2369
- function Ae(v, _, D, z, C) {
2378
+ function Ae(v, _, D, F, C) {
2370
2379
  return new m(
2371
- (v || "React class") + ": " + _ + " type `" + D + "." + z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + C + "`."
2380
+ (v || "React class") + ": " + _ + " type `" + D + "." + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + C + "`."
2372
2381
  );
2373
2382
  }
2374
- function Ee(v) {
2375
- function _(D, z, C, U, F) {
2376
- var M = D[z], W = re(M);
2377
- if (W !== "object")
2378
- return new m("Invalid " + U + " `" + F + "` of type `" + W + "` " + ("supplied to `" + C + "`, expected `object`."));
2383
+ function Se(v) {
2384
+ function _(D, F, C, U, z) {
2385
+ var M = D[F], H = re(M);
2386
+ if (H !== "object")
2387
+ return new m("Invalid " + U + " `" + z + "` of type `" + H + "` " + ("supplied to `" + C + "`, expected `object`."));
2379
2388
  for (var Y in v) {
2380
2389
  var Z = v[Y];
2381
2390
  if (typeof Z != "function")
2382
- return Ae(C, U, F, Y, xe(Z));
2383
- var le = Z(M, Y, C, U, F + "." + Y, r);
2391
+ return Ae(C, U, z, Y, xe(Z));
2392
+ var le = Z(M, Y, C, U, z + "." + Y, r);
2384
2393
  if (le)
2385
2394
  return le;
2386
2395
  }
@@ -2389,21 +2398,21 @@ function ss() {
2389
2398
  return h(_);
2390
2399
  }
2391
2400
  function ve(v) {
2392
- function _(D, z, C, U, F) {
2393
- var M = D[z], W = re(M);
2394
- if (W !== "object")
2395
- return new m("Invalid " + U + " `" + F + "` of type `" + W + "` " + ("supplied to `" + C + "`, expected `object`."));
2396
- var Y = e({}, D[z], v);
2401
+ function _(D, F, C, U, z) {
2402
+ var M = D[F], H = re(M);
2403
+ if (H !== "object")
2404
+ return new m("Invalid " + U + " `" + z + "` of type `" + H + "` " + ("supplied to `" + C + "`, expected `object`."));
2405
+ var Y = e({}, D[F], v);
2397
2406
  for (var Z in Y) {
2398
2407
  var le = v[Z];
2399
2408
  if (n(v, Z) && typeof le != "function")
2400
- return Ae(C, U, F, Z, xe(le));
2409
+ return Ae(C, U, z, Z, xe(le));
2401
2410
  if (!le)
2402
2411
  return new m(
2403
- "Invalid " + U + " `" + F + "` key `" + Z + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify(D[z], null, " ") + `
2412
+ "Invalid " + U + " `" + z + "` key `" + Z + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify(D[F], null, " ") + `
2404
2413
  Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
2405
2414
  );
2406
- var w = le(M, Z, C, U, F + "." + Z, r);
2415
+ var w = le(M, Z, C, U, z + "." + Z, r);
2407
2416
  if (w)
2408
2417
  return w;
2409
2418
  }
@@ -2426,14 +2435,14 @@ Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
2426
2435
  return !0;
2427
2436
  var _ = u(v);
2428
2437
  if (_) {
2429
- var D = _.call(v), z;
2438
+ var D = _.call(v), F;
2430
2439
  if (_ !== v.entries) {
2431
- for (; !(z = D.next()).done; )
2432
- if (!G(z.value))
2440
+ for (; !(F = D.next()).done; )
2441
+ if (!G(F.value))
2433
2442
  return !1;
2434
2443
  } else
2435
- for (; !(z = D.next()).done; ) {
2436
- var C = z.value;
2444
+ for (; !(F = D.next()).done; ) {
2445
+ var C = F.value;
2437
2446
  if (C && !G(C[1]))
2438
2447
  return !1;
2439
2448
  }
@@ -2484,7 +2493,7 @@ Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
2484
2493
  }, wr;
2485
2494
  }
2486
2495
  var _r, Nn;
2487
- function cs() {
2496
+ function ls() {
2488
2497
  if (Nn) return _r;
2489
2498
  Nn = 1;
2490
2499
  var t = tn();
@@ -2532,12 +2541,12 @@ function cs() {
2532
2541
  }, _r;
2533
2542
  }
2534
2543
  if (process.env.NODE_ENV !== "production") {
2535
- var ls = qa(), ds = !0;
2536
- Fr.exports = ss()(ls.isElement, ds);
2544
+ var ds = qa(), ps = !0;
2545
+ zr.exports = cs()(ds.isElement, ps);
2537
2546
  } else
2538
- Fr.exports = cs()();
2539
- var ps = Fr.exports;
2540
- const ee = /* @__PURE__ */ La(ps);
2547
+ zr.exports = ls()();
2548
+ var fs = zr.exports;
2549
+ const ee = /* @__PURE__ */ La(fs);
2541
2550
  function Je(t, e, r, n) {
2542
2551
  function a(i) {
2543
2552
  return i instanceof r ? i : new r(function(o) {
@@ -2565,7 +2574,7 @@ function Je(t, e, r, n) {
2565
2574
  c((n = n.apply(t, e || [])).next());
2566
2575
  });
2567
2576
  }
2568
- const fs = /* @__PURE__ */ new Map([
2577
+ const us = /* @__PURE__ */ new Map([
2569
2578
  // https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
2570
2579
  ["1km", "application/vnd.1000minds.decision-model+xml"],
2571
2580
  ["3dml", "text/vnd.in3d.3dml"],
@@ -3769,13 +3778,13 @@ const fs = /* @__PURE__ */ new Map([
3769
3778
  ["zsh", "text/x-scriptzsh"]
3770
3779
  ]);
3771
3780
  function at(t, e, r) {
3772
- const n = us(t), { webkitRelativePath: a } = t, i = typeof e == "string" ? e : typeof a == "string" && a.length > 0 ? a : `./${t.name}`;
3773
- return typeof n.path != "string" && Fn(n, "path", i), Fn(n, "relativePath", i), n;
3781
+ const n = ms(t), { webkitRelativePath: a } = t, i = typeof e == "string" ? e : typeof a == "string" && a.length > 0 ? a : `./${t.name}`;
3782
+ return typeof n.path != "string" && zn(n, "path", i), zn(n, "relativePath", i), n;
3774
3783
  }
3775
- function us(t) {
3784
+ function ms(t) {
3776
3785
  const { name: e } = t;
3777
3786
  if (e && e.lastIndexOf(".") !== -1 && !t.type) {
3778
- const n = e.split(".").pop().toLowerCase(), a = fs.get(n);
3787
+ const n = e.split(".").pop().toLowerCase(), a = us.get(n);
3779
3788
  a && Object.defineProperty(t, "type", {
3780
3789
  value: a,
3781
3790
  writable: !1,
@@ -3785,7 +3794,7 @@ function us(t) {
3785
3794
  }
3786
3795
  return t;
3787
3796
  }
3788
- function Fn(t, e, r) {
3797
+ function zn(t, e, r) {
3789
3798
  Object.defineProperty(t, e, {
3790
3799
  value: r,
3791
3800
  writable: !1,
@@ -3793,51 +3802,51 @@ function Fn(t, e, r) {
3793
3802
  enumerable: !0
3794
3803
  });
3795
3804
  }
3796
- const ms = [
3805
+ const hs = [
3797
3806
  // Thumbnail cache files for macOS and Windows
3798
3807
  ".DS_Store",
3799
3808
  // macOs
3800
3809
  "Thumbs.db"
3801
3810
  // Windows
3802
3811
  ];
3803
- function hs(t) {
3812
+ function gs(t) {
3804
3813
  return Je(this, void 0, void 0, function* () {
3805
- return Lt(t) && gs(t.dataTransfer) ? xs(t.dataTransfer, t.type) : vs(t) ? ys(t) : Array.isArray(t) && t.every((e) => "getFile" in e && typeof e.getFile == "function") ? bs(t) : [];
3814
+ return Lt(t) && vs(t.dataTransfer) ? ws(t.dataTransfer, t.type) : ys(t) ? bs(t) : Array.isArray(t) && t.every((e) => "getFile" in e && typeof e.getFile == "function") ? xs(t) : [];
3806
3815
  });
3807
3816
  }
3808
- function gs(t) {
3817
+ function vs(t) {
3809
3818
  return Lt(t);
3810
3819
  }
3811
- function vs(t) {
3820
+ function ys(t) {
3812
3821
  return Lt(t) && Lt(t.target);
3813
3822
  }
3814
3823
  function Lt(t) {
3815
3824
  return typeof t == "object" && t !== null;
3816
3825
  }
3817
- function ys(t) {
3818
- return zr(t.target.files).map((e) => at(e));
3819
- }
3820
3826
  function bs(t) {
3827
+ return Fr(t.target.files).map((e) => at(e));
3828
+ }
3829
+ function xs(t) {
3821
3830
  return Je(this, void 0, void 0, function* () {
3822
3831
  return (yield Promise.all(t.map((r) => r.getFile()))).map((r) => at(r));
3823
3832
  });
3824
3833
  }
3825
- function xs(t, e) {
3834
+ function ws(t, e) {
3826
3835
  return Je(this, void 0, void 0, function* () {
3827
3836
  if (t.items) {
3828
- const r = zr(t.items).filter((a) => a.kind === "file");
3837
+ const r = Fr(t.items).filter((a) => a.kind === "file");
3829
3838
  if (e !== "drop")
3830
3839
  return r;
3831
- const n = yield Promise.all(r.map(ws));
3832
- return zn($a(n));
3840
+ const n = yield Promise.all(r.map(_s));
3841
+ return Fn($a(n));
3833
3842
  }
3834
- return zn(zr(t.files).map((r) => at(r)));
3843
+ return Fn(Fr(t.files).map((r) => at(r)));
3835
3844
  });
3836
3845
  }
3837
- function zn(t) {
3838
- return t.filter((e) => ms.indexOf(e.name) === -1);
3846
+ function Fn(t) {
3847
+ return t.filter((e) => hs.indexOf(e.name) === -1);
3839
3848
  }
3840
- function zr(t) {
3849
+ function Fr(t) {
3841
3850
  if (t === null)
3842
3851
  return [];
3843
3852
  const e = [];
@@ -3847,7 +3856,7 @@ function zr(t) {
3847
3856
  }
3848
3857
  return e;
3849
3858
  }
3850
- function ws(t) {
3859
+ function _s(t) {
3851
3860
  if (typeof t.webkitGetAsEntry != "function")
3852
3861
  return Ln(t);
3853
3862
  const e = t.webkitGetAsEntry();
@@ -3877,9 +3886,9 @@ function Ln(t, e) {
3877
3886
  return at(n, (r = e == null ? void 0 : e.fullPath) !== null && r !== void 0 ? r : void 0);
3878
3887
  });
3879
3888
  }
3880
- function _s(t) {
3889
+ function ks(t) {
3881
3890
  return Je(this, void 0, void 0, function* () {
3882
- return t.isDirectory ? Ba(t) : ks(t);
3891
+ return t.isDirectory ? Ba(t) : Ss(t);
3883
3892
  });
3884
3893
  }
3885
3894
  function Ba(t) {
@@ -3889,7 +3898,7 @@ function Ba(t) {
3889
3898
  function i() {
3890
3899
  e.readEntries((o) => Je(this, void 0, void 0, function* () {
3891
3900
  if (o.length) {
3892
- const s = Promise.all(o.map(_s));
3901
+ const s = Promise.all(o.map(ks));
3893
3902
  a.push(s), i();
3894
3903
  } else
3895
3904
  try {
@@ -3905,7 +3914,7 @@ function Ba(t) {
3905
3914
  i();
3906
3915
  });
3907
3916
  }
3908
- function ks(t) {
3917
+ function Ss(t) {
3909
3918
  return Je(this, void 0, void 0, function* () {
3910
3919
  return new Promise((e, r) => {
3911
3920
  t.file((n) => {
@@ -3931,16 +3940,16 @@ var kr = function(t, e) {
3931
3940
  return !0;
3932
3941
  };
3933
3942
  function qn(t) {
3934
- return Ts(t) || Ss(t) || Za(t) || Es();
3943
+ return Os(t) || Ts(t) || Za(t) || Es();
3935
3944
  }
3936
3945
  function Es() {
3937
3946
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
3938
3947
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
3939
3948
  }
3940
- function Ss(t) {
3949
+ function Ts(t) {
3941
3950
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
3942
3951
  }
3943
- function Ts(t) {
3952
+ function Os(t) {
3944
3953
  if (Array.isArray(t)) return Lr(t);
3945
3954
  }
3946
3955
  function Mn(t, e) {
@@ -3968,9 +3977,9 @@ function Ua(t, e, r) {
3968
3977
  return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
3969
3978
  }
3970
3979
  function gt(t, e) {
3971
- return As(t) || Cs(t, e) || Za(t, e) || Os();
3980
+ return Rs(t) || As(t, e) || Za(t, e) || Cs();
3972
3981
  }
3973
- function Os() {
3982
+ function Cs() {
3974
3983
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3975
3984
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
3976
3985
  }
@@ -3988,7 +3997,7 @@ function Lr(t, e) {
3988
3997
  n[r] = t[r];
3989
3998
  return n;
3990
3999
  }
3991
- function Cs(t, e) {
4000
+ function As(t, e) {
3992
4001
  var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
3993
4002
  if (r != null) {
3994
4003
  var n = [], a = !0, i = !1, o, s;
@@ -4007,34 +4016,34 @@ function Cs(t, e) {
4007
4016
  return n;
4008
4017
  }
4009
4018
  }
4010
- function As(t) {
4019
+ function Rs(t) {
4011
4020
  if (Array.isArray(t)) return t;
4012
4021
  }
4013
- var Rs = typeof kr == "function" ? kr : kr.default, js = "file-invalid-type", Ds = "file-too-large", Ps = "file-too-small", Is = "too-many-files", Ns = function() {
4022
+ var js = typeof kr == "function" ? kr : kr.default, Ds = "file-invalid-type", Ps = "file-too-large", Is = "file-too-small", Ns = "too-many-files", zs = function() {
4014
4023
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", r = e.split(","), n = r.length > 1 ? "one of ".concat(r.join(", ")) : r[0];
4015
4024
  return {
4016
- code: js,
4025
+ code: Ds,
4017
4026
  message: "File type must be ".concat(n)
4018
4027
  };
4019
4028
  }, Bn = function(e) {
4020
4029
  return {
4021
- code: Ds,
4030
+ code: Ps,
4022
4031
  message: "File is larger than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
4023
4032
  };
4024
4033
  }, Un = function(e) {
4025
4034
  return {
4026
- code: Ps,
4035
+ code: Is,
4027
4036
  message: "File is smaller than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
4028
4037
  };
4029
4038
  }, Fs = {
4030
- code: Is,
4039
+ code: Ns,
4031
4040
  message: "Too many files"
4032
4041
  };
4033
4042
  function Va(t, e) {
4034
- var r = t.type === "application/x-moz-file" || Rs(t, e);
4035
- return [r, r ? null : Ns(e)];
4043
+ var r = t.type === "application/x-moz-file" || js(t, e);
4044
+ return [r, r ? null : zs(e)];
4036
4045
  }
4037
- function Wa(t, e, r) {
4046
+ function Ha(t, e, r) {
4038
4047
  if (Be(t.size))
4039
4048
  if (Be(e) && Be(r)) {
4040
4049
  if (t.size > r) return [!1, Bn(r)];
@@ -4048,10 +4057,10 @@ function Wa(t, e, r) {
4048
4057
  function Be(t) {
4049
4058
  return t != null;
4050
4059
  }
4051
- function zs(t) {
4060
+ function Ls(t) {
4052
4061
  var e = t.files, r = t.accept, n = t.minSize, a = t.maxSize, i = t.multiple, o = t.maxFiles, s = t.validator;
4053
4062
  return !i && e.length > 1 || i && o >= 1 && e.length > o ? !1 : e.every(function(d) {
4054
- var c = Va(d, r), l = gt(c, 1), u = l[0], b = Wa(d, n, a), x = gt(b, 1), f = x[0], m = s ? s(d) : null;
4063
+ var c = Va(d, r), l = gt(c, 1), u = l[0], b = Ha(d, n, a), x = gt(b, 1), f = x[0], m = s ? s(d) : null;
4055
4064
  return u && f && !m;
4056
4065
  });
4057
4066
  }
@@ -4066,15 +4075,15 @@ function jt(t) {
4066
4075
  function Zn(t) {
4067
4076
  t.preventDefault();
4068
4077
  }
4069
- function Ls(t) {
4078
+ function qs(t) {
4070
4079
  return t.indexOf("MSIE") !== -1 || t.indexOf("Trident/") !== -1;
4071
4080
  }
4072
- function qs(t) {
4081
+ function Ms(t) {
4073
4082
  return t.indexOf("Edge/") !== -1;
4074
4083
  }
4075
- function Ms() {
4084
+ function $s() {
4076
4085
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
4077
- return Ls(t) || qs(t);
4086
+ return qs(t) || Ms(t);
4078
4087
  }
4079
4088
  function je() {
4080
4089
  for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
@@ -4087,14 +4096,14 @@ function je() {
4087
4096
  });
4088
4097
  };
4089
4098
  }
4090
- function $s() {
4099
+ function Bs() {
4091
4100
  return "showOpenFilePicker" in window;
4092
4101
  }
4093
- function Bs(t) {
4102
+ function Us(t) {
4094
4103
  if (Be(t)) {
4095
4104
  var e = Object.entries(t).filter(function(r) {
4096
4105
  var n = gt(r, 2), a = n[0], i = n[1], o = !0;
4097
- return Ha(a) || (console.warn('Skipped "'.concat(a, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), o = !1), (!Array.isArray(i) || !i.every(Ya)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), o = !1), o;
4106
+ return Wa(a) || (console.warn('Skipped "'.concat(a, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), o = !1), (!Array.isArray(i) || !i.every(Ya)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), o = !1), o;
4098
4107
  }).reduce(function(r, n) {
4099
4108
  var a = gt(n, 2), i = a[0], o = a[1];
4100
4109
  return $n($n({}, r), {}, Ua({}, i, o));
@@ -4107,45 +4116,45 @@ function Bs(t) {
4107
4116
  }
4108
4117
  return t;
4109
4118
  }
4110
- function Us(t) {
4119
+ function Zs(t) {
4111
4120
  if (Be(t))
4112
4121
  return Object.entries(t).reduce(function(e, r) {
4113
4122
  var n = gt(r, 2), a = n[0], i = n[1];
4114
4123
  return [].concat(qn(e), [a], qn(i));
4115
4124
  }, []).filter(function(e) {
4116
- return Ha(e) || Ya(e);
4125
+ return Wa(e) || Ya(e);
4117
4126
  }).join(",");
4118
4127
  }
4119
- function Zs(t) {
4128
+ function Vs(t) {
4120
4129
  return t instanceof DOMException && (t.name === "AbortError" || t.code === t.ABORT_ERR);
4121
4130
  }
4122
- function Vs(t) {
4131
+ function Hs(t) {
4123
4132
  return t instanceof DOMException && (t.name === "SecurityError" || t.code === t.SECURITY_ERR);
4124
4133
  }
4125
- function Ha(t) {
4134
+ function Wa(t) {
4126
4135
  return t === "audio/*" || t === "video/*" || t === "image/*" || t === "text/*" || t === "application/*" || /\w+\/[-+.\w]+/g.test(t);
4127
4136
  }
4128
4137
  function Ya(t) {
4129
4138
  return /^.*\.[\w]+$/.test(t);
4130
4139
  }
4131
- var Ws = ["children"], Hs = ["open"], Ys = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Ks = ["refKey", "onChange", "onClick"];
4132
- function Js(t) {
4133
- return Qs(t) || Xs(t) || Ka(t) || Gs();
4140
+ var Ws = ["children"], Ys = ["open"], Ks = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Js = ["refKey", "onChange", "onClick"];
4141
+ function Gs(t) {
4142
+ return ec(t) || Qs(t) || Ka(t) || Xs();
4134
4143
  }
4135
- function Gs() {
4144
+ function Xs() {
4136
4145
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
4137
4146
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
4138
4147
  }
4139
- function Xs(t) {
4148
+ function Qs(t) {
4140
4149
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
4141
4150
  }
4142
- function Qs(t) {
4151
+ function ec(t) {
4143
4152
  if (Array.isArray(t)) return qr(t);
4144
4153
  }
4145
- function Er(t, e) {
4146
- return rc(t) || tc(t, e) || Ka(t, e) || ec();
4154
+ function Sr(t, e) {
4155
+ return nc(t) || rc(t, e) || Ka(t, e) || tc();
4147
4156
  }
4148
- function ec() {
4157
+ function tc() {
4149
4158
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4150
4159
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
4151
4160
  }
@@ -4163,7 +4172,7 @@ function qr(t, e) {
4163
4172
  n[r] = t[r];
4164
4173
  return n;
4165
4174
  }
4166
- function tc(t, e) {
4175
+ function rc(t, e) {
4167
4176
  var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
4168
4177
  if (r != null) {
4169
4178
  var n = [], a = !0, i = !1, o, s;
@@ -4182,7 +4191,7 @@ function tc(t, e) {
4182
4191
  return n;
4183
4192
  }
4184
4193
  }
4185
- function rc(t) {
4194
+ function nc(t) {
4186
4195
  if (Array.isArray(t)) return t;
4187
4196
  }
4188
4197
  function Vn(t, e) {
@@ -4211,7 +4220,7 @@ function Mr(t, e, r) {
4211
4220
  }
4212
4221
  function Mt(t, e) {
4213
4222
  if (t == null) return {};
4214
- var r = nc(t, e), n, a;
4223
+ var r = ac(t, e), n, a;
4215
4224
  if (Object.getOwnPropertySymbols) {
4216
4225
  var i = Object.getOwnPropertySymbols(t);
4217
4226
  for (a = 0; a < i.length; a++)
@@ -4219,7 +4228,7 @@ function Mt(t, e) {
4219
4228
  }
4220
4229
  return r;
4221
4230
  }
4222
- function nc(t, e) {
4231
+ function ac(t, e) {
4223
4232
  if (t == null) return {};
4224
4233
  var r = {}, n = Object.keys(t), a, i;
4225
4234
  for (i = 0; i < n.length; i++)
@@ -4227,7 +4236,7 @@ function nc(t, e) {
4227
4236
  return r;
4228
4237
  }
4229
4238
  var rn = /* @__PURE__ */ Jr(function(t, e) {
4230
- var r = t.children, n = Mt(t, Ws), a = ac(n), i = a.open, o = Mt(a, Hs);
4239
+ var r = t.children, n = Mt(t, Ws), a = ic(n), i = a.open, o = Mt(a, Ys);
4231
4240
  return _i(e, function() {
4232
4241
  return {
4233
4242
  open: i
@@ -4239,7 +4248,7 @@ var rn = /* @__PURE__ */ Jr(function(t, e) {
4239
4248
  rn.displayName = "Dropzone";
4240
4249
  var Ja = {
4241
4250
  disabled: !1,
4242
- getFilesFromEvent: hs,
4251
+ getFilesFromEvent: gs,
4243
4252
  maxSize: 1 / 0,
4244
4253
  minSize: 0,
4245
4254
  multiple: !0,
@@ -4431,16 +4440,16 @@ var $r = {
4431
4440
  acceptedFiles: [],
4432
4441
  fileRejections: []
4433
4442
  };
4434
- function ac() {
4443
+ function ic() {
4435
4444
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = ne(ne({}, Ja), t), r = e.accept, n = e.disabled, a = e.getFilesFromEvent, i = e.maxSize, o = e.minSize, s = e.multiple, d = e.maxFiles, c = e.onDragEnter, l = e.onDragLeave, u = e.onDragOver, b = e.onDrop, x = e.onDropAccepted, f = e.onDropRejected, m = e.onFileDialogCancel, h = e.onFileDialogOpen, A = e.useFsAccessApi, K = e.autoFocus, R = e.preventDropOnDocument, N = e.noClick, y = e.noKeyboard, $ = e.noDrag, B = e.noDragEventsBubbling, pe = e.onError, ge = e.validator, ke = et(function() {
4436
- return Us(r);
4445
+ return Zs(r);
4437
4446
  }, [r]), Ae = et(function() {
4438
- return Bs(r);
4439
- }, [r]), Ee = et(function() {
4440
- return typeof h == "function" ? h : Wn;
4447
+ return Us(r);
4448
+ }, [r]), Se = et(function() {
4449
+ return typeof h == "function" ? h : Hn;
4441
4450
  }, [h]), ve = et(function() {
4442
- return typeof m == "function" ? m : Wn;
4443
- }, [m]), G = ut(null), ce = ut(null), re = wi(ic, $r), xe = Er(re, 2), fe = xe[0], ie = xe[1], v = fe.isFocused, _ = fe.isFileDialogActive, D = ut(typeof window < "u" && window.isSecureContext && A && $s()), z = function() {
4451
+ return typeof m == "function" ? m : Hn;
4452
+ }, [m]), G = ut(null), ce = ut(null), re = wi(oc, $r), xe = Sr(re, 2), fe = xe[0], ie = xe[1], v = fe.isFocused, _ = fe.isFileDialogActive, D = ut(typeof window < "u" && window.isSecureContext && A && Bs()), F = function() {
4444
4453
  !D.current && _ && setTimeout(function() {
4445
4454
  if (ce.current) {
4446
4455
  var j = ce.current.files;
@@ -4451,8 +4460,8 @@ function ac() {
4451
4460
  }, 300);
4452
4461
  };
4453
4462
  ht(function() {
4454
- return window.addEventListener("focus", z, !1), function() {
4455
- window.removeEventListener("focus", z, !1);
4463
+ return window.addEventListener("focus", F, !1), function() {
4464
+ window.removeEventListener("focus", F, !1);
4456
4465
  };
4457
4466
  }, [ce, _, ve, D]);
4458
4467
  var C = ut([]), U = function(j) {
@@ -4466,12 +4475,12 @@ function ac() {
4466
4475
  return !n && K && G.current && G.current.focus(), function() {
4467
4476
  };
4468
4477
  }, [G, K, n]);
4469
- var F = Se(function(E) {
4470
- pe ? pe(E) : console.error(E);
4471
- }, [pe]), M = Se(function(E) {
4472
- E.preventDefault(), E.persist(), Ot(E), C.current = [].concat(Js(C.current), [E.target]), jt(E) && Promise.resolve(a(E)).then(function(j) {
4473
- if (!(qt(E) && !B)) {
4474
- var oe = j.length, de = oe > 0 && zs({
4478
+ var z = Ee(function(S) {
4479
+ pe ? pe(S) : console.error(S);
4480
+ }, [pe]), M = Ee(function(S) {
4481
+ S.preventDefault(), S.persist(), Ot(S), C.current = [].concat(Gs(C.current), [S.target]), jt(S) && Promise.resolve(a(S)).then(function(j) {
4482
+ if (!(qt(S) && !B)) {
4483
+ var oe = j.length, de = oe > 0 && Ls({
4475
4484
  files: j,
4476
4485
  accept: ke,
4477
4486
  minSize: o,
@@ -4485,35 +4494,35 @@ function ac() {
4485
4494
  isDragReject: _e,
4486
4495
  isDragActive: !0,
4487
4496
  type: "setDraggedFiles"
4488
- }), c && c(E);
4497
+ }), c && c(S);
4489
4498
  }
4490
4499
  }).catch(function(j) {
4491
- return F(j);
4500
+ return z(j);
4492
4501
  });
4493
- }, [a, c, F, B, ke, o, i, s, d, ge]), W = Se(function(E) {
4494
- E.preventDefault(), E.persist(), Ot(E);
4495
- var j = jt(E);
4496
- if (j && E.dataTransfer)
4502
+ }, [a, c, z, B, ke, o, i, s, d, ge]), H = Ee(function(S) {
4503
+ S.preventDefault(), S.persist(), Ot(S);
4504
+ var j = jt(S);
4505
+ if (j && S.dataTransfer)
4497
4506
  try {
4498
- E.dataTransfer.dropEffect = "copy";
4507
+ S.dataTransfer.dropEffect = "copy";
4499
4508
  } catch {
4500
4509
  }
4501
- return j && u && u(E), !1;
4502
- }, [u, B]), Y = Se(function(E) {
4503
- E.preventDefault(), E.persist(), Ot(E);
4510
+ return j && u && u(S), !1;
4511
+ }, [u, B]), Y = Ee(function(S) {
4512
+ S.preventDefault(), S.persist(), Ot(S);
4504
4513
  var j = C.current.filter(function(de) {
4505
4514
  return G.current && G.current.contains(de);
4506
- }), oe = j.indexOf(E.target);
4515
+ }), oe = j.indexOf(S.target);
4507
4516
  oe !== -1 && j.splice(oe, 1), C.current = j, !(j.length > 0) && (ie({
4508
4517
  type: "setDraggedFiles",
4509
4518
  isDragActive: !1,
4510
4519
  isDragAccept: !1,
4511
4520
  isDragReject: !1
4512
- }), jt(E) && l && l(E));
4513
- }, [G, l, B]), Z = Se(function(E, j) {
4521
+ }), jt(S) && l && l(S));
4522
+ }, [G, l, B]), Z = Ee(function(S, j) {
4514
4523
  var oe = [], de = [];
4515
- E.forEach(function(_e) {
4516
- var pt = Va(_e, ke), Qe = Er(pt, 2), or = Qe[0], sr = Qe[1], cr = Wa(_e, o, i), Ct = Er(cr, 2), lr = Ct[0], dr = Ct[1], pr = ge ? ge(_e) : null;
4524
+ S.forEach(function(_e) {
4525
+ var pt = Va(_e, ke), Qe = Sr(pt, 2), or = Qe[0], sr = Qe[1], cr = Ha(_e, o, i), Ct = Sr(cr, 2), lr = Ct[0], dr = Ct[1], pr = ge ? ge(_e) : null;
4517
4526
  if (or && lr && !pr)
4518
4527
  oe.push(_e);
4519
4528
  else {
@@ -4536,51 +4545,51 @@ function ac() {
4536
4545
  isDragReject: de.length > 0,
4537
4546
  type: "setFiles"
4538
4547
  }), b && b(oe, de, j), de.length > 0 && f && f(de, j), oe.length > 0 && x && x(oe, j);
4539
- }, [ie, s, ke, o, i, d, b, x, f, ge]), le = Se(function(E) {
4540
- E.preventDefault(), E.persist(), Ot(E), C.current = [], jt(E) && Promise.resolve(a(E)).then(function(j) {
4541
- qt(E) && !B || Z(j, E);
4548
+ }, [ie, s, ke, o, i, d, b, x, f, ge]), le = Ee(function(S) {
4549
+ S.preventDefault(), S.persist(), Ot(S), C.current = [], jt(S) && Promise.resolve(a(S)).then(function(j) {
4550
+ qt(S) && !B || Z(j, S);
4542
4551
  }).catch(function(j) {
4543
- return F(j);
4552
+ return z(j);
4544
4553
  }), ie({
4545
4554
  type: "reset"
4546
4555
  });
4547
- }, [a, Z, F, B]), w = Se(function() {
4556
+ }, [a, Z, z, B]), w = Ee(function() {
4548
4557
  if (D.current) {
4549
4558
  ie({
4550
4559
  type: "openDialog"
4551
- }), Ee();
4552
- var E = {
4560
+ }), Se();
4561
+ var S = {
4553
4562
  multiple: s,
4554
4563
  types: Ae
4555
4564
  };
4556
- window.showOpenFilePicker(E).then(function(j) {
4565
+ window.showOpenFilePicker(S).then(function(j) {
4557
4566
  return a(j);
4558
4567
  }).then(function(j) {
4559
4568
  Z(j, null), ie({
4560
4569
  type: "closeDialog"
4561
4570
  });
4562
4571
  }).catch(function(j) {
4563
- Zs(j) ? (ve(j), ie({
4572
+ Vs(j) ? (ve(j), ie({
4564
4573
  type: "closeDialog"
4565
- })) : Vs(j) ? (D.current = !1, ce.current ? (ce.current.value = null, ce.current.click()) : F(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : F(j);
4574
+ })) : Hs(j) ? (D.current = !1, ce.current ? (ce.current.value = null, ce.current.click()) : z(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : z(j);
4566
4575
  });
4567
4576
  return;
4568
4577
  }
4569
4578
  ce.current && (ie({
4570
4579
  type: "openDialog"
4571
- }), Ee(), ce.current.value = null, ce.current.click());
4572
- }, [ie, Ee, ve, A, Z, F, Ae, s]), we = Se(function(E) {
4573
- !G.current || !G.current.isEqualNode(E.target) || (E.key === " " || E.key === "Enter" || E.keyCode === 32 || E.keyCode === 13) && (E.preventDefault(), w());
4574
- }, [G, w]), $e = Se(function() {
4580
+ }), Se(), ce.current.value = null, ce.current.click());
4581
+ }, [ie, Se, ve, A, Z, z, Ae, s]), we = Ee(function(S) {
4582
+ !G.current || !G.current.isEqualNode(S.target) || (S.key === " " || S.key === "Enter" || S.keyCode === 32 || S.keyCode === 13) && (S.preventDefault(), w());
4583
+ }, [G, w]), $e = Ee(function() {
4575
4584
  ie({
4576
4585
  type: "focus"
4577
4586
  });
4578
- }, []), dt = Se(function() {
4587
+ }, []), dt = Ee(function() {
4579
4588
  ie({
4580
4589
  type: "blur"
4581
4590
  });
4582
- }, []), ln = Se(function() {
4583
- N || (Ms() ? setTimeout(w, 0) : w());
4591
+ }, []), ln = Ee(function() {
4592
+ N || ($s() ? setTimeout(w, 0) : w());
4584
4593
  }, [N, w]), Xe = function(j) {
4585
4594
  return n ? null : j;
4586
4595
  }, ir = function(j) {
@@ -4591,14 +4600,14 @@ function ac() {
4591
4600
  B && j.stopPropagation();
4592
4601
  }, hi = et(function() {
4593
4602
  return function() {
4594
- var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = E.refKey, oe = j === void 0 ? "ref" : j, de = E.role, _e = E.onKeyDown, pt = E.onFocus, Qe = E.onBlur, or = E.onClick, sr = E.onDragEnter, cr = E.onDragOver, Ct = E.onDragLeave, lr = E.onDrop, dr = Mt(E, Ys);
4603
+ var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = S.refKey, oe = j === void 0 ? "ref" : j, de = S.role, _e = S.onKeyDown, pt = S.onFocus, Qe = S.onBlur, or = S.onClick, sr = S.onDragEnter, cr = S.onDragOver, Ct = S.onDragLeave, lr = S.onDrop, dr = Mt(S, Ks);
4595
4604
  return ne(ne(Mr({
4596
4605
  onKeyDown: ir(je(_e, we)),
4597
4606
  onFocus: ir(je(pt, $e)),
4598
4607
  onBlur: ir(je(Qe, dt)),
4599
4608
  onClick: Xe(je(or, ln)),
4600
4609
  onDragEnter: Tt(je(sr, M)),
4601
- onDragOver: Tt(je(cr, W)),
4610
+ onDragOver: Tt(je(cr, H)),
4602
4611
  onDragLeave: Tt(je(Ct, Y)),
4603
4612
  onDrop: Tt(je(lr, le)),
4604
4613
  role: typeof de == "string" && de !== "" ? de : "presentation"
@@ -4606,11 +4615,11 @@ function ac() {
4606
4615
  tabIndex: 0
4607
4616
  } : {}), dr);
4608
4617
  };
4609
- }, [G, we, $e, dt, ln, M, W, Y, le, y, $, n]), gi = Se(function(E) {
4610
- E.stopPropagation();
4618
+ }, [G, we, $e, dt, ln, M, H, Y, le, y, $, n]), gi = Ee(function(S) {
4619
+ S.stopPropagation();
4611
4620
  }, []), vi = et(function() {
4612
4621
  return function() {
4613
- var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = E.refKey, oe = j === void 0 ? "ref" : j, de = E.onChange, _e = E.onClick, pt = Mt(E, Ks), Qe = Mr({
4622
+ var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, j = S.refKey, oe = j === void 0 ? "ref" : j, de = S.onChange, _e = S.onClick, pt = Mt(S, Js), Qe = Mr({
4614
4623
  accept: ke,
4615
4624
  multiple: s,
4616
4625
  type: "file",
@@ -4642,7 +4651,7 @@ function ac() {
4642
4651
  open: Xe(w)
4643
4652
  });
4644
4653
  }
4645
- function ic(t, e) {
4654
+ function oc(t, e) {
4646
4655
  switch (e.type) {
4647
4656
  case "focus":
4648
4657
  return ne(ne({}, t), {}, {
@@ -4678,7 +4687,7 @@ function ic(t, e) {
4678
4687
  return t;
4679
4688
  }
4680
4689
  }
4681
- function Wn() {
4690
+ function Hn() {
4682
4691
  }
4683
4692
  /**
4684
4693
  * @license lucide-react v0.563.0 - ISC
@@ -4693,14 +4702,14 @@ const Ga = (...t) => t.filter((e, r, n) => !!e && e.trim() !== "" && n.indexOf(e
4693
4702
  * This source code is licensed under the ISC license.
4694
4703
  * See the LICENSE file in the root directory of this source tree.
4695
4704
  */
4696
- const oc = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
4705
+ const sc = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
4697
4706
  /**
4698
4707
  * @license lucide-react v0.563.0 - ISC
4699
4708
  *
4700
4709
  * This source code is licensed under the ISC license.
4701
4710
  * See the LICENSE file in the root directory of this source tree.
4702
4711
  */
4703
- const sc = (t) => t.replace(
4712
+ const cc = (t) => t.replace(
4704
4713
  /^([A-Z])|[\s-_]+(\w)/g,
4705
4714
  (e, r, n) => n ? n.toUpperCase() : r.toLowerCase()
4706
4715
  );
@@ -4710,8 +4719,8 @@ const sc = (t) => t.replace(
4710
4719
  * This source code is licensed under the ISC license.
4711
4720
  * See the LICENSE file in the root directory of this source tree.
4712
4721
  */
4713
- const Hn = (t) => {
4714
- const e = sc(t);
4722
+ const Wn = (t) => {
4723
+ const e = cc(t);
4715
4724
  return e.charAt(0).toUpperCase() + e.slice(1);
4716
4725
  };
4717
4726
  /**
@@ -4720,7 +4729,7 @@ const Hn = (t) => {
4720
4729
  * This source code is licensed under the ISC license.
4721
4730
  * See the LICENSE file in the root directory of this source tree.
4722
4731
  */
4723
- var cc = {
4732
+ var lc = {
4724
4733
  xmlns: "http://www.w3.org/2000/svg",
4725
4734
  width: 24,
4726
4735
  height: 24,
@@ -4737,7 +4746,7 @@ var cc = {
4737
4746
  * This source code is licensed under the ISC license.
4738
4747
  * See the LICENSE file in the root directory of this source tree.
4739
4748
  */
4740
- const lc = (t) => {
4749
+ const dc = (t) => {
4741
4750
  for (const e in t)
4742
4751
  if (e.startsWith("aria-") || e === "role" || e === "title")
4743
4752
  return !0;
@@ -4749,7 +4758,7 @@ const lc = (t) => {
4749
4758
  * This source code is licensed under the ISC license.
4750
4759
  * See the LICENSE file in the root directory of this source tree.
4751
4760
  */
4752
- const dc = Jr(
4761
+ const pc = Jr(
4753
4762
  ({
4754
4763
  color: t = "currentColor",
4755
4764
  size: e = 24,
@@ -4763,13 +4772,13 @@ const dc = Jr(
4763
4772
  "svg",
4764
4773
  {
4765
4774
  ref: d,
4766
- ...cc,
4775
+ ...lc,
4767
4776
  width: e,
4768
4777
  height: e,
4769
4778
  stroke: t,
4770
4779
  strokeWidth: n ? Number(r) * 24 / Number(e) : r,
4771
4780
  className: Ga("lucide", a),
4772
- ...!i && !lc(s) && { "aria-hidden": "true" },
4781
+ ...!i && !dc(s) && { "aria-hidden": "true" },
4773
4782
  ...s
4774
4783
  },
4775
4784
  [
@@ -4786,18 +4795,18 @@ const dc = Jr(
4786
4795
  */
4787
4796
  const Me = (t, e) => {
4788
4797
  const r = Jr(
4789
- ({ className: n, ...a }, i) => Rr(dc, {
4798
+ ({ className: n, ...a }, i) => Rr(pc, {
4790
4799
  ref: i,
4791
4800
  iconNode: e,
4792
4801
  className: Ga(
4793
- `lucide-${oc(Hn(t))}`,
4802
+ `lucide-${sc(Wn(t))}`,
4794
4803
  `lucide-${t}`,
4795
4804
  n
4796
4805
  ),
4797
4806
  ...a
4798
4807
  })
4799
4808
  );
4800
- return r.displayName = Hn(t), r;
4809
+ return r.displayName = Wn(t), r;
4801
4810
  };
4802
4811
  /**
4803
4812
  * @license lucide-react v0.563.0 - ISC
@@ -4805,53 +4814,53 @@ const Me = (t, e) => {
4805
4814
  * This source code is licensed under the ISC license.
4806
4815
  * See the LICENSE file in the root directory of this source tree.
4807
4816
  */
4808
- const pc = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], od = Me("chevron-right", pc);
4817
+ const fc = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], sd = Me("chevron-right", fc);
4809
4818
  /**
4810
4819
  * @license lucide-react v0.563.0 - ISC
4811
4820
  *
4812
4821
  * This source code is licensed under the ISC license.
4813
4822
  * See the LICENSE file in the root directory of this source tree.
4814
4823
  */
4815
- const fc = [
4824
+ const uc = [
4816
4825
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
4817
4826
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
4818
4827
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
4819
- ], sd = Me("circle-alert", fc);
4828
+ ], cd = Me("circle-alert", uc);
4820
4829
  /**
4821
4830
  * @license lucide-react v0.563.0 - ISC
4822
4831
  *
4823
4832
  * This source code is licensed under the ISC license.
4824
4833
  * See the LICENSE file in the root directory of this source tree.
4825
4834
  */
4826
- const uc = [
4835
+ const mc = [
4827
4836
  ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
4828
4837
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
4829
- ], cd = Me("circle-check-big", uc);
4838
+ ], ld = Me("circle-check-big", mc);
4830
4839
  /**
4831
4840
  * @license lucide-react v0.563.0 - ISC
4832
4841
  *
4833
4842
  * This source code is licensed under the ISC license.
4834
4843
  * See the LICENSE file in the root directory of this source tree.
4835
4844
  */
4836
- const mc = [
4845
+ const hc = [
4837
4846
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
4838
4847
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
4839
4848
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
4840
- ], ld = Me("circle-x", mc);
4849
+ ], dd = Me("circle-x", hc);
4841
4850
  /**
4842
4851
  * @license lucide-react v0.563.0 - ISC
4843
4852
  *
4844
4853
  * This source code is licensed under the ISC license.
4845
4854
  * See the LICENSE file in the root directory of this source tree.
4846
4855
  */
4847
- const hc = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], dd = Me("loader-circle", hc);
4856
+ const gc = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], pd = Me("loader-circle", gc);
4848
4857
  /**
4849
4858
  * @license lucide-react v0.563.0 - ISC
4850
4859
  *
4851
4860
  * This source code is licensed under the ISC license.
4852
4861
  * See the LICENSE file in the root directory of this source tree.
4853
4862
  */
4854
- const gc = [
4863
+ const vc = [
4855
4864
  [
4856
4865
  "path",
4857
4866
  {
@@ -4861,28 +4870,28 @@ const gc = [
4861
4870
  ],
4862
4871
  ["path", { d: "M12 9v4", key: "juzpu7" }],
4863
4872
  ["path", { d: "M12 17h.01", key: "p32p05" }]
4864
- ], pd = Me("triangle-alert", gc);
4873
+ ], fd = Me("triangle-alert", vc);
4865
4874
  /**
4866
4875
  * @license lucide-react v0.563.0 - ISC
4867
4876
  *
4868
4877
  * This source code is licensed under the ISC license.
4869
4878
  * See the LICENSE file in the root directory of this source tree.
4870
4879
  */
4871
- const vc = [
4880
+ const yc = [
4872
4881
  ["path", { d: "M12 3v12", key: "1x0j5s" }],
4873
4882
  ["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
4874
4883
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
4875
- ], fd = Me("upload", vc);
4884
+ ], ud = Me("upload", yc);
4876
4885
  /**
4877
4886
  * @license lucide-react v0.563.0 - ISC
4878
4887
  *
4879
4888
  * This source code is licensed under the ISC license.
4880
4889
  * See the LICENSE file in the root directory of this source tree.
4881
4890
  */
4882
- const yc = [
4891
+ const bc = [
4883
4892
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
4884
4893
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
4885
- ], ud = Me("x", yc);
4894
+ ], md = Me("x", bc);
4886
4895
  function Xa(t) {
4887
4896
  var e, r, n = "";
4888
4897
  if (typeof t == "string" || typeof t == "number") n += t;
@@ -4892,11 +4901,11 @@ function Xa(t) {
4892
4901
  } else for (r in t) t[r] && (n && (n += " "), n += r);
4893
4902
  return n;
4894
4903
  }
4895
- function md() {
4904
+ function hd() {
4896
4905
  for (var t, e, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (e = Xa(t)) && (n && (n += " "), n += e);
4897
4906
  return n;
4898
4907
  }
4899
- const bc = {}, Yn = (t) => {
4908
+ const xc = {}, Yn = (t) => {
4900
4909
  let e;
4901
4910
  const r = /* @__PURE__ */ new Set(), n = (l, u) => {
4902
4911
  const b = typeof l == "function" ? l(e) : l;
@@ -4905,13 +4914,13 @@ const bc = {}, Yn = (t) => {
4905
4914
  e = u ?? (typeof b != "object" || b === null) ? b : Object.assign({}, e, b), r.forEach((f) => f(e, x));
4906
4915
  }
4907
4916
  }, a = () => e, d = { setState: n, getState: a, getInitialState: () => c, subscribe: (l) => (r.add(l), () => r.delete(l)), destroy: () => {
4908
- (bc ? "production" : void 0) !== "production" && console.warn(
4917
+ (xc ? "production" : void 0) !== "production" && console.warn(
4909
4918
  "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
4910
4919
  ), r.clear();
4911
4920
  } }, c = e = t(n, a, d);
4912
4921
  return d;
4913
- }, xc = (t) => t ? Yn(t) : Yn;
4914
- var Br = { exports: {} }, Sr = {}, Dt = { exports: {} }, Tr = {};
4922
+ }, wc = (t) => t ? Yn(t) : Yn;
4923
+ var Br = { exports: {} }, Er = {}, Dt = { exports: {} }, Tr = {};
4915
4924
  /**
4916
4925
  * @license React
4917
4926
  * use-sync-external-store-shim.production.js
@@ -4922,7 +4931,7 @@ var Br = { exports: {} }, Sr = {}, Dt = { exports: {} }, Tr = {};
4922
4931
  * LICENSE file in the root directory of this source tree.
4923
4932
  */
4924
4933
  var Kn;
4925
- function wc() {
4934
+ function _c() {
4926
4935
  if (Kn) return Tr;
4927
4936
  Kn = 1;
4928
4937
  var t = st;
@@ -4973,7 +4982,7 @@ var Or = {};
4973
4982
  * LICENSE file in the root directory of this source tree.
4974
4983
  */
4975
4984
  var Jn;
4976
- function _c() {
4985
+ function kc() {
4977
4986
  return Jn || (Jn = 1, process.env.NODE_ENV !== "production" && function() {
4978
4987
  function t(x, f) {
4979
4988
  return x === f && (x !== 0 || 1 / x === 1 / f) || x !== x && f !== f;
@@ -5027,7 +5036,7 @@ function _c() {
5027
5036
  }
5028
5037
  var Gn;
5029
5038
  function Qa() {
5030
- return Gn || (Gn = 1, process.env.NODE_ENV === "production" ? Dt.exports = wc() : Dt.exports = _c()), Dt.exports;
5039
+ return Gn || (Gn = 1, process.env.NODE_ENV === "production" ? Dt.exports = _c() : Dt.exports = kc()), Dt.exports;
5031
5040
  }
5032
5041
  /**
5033
5042
  * @license React
@@ -5039,15 +5048,15 @@ function Qa() {
5039
5048
  * LICENSE file in the root directory of this source tree.
5040
5049
  */
5041
5050
  var Xn;
5042
- function kc() {
5043
- if (Xn) return Sr;
5051
+ function Sc() {
5052
+ if (Xn) return Er;
5044
5053
  Xn = 1;
5045
5054
  var t = st, e = Qa();
5046
5055
  function r(c, l) {
5047
5056
  return c === l && (c !== 0 || 1 / c === 1 / l) || c !== c && l !== l;
5048
5057
  }
5049
5058
  var n = typeof Object.is == "function" ? Object.is : r, a = e.useSyncExternalStore, i = t.useRef, o = t.useEffect, s = t.useMemo, d = t.useDebugValue;
5050
- return Sr.useSyncExternalStoreWithSelector = function(c, l, u, b, x) {
5059
+ return Er.useSyncExternalStoreWithSelector = function(c, l, u, b, x) {
5051
5060
  var f = i(null);
5052
5061
  if (f.current === null) {
5053
5062
  var m = { hasValue: !1, value: null };
@@ -5087,7 +5096,7 @@ function kc() {
5087
5096
  },
5088
5097
  [h]
5089
5098
  ), d(h), h;
5090
- }, Sr;
5099
+ }, Er;
5091
5100
  }
5092
5101
  var Cr = {};
5093
5102
  /**
@@ -5151,32 +5160,32 @@ function Ec() {
5151
5160
  }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
5152
5161
  }()), Cr;
5153
5162
  }
5154
- process.env.NODE_ENV === "production" ? Br.exports = kc() : Br.exports = Ec();
5155
- var Sc = Br.exports;
5156
- const Tc = /* @__PURE__ */ La(Sc), ei = {}, { useDebugValue: Oc } = st, { useSyncExternalStoreWithSelector: Cc } = Tc;
5163
+ process.env.NODE_ENV === "production" ? Br.exports = Sc() : Br.exports = Ec();
5164
+ var Tc = Br.exports;
5165
+ const Oc = /* @__PURE__ */ La(Tc), ei = {}, { useDebugValue: Cc } = st, { useSyncExternalStoreWithSelector: Ac } = Oc;
5157
5166
  let ea = !1;
5158
- const Ac = (t) => t;
5159
- function Rc(t, e = Ac, r) {
5167
+ const Rc = (t) => t;
5168
+ function jc(t, e = Rc, r) {
5160
5169
  (ei ? "production" : void 0) !== "production" && r && !ea && (console.warn(
5161
5170
  "[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
5162
5171
  ), ea = !0);
5163
- const n = Cc(
5172
+ const n = Ac(
5164
5173
  t.subscribe,
5165
5174
  t.getState,
5166
5175
  t.getServerState || t.getInitialState,
5167
5176
  e,
5168
5177
  r
5169
5178
  );
5170
- return Oc(n), n;
5179
+ return Cc(n), n;
5171
5180
  }
5172
5181
  const ta = (t) => {
5173
5182
  (ei ? "production" : void 0) !== "production" && typeof t != "function" && console.warn(
5174
5183
  "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
5175
5184
  );
5176
- const e = typeof t == "function" ? xc(t) : t, r = (n, a) => Rc(e, n, a);
5185
+ const e = typeof t == "function" ? wc(t) : t, r = (n, a) => jc(e, n, a);
5177
5186
  return Object.assign(r, e), r;
5178
- }, hd = (t) => t ? ta(t) : ta;
5179
- var H;
5187
+ }, gd = (t) => t ? ta(t) : ta;
5188
+ var W;
5180
5189
  (function(t) {
5181
5190
  t.assertEqual = (a) => {
5182
5191
  };
@@ -5212,7 +5221,7 @@ var H;
5212
5221
  return a.map((o) => typeof o == "string" ? `'${o}'` : o).join(i);
5213
5222
  }
5214
5223
  t.joinValues = n, t.jsonStringifyReplacer = (a, i) => typeof i == "bigint" ? i.toString() : i;
5215
- })(H || (H = {}));
5224
+ })(W || (W = {}));
5216
5225
  var ra;
5217
5226
  (function(t) {
5218
5227
  t.mergeShapes = (e, r) => ({
@@ -5221,7 +5230,7 @@ var ra;
5221
5230
  // second overwrites first
5222
5231
  });
5223
5232
  })(ra || (ra = {}));
5224
- const T = H.arrayToEnum([
5233
+ const T = W.arrayToEnum([
5225
5234
  "string",
5226
5235
  "nan",
5227
5236
  "number",
@@ -5263,7 +5272,7 @@ const T = H.arrayToEnum([
5263
5272
  default:
5264
5273
  return T.unknown;
5265
5274
  }
5266
- }, g = H.arrayToEnum([
5275
+ }, g = W.arrayToEnum([
5267
5276
  "invalid_type",
5268
5277
  "invalid_literal",
5269
5278
  "custom",
@@ -5281,7 +5290,7 @@ const T = H.arrayToEnum([
5281
5290
  "not_multiple_of",
5282
5291
  "not_finite"
5283
5292
  ]);
5284
- class ze extends Error {
5293
+ class Fe extends Error {
5285
5294
  get errors() {
5286
5295
  return this.issues;
5287
5296
  }
@@ -5318,14 +5327,14 @@ class ze extends Error {
5318
5327
  return a(this), n;
5319
5328
  }
5320
5329
  static assert(e) {
5321
- if (!(e instanceof ze))
5330
+ if (!(e instanceof Fe))
5322
5331
  throw new Error(`Not a ZodError: ${e}`);
5323
5332
  }
5324
5333
  toString() {
5325
5334
  return this.message;
5326
5335
  }
5327
5336
  get message() {
5328
- return JSON.stringify(this.issues, H.jsonStringifyReplacer, 2);
5337
+ return JSON.stringify(this.issues, W.jsonStringifyReplacer, 2);
5329
5338
  }
5330
5339
  get isEmpty() {
5331
5340
  return this.issues.length === 0;
@@ -5344,7 +5353,7 @@ class ze extends Error {
5344
5353
  return this.flatten();
5345
5354
  }
5346
5355
  }
5347
- ze.create = (t) => new ze(t);
5356
+ Fe.create = (t) => new Fe(t);
5348
5357
  const Ur = (t, e) => {
5349
5358
  let r;
5350
5359
  switch (t.code) {
@@ -5352,19 +5361,19 @@ const Ur = (t, e) => {
5352
5361
  t.received === T.undefined ? r = "Required" : r = `Expected ${t.expected}, received ${t.received}`;
5353
5362
  break;
5354
5363
  case g.invalid_literal:
5355
- r = `Invalid literal value, expected ${JSON.stringify(t.expected, H.jsonStringifyReplacer)}`;
5364
+ r = `Invalid literal value, expected ${JSON.stringify(t.expected, W.jsonStringifyReplacer)}`;
5356
5365
  break;
5357
5366
  case g.unrecognized_keys:
5358
- r = `Unrecognized key(s) in object: ${H.joinValues(t.keys, ", ")}`;
5367
+ r = `Unrecognized key(s) in object: ${W.joinValues(t.keys, ", ")}`;
5359
5368
  break;
5360
5369
  case g.invalid_union:
5361
5370
  r = "Invalid input";
5362
5371
  break;
5363
5372
  case g.invalid_union_discriminator:
5364
- r = `Invalid discriminator value. Expected ${H.joinValues(t.options)}`;
5373
+ r = `Invalid discriminator value. Expected ${W.joinValues(t.options)}`;
5365
5374
  break;
5366
5375
  case g.invalid_enum_value:
5367
- r = `Invalid enum value. Expected ${H.joinValues(t.options)}, received '${t.received}'`;
5376
+ r = `Invalid enum value. Expected ${W.joinValues(t.options)}, received '${t.received}'`;
5368
5377
  break;
5369
5378
  case g.invalid_arguments:
5370
5379
  r = "Invalid function arguments";
@@ -5376,7 +5385,7 @@ const Ur = (t, e) => {
5376
5385
  r = "Invalid date";
5377
5386
  break;
5378
5387
  case g.invalid_string:
5379
- typeof t.validation == "object" ? "includes" in t.validation ? (r = `Invalid input: must include "${t.validation.includes}"`, typeof t.validation.position == "number" && (r = `${r} at one or more positions greater than or equal to ${t.validation.position}`)) : "startsWith" in t.validation ? r = `Invalid input: must start with "${t.validation.startsWith}"` : "endsWith" in t.validation ? r = `Invalid input: must end with "${t.validation.endsWith}"` : H.assertNever(t.validation) : t.validation !== "regex" ? r = `Invalid ${t.validation}` : r = "Invalid";
5388
+ typeof t.validation == "object" ? "includes" in t.validation ? (r = `Invalid input: must include "${t.validation.includes}"`, typeof t.validation.position == "number" && (r = `${r} at one or more positions greater than or equal to ${t.validation.position}`)) : "startsWith" in t.validation ? r = `Invalid input: must start with "${t.validation.startsWith}"` : "endsWith" in t.validation ? r = `Invalid input: must end with "${t.validation.endsWith}"` : W.assertNever(t.validation) : t.validation !== "regex" ? r = `Invalid ${t.validation}` : r = "Invalid";
5380
5389
  break;
5381
5390
  case g.too_small:
5382
5391
  t.type === "array" ? r = `Array must contain ${t.exact ? "exactly" : t.inclusive ? "at least" : "more than"} ${t.minimum} element(s)` : t.type === "string" ? r = `String must contain ${t.exact ? "exactly" : t.inclusive ? "at least" : "over"} ${t.minimum} character(s)` : t.type === "number" ? r = `Number must be ${t.exact ? "exactly equal to " : t.inclusive ? "greater than or equal to " : "greater than "}${t.minimum}` : t.type === "bigint" ? r = `Number must be ${t.exact ? "exactly equal to " : t.inclusive ? "greater than or equal to " : "greater than "}${t.minimum}` : t.type === "date" ? r = `Date must be ${t.exact ? "exactly equal to " : t.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(t.minimum))}` : r = "Invalid input";
@@ -5397,15 +5406,15 @@ const Ur = (t, e) => {
5397
5406
  r = "Number must be finite";
5398
5407
  break;
5399
5408
  default:
5400
- r = e.defaultError, H.assertNever(t);
5409
+ r = e.defaultError, W.assertNever(t);
5401
5410
  }
5402
5411
  return { message: r };
5403
5412
  };
5404
- let jc = Ur;
5405
- function Dc() {
5406
- return jc;
5413
+ let Dc = Ur;
5414
+ function Pc() {
5415
+ return Dc;
5407
5416
  }
5408
- const Pc = (t) => {
5417
+ const Ic = (t) => {
5409
5418
  const { data: e, path: r, errorMaps: n, issueData: a } = t, i = [...r, ...a.path || []], o = {
5410
5419
  ...a,
5411
5420
  path: i
@@ -5427,7 +5436,7 @@ const Pc = (t) => {
5427
5436
  };
5428
5437
  };
5429
5438
  function k(t, e) {
5430
- const r = Dc(), n = Pc({
5439
+ const r = Pc(), n = Ic({
5431
5440
  issueData: e,
5432
5441
  data: t.data,
5433
5442
  path: t.path,
@@ -5510,7 +5519,7 @@ const ia = (t, e) => {
5510
5519
  get error() {
5511
5520
  if (this._error)
5512
5521
  return this._error;
5513
- const r = new ze(t.common.issues);
5522
+ const r = new Fe(t.common.issues);
5514
5523
  return this._error = r, this._error;
5515
5524
  }
5516
5525
  };
@@ -5672,7 +5681,7 @@ class V {
5672
5681
  };
5673
5682
  }
5674
5683
  optional() {
5675
- return Fe.create(this, this._def);
5684
+ return ze.create(this, this._def);
5676
5685
  }
5677
5686
  nullable() {
5678
5687
  return Ke.create(this, this._def);
@@ -5745,28 +5754,28 @@ class V {
5745
5754
  return this.safeParse(null).success;
5746
5755
  }
5747
5756
  }
5748
- const Ic = /^c[^\s-]{8,}$/i, Nc = /^[0-9a-z]+$/, Fc = /^[0-9A-HJKMNP-TV-Z]{26}$/i, zc = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Lc = /^[a-z0-9_-]{21}$/i, qc = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Mc = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, $c = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Bc = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
5757
+ const Nc = /^c[^\s-]{8,}$/i, zc = /^[0-9a-z]+$/, Fc = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Lc = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, qc = /^[a-z0-9_-]{21}$/i, Mc = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, $c = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Bc = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Uc = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
5749
5758
  let Ar;
5750
- const Uc = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Zc = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Vc = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Wc = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Hc = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Yc = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, ti = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Kc = new RegExp(`^${ti}$`);
5759
+ const Zc = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Vc = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Hc = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Wc = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Yc = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Kc = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, ti = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Jc = new RegExp(`^${ti}$`);
5751
5760
  function ri(t) {
5752
5761
  let e = "[0-5]\\d";
5753
5762
  t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`);
5754
5763
  const r = t.precision ? "+" : "?";
5755
5764
  return `([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`;
5756
5765
  }
5757
- function Jc(t) {
5766
+ function Gc(t) {
5758
5767
  return new RegExp(`^${ri(t)}$`);
5759
5768
  }
5760
- function Gc(t) {
5769
+ function Xc(t) {
5761
5770
  let e = `${ti}T${ri(t)}`;
5762
5771
  const r = [];
5763
5772
  return r.push(t.local ? "Z?" : "Z"), t.offset && r.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${r.join("|")})`, new RegExp(`^${e}$`);
5764
5773
  }
5765
- function Xc(t, e) {
5766
- return !!((e === "v4" || !e) && Uc.test(t) || (e === "v6" || !e) && Vc.test(t));
5767
- }
5768
5774
  function Qc(t, e) {
5769
- if (!qc.test(t))
5775
+ return !!((e === "v4" || !e) && Zc.test(t) || (e === "v6" || !e) && Hc.test(t));
5776
+ }
5777
+ function el(t, e) {
5778
+ if (!Mc.test(t))
5770
5779
  return !1;
5771
5780
  try {
5772
5781
  const [r] = t.split(".");
@@ -5778,8 +5787,8 @@ function Qc(t, e) {
5778
5787
  return !1;
5779
5788
  }
5780
5789
  }
5781
- function el(t, e) {
5782
- return !!((e === "v4" || !e) && Zc.test(t) || (e === "v6" || !e) && Wc.test(t));
5790
+ function tl(t, e) {
5791
+ return !!((e === "v4" || !e) && Vc.test(t) || (e === "v6" || !e) && Wc.test(t));
5783
5792
  }
5784
5793
  class Ne extends V {
5785
5794
  _parse(e) {
@@ -5830,37 +5839,37 @@ class Ne extends V {
5830
5839
  message: i.message
5831
5840
  }), n.dirty());
5832
5841
  } else if (i.kind === "email")
5833
- $c.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5842
+ Bc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5834
5843
  validation: "email",
5835
5844
  code: g.invalid_string,
5836
5845
  message: i.message
5837
5846
  }), n.dirty());
5838
5847
  else if (i.kind === "emoji")
5839
- Ar || (Ar = new RegExp(Bc, "u")), Ar.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5848
+ Ar || (Ar = new RegExp(Uc, "u")), Ar.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5840
5849
  validation: "emoji",
5841
5850
  code: g.invalid_string,
5842
5851
  message: i.message
5843
5852
  }), n.dirty());
5844
5853
  else if (i.kind === "uuid")
5845
- zc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5854
+ Lc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5846
5855
  validation: "uuid",
5847
5856
  code: g.invalid_string,
5848
5857
  message: i.message
5849
5858
  }), n.dirty());
5850
5859
  else if (i.kind === "nanoid")
5851
- Lc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5860
+ qc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5852
5861
  validation: "nanoid",
5853
5862
  code: g.invalid_string,
5854
5863
  message: i.message
5855
5864
  }), n.dirty());
5856
5865
  else if (i.kind === "cuid")
5857
- Ic.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5866
+ Nc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5858
5867
  validation: "cuid",
5859
5868
  code: g.invalid_string,
5860
5869
  message: i.message
5861
5870
  }), n.dirty());
5862
5871
  else if (i.kind === "cuid2")
5863
- Nc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5872
+ zc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5864
5873
  validation: "cuid2",
5865
5874
  code: g.invalid_string,
5866
5875
  message: i.message
@@ -5897,43 +5906,43 @@ class Ne extends V {
5897
5906
  code: g.invalid_string,
5898
5907
  validation: { endsWith: i.value },
5899
5908
  message: i.message
5900
- }), n.dirty()) : i.kind === "datetime" ? Gc(i).test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5909
+ }), n.dirty()) : i.kind === "datetime" ? Xc(i).test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5901
5910
  code: g.invalid_string,
5902
5911
  validation: "datetime",
5903
5912
  message: i.message
5904
- }), n.dirty()) : i.kind === "date" ? Kc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5913
+ }), n.dirty()) : i.kind === "date" ? Jc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5905
5914
  code: g.invalid_string,
5906
5915
  validation: "date",
5907
5916
  message: i.message
5908
- }), n.dirty()) : i.kind === "time" ? Jc(i).test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5917
+ }), n.dirty()) : i.kind === "time" ? Gc(i).test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5909
5918
  code: g.invalid_string,
5910
5919
  validation: "time",
5911
5920
  message: i.message
5912
- }), n.dirty()) : i.kind === "duration" ? Mc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5921
+ }), n.dirty()) : i.kind === "duration" ? $c.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5913
5922
  validation: "duration",
5914
5923
  code: g.invalid_string,
5915
5924
  message: i.message
5916
- }), n.dirty()) : i.kind === "ip" ? Xc(e.data, i.version) || (a = this._getOrReturnCtx(e, a), k(a, {
5925
+ }), n.dirty()) : i.kind === "ip" ? Qc(e.data, i.version) || (a = this._getOrReturnCtx(e, a), k(a, {
5917
5926
  validation: "ip",
5918
5927
  code: g.invalid_string,
5919
5928
  message: i.message
5920
- }), n.dirty()) : i.kind === "jwt" ? Qc(e.data, i.alg) || (a = this._getOrReturnCtx(e, a), k(a, {
5929
+ }), n.dirty()) : i.kind === "jwt" ? el(e.data, i.alg) || (a = this._getOrReturnCtx(e, a), k(a, {
5921
5930
  validation: "jwt",
5922
5931
  code: g.invalid_string,
5923
5932
  message: i.message
5924
- }), n.dirty()) : i.kind === "cidr" ? el(e.data, i.version) || (a = this._getOrReturnCtx(e, a), k(a, {
5933
+ }), n.dirty()) : i.kind === "cidr" ? tl(e.data, i.version) || (a = this._getOrReturnCtx(e, a), k(a, {
5925
5934
  validation: "cidr",
5926
5935
  code: g.invalid_string,
5927
5936
  message: i.message
5928
- }), n.dirty()) : i.kind === "base64" ? Hc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5937
+ }), n.dirty()) : i.kind === "base64" ? Yc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5929
5938
  validation: "base64",
5930
5939
  code: g.invalid_string,
5931
5940
  message: i.message
5932
- }), n.dirty()) : i.kind === "base64url" ? Yc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5941
+ }), n.dirty()) : i.kind === "base64url" ? Kc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
5933
5942
  validation: "base64url",
5934
5943
  code: g.invalid_string,
5935
5944
  message: i.message
5936
- }), n.dirty()) : H.assertNever(i);
5945
+ }), n.dirty()) : W.assertNever(i);
5937
5946
  return { status: n.value, value: e.data };
5938
5947
  }
5939
5948
  _regex(e, r, n) {
@@ -6164,7 +6173,7 @@ Ne.create = (t) => new Ne({
6164
6173
  coerce: (t == null ? void 0 : t.coerce) ?? !1,
6165
6174
  ...q(t)
6166
6175
  });
6167
- function tl(t, e) {
6176
+ function rl(t, e) {
6168
6177
  const r = (t.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, a = r > n ? r : n, i = Number.parseInt(t.toFixed(a).replace(".", "")), o = Number.parseInt(e.toFixed(a).replace(".", ""));
6169
6178
  return i % o / 10 ** a;
6170
6179
  }
@@ -6184,7 +6193,7 @@ class ot extends V {
6184
6193
  let n;
6185
6194
  const a = new me();
6186
6195
  for (const i of this._def.checks)
6187
- i.kind === "int" ? H.isInteger(e.data) || (n = this._getOrReturnCtx(e, n), k(n, {
6196
+ i.kind === "int" ? W.isInteger(e.data) || (n = this._getOrReturnCtx(e, n), k(n, {
6188
6197
  code: g.invalid_type,
6189
6198
  expected: "integer",
6190
6199
  received: "float",
@@ -6203,14 +6212,14 @@ class ot extends V {
6203
6212
  inclusive: i.inclusive,
6204
6213
  exact: !1,
6205
6214
  message: i.message
6206
- }), a.dirty()) : i.kind === "multipleOf" ? tl(e.data, i.value) !== 0 && (n = this._getOrReturnCtx(e, n), k(n, {
6215
+ }), a.dirty()) : i.kind === "multipleOf" ? rl(e.data, i.value) !== 0 && (n = this._getOrReturnCtx(e, n), k(n, {
6207
6216
  code: g.not_multiple_of,
6208
6217
  multipleOf: i.value,
6209
6218
  message: i.message
6210
6219
  }), a.dirty()) : i.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n), k(n, {
6211
6220
  code: g.not_finite,
6212
6221
  message: i.message
6213
- }), a.dirty()) : H.assertNever(i);
6222
+ }), a.dirty()) : W.assertNever(i);
6214
6223
  return { status: a.value, value: e.data };
6215
6224
  }
6216
6225
  gte(e, r) {
@@ -6322,7 +6331,7 @@ class ot extends V {
6322
6331
  return e;
6323
6332
  }
6324
6333
  get isInt() {
6325
- return !!this._def.checks.find((e) => e.kind === "int" || e.kind === "multipleOf" && H.isInteger(e.value));
6334
+ return !!this._def.checks.find((e) => e.kind === "int" || e.kind === "multipleOf" && W.isInteger(e.value));
6326
6335
  }
6327
6336
  get isFinite() {
6328
6337
  let e = null, r = null;
@@ -6372,7 +6381,7 @@ class vt extends V {
6372
6381
  code: g.not_multiple_of,
6373
6382
  multipleOf: i.value,
6374
6383
  message: i.message
6375
- }), a.dirty()) : H.assertNever(i);
6384
+ }), a.dirty()) : W.assertNever(i);
6376
6385
  return { status: a.value, value: e.data };
6377
6386
  }
6378
6387
  _getInvalidInput(e) {
@@ -6524,7 +6533,7 @@ class Bt extends V {
6524
6533
  exact: !1,
6525
6534
  maximum: i.value,
6526
6535
  type: "date"
6527
- }), n.dirty()) : H.assertNever(i);
6536
+ }), n.dirty()) : W.assertNever(i);
6528
6537
  return {
6529
6538
  status: n.value,
6530
6539
  value: new Date(e.data.getTime())
@@ -6632,7 +6641,7 @@ sa.create = (t) => new sa({
6632
6641
  typeName: I.ZodAny,
6633
6642
  ...q(t)
6634
6643
  });
6635
- class Wr extends V {
6644
+ class Hr extends V {
6636
6645
  constructor() {
6637
6646
  super(...arguments), this._unknown = !0;
6638
6647
  }
@@ -6640,7 +6649,7 @@ class Wr extends V {
6640
6649
  return Te(e.data);
6641
6650
  }
6642
6651
  }
6643
- Wr.create = (t) => new Wr({
6652
+ Hr.create = (t) => new Hr({
6644
6653
  typeName: I.ZodUnknown,
6645
6654
  ...q(t)
6646
6655
  });
@@ -6753,7 +6762,7 @@ function tt(t) {
6753
6762
  const e = {};
6754
6763
  for (const r in t.shape) {
6755
6764
  const n = t.shape[r];
6756
- e[r] = Fe.create(tt(n));
6765
+ e[r] = ze.create(tt(n));
6757
6766
  }
6758
6767
  return new se({
6759
6768
  ...t._def,
@@ -6762,7 +6771,7 @@ function tt(t) {
6762
6771
  } else return t instanceof De ? new De({
6763
6772
  ...t._def,
6764
6773
  type: tt(t.element)
6765
- }) : t instanceof Fe ? Fe.create(tt(t.unwrap())) : t instanceof Ke ? Ke.create(tt(t.unwrap())) : t instanceof We ? We.create(t.items.map((e) => tt(e))) : t;
6774
+ }) : t instanceof ze ? ze.create(tt(t.unwrap())) : t instanceof Ke ? Ke.create(tt(t.unwrap())) : t instanceof He ? He.create(t.items.map((e) => tt(e))) : t;
6766
6775
  }
6767
6776
  class se extends V {
6768
6777
  constructor() {
@@ -6771,7 +6780,7 @@ class se extends V {
6771
6780
  _getCached() {
6772
6781
  if (this._cached !== null)
6773
6782
  return this._cached;
6774
- const e = this._def.shape(), r = H.objectKeys(e);
6783
+ const e = this._def.shape(), r = W.objectKeys(e);
6775
6784
  return this._cached = { shape: e, keys: r }, this._cached;
6776
6785
  }
6777
6786
  _parse(e) {
@@ -6978,7 +6987,7 @@ class se extends V {
6978
6987
  }
6979
6988
  pick(e) {
6980
6989
  const r = {};
6981
- for (const n of H.objectKeys(e))
6990
+ for (const n of W.objectKeys(e))
6982
6991
  e[n] && this.shape[n] && (r[n] = this.shape[n]);
6983
6992
  return new se({
6984
6993
  ...this._def,
@@ -6987,7 +6996,7 @@ class se extends V {
6987
6996
  }
6988
6997
  omit(e) {
6989
6998
  const r = {};
6990
- for (const n of H.objectKeys(this.shape))
6999
+ for (const n of W.objectKeys(this.shape))
6991
7000
  e[n] || (r[n] = this.shape[n]);
6992
7001
  return new se({
6993
7002
  ...this._def,
@@ -7002,7 +7011,7 @@ class se extends V {
7002
7011
  }
7003
7012
  partial(e) {
7004
7013
  const r = {};
7005
- for (const n of H.objectKeys(this.shape)) {
7014
+ for (const n of W.objectKeys(this.shape)) {
7006
7015
  const a = this.shape[n];
7007
7016
  e && !e[n] ? r[n] = a : r[n] = a.optional();
7008
7017
  }
@@ -7013,12 +7022,12 @@ class se extends V {
7013
7022
  }
7014
7023
  required(e) {
7015
7024
  const r = {};
7016
- for (const n of H.objectKeys(this.shape))
7025
+ for (const n of W.objectKeys(this.shape))
7017
7026
  if (e && !e[n])
7018
7027
  r[n] = this.shape[n];
7019
7028
  else {
7020
7029
  let i = this.shape[n];
7021
- for (; i instanceof Fe; )
7030
+ for (; i instanceof ze; )
7022
7031
  i = i._def.innerType;
7023
7032
  r[n] = i;
7024
7033
  }
@@ -7028,7 +7037,7 @@ class se extends V {
7028
7037
  });
7029
7038
  }
7030
7039
  keyof() {
7031
- return ni(H.objectKeys(this.shape));
7040
+ return ni(W.objectKeys(this.shape));
7032
7041
  }
7033
7042
  }
7034
7043
  se.create = (t, e) => new se({
@@ -7062,7 +7071,7 @@ class Zt extends V {
7062
7071
  for (const s of i)
7063
7072
  if (s.result.status === "dirty")
7064
7073
  return r.common.issues.push(...s.ctx.common.issues), s.result;
7065
- const o = i.map((s) => new ze(s.ctx.common.issues));
7074
+ const o = i.map((s) => new Fe(s.ctx.common.issues));
7066
7075
  return k(r, {
7067
7076
  code: g.invalid_union,
7068
7077
  unionErrors: o
@@ -7109,7 +7118,7 @@ class Zt extends V {
7109
7118
  }
7110
7119
  if (i)
7111
7120
  return r.common.issues.push(...i.ctx.common.issues), i.result;
7112
- const s = o.map((d) => new ze(d));
7121
+ const s = o.map((d) => new Fe(d));
7113
7122
  return k(r, {
7114
7123
  code: g.invalid_union,
7115
7124
  unionErrors: s
@@ -7125,7 +7134,7 @@ Zt.create = (t, e) => new Zt({
7125
7134
  typeName: I.ZodUnion,
7126
7135
  ...q(e)
7127
7136
  });
7128
- const Ie = (t) => t instanceof Yr ? Ie(t.schema) : t instanceof Ye ? Ie(t.innerType()) : t instanceof Ht ? [t.value] : t instanceof He ? t.options : t instanceof Kr ? H.objectValues(t.enum) : t instanceof Kt ? Ie(t._def.innerType) : t instanceof Vr ? [void 0] : t instanceof Ut ? [null] : t instanceof Fe ? [void 0, ...Ie(t.unwrap())] : t instanceof Ke ? [null, ...Ie(t.unwrap())] : t instanceof ai || t instanceof Gt ? Ie(t.unwrap()) : t instanceof Jt ? Ie(t._def.innerType) : [];
7137
+ const Ie = (t) => t instanceof Yr ? Ie(t.schema) : t instanceof Ye ? Ie(t.innerType()) : t instanceof Wt ? [t.value] : t instanceof We ? t.options : t instanceof Kr ? W.objectValues(t.enum) : t instanceof Kt ? Ie(t._def.innerType) : t instanceof Vr ? [void 0] : t instanceof Ut ? [null] : t instanceof ze ? [void 0, ...Ie(t.unwrap())] : t instanceof Ke ? [null, ...Ie(t.unwrap())] : t instanceof ai || t instanceof Gt ? Ie(t.unwrap()) : t instanceof Jt ? Ie(t._def.innerType) : [];
7129
7138
  class nn extends V {
7130
7139
  _parse(e) {
7131
7140
  const { ctx: r } = this._processInputParams(e);
@@ -7188,14 +7197,14 @@ class nn extends V {
7188
7197
  });
7189
7198
  }
7190
7199
  }
7191
- function Hr(t, e) {
7200
+ function Wr(t, e) {
7192
7201
  const r = Le(t), n = Le(e);
7193
7202
  if (t === e)
7194
7203
  return { valid: !0, data: t };
7195
7204
  if (r === T.object && n === T.object) {
7196
- const a = H.objectKeys(e), i = H.objectKeys(t).filter((s) => a.indexOf(s) !== -1), o = { ...t, ...e };
7205
+ const a = W.objectKeys(e), i = W.objectKeys(t).filter((s) => a.indexOf(s) !== -1), o = { ...t, ...e };
7197
7206
  for (const s of i) {
7198
- const d = Hr(t[s], e[s]);
7207
+ const d = Wr(t[s], e[s]);
7199
7208
  if (!d.valid)
7200
7209
  return { valid: !1 };
7201
7210
  o[s] = d.data;
@@ -7206,7 +7215,7 @@ function Hr(t, e) {
7206
7215
  return { valid: !1 };
7207
7216
  const a = [];
7208
7217
  for (let i = 0; i < t.length; i++) {
7209
- const o = t[i], s = e[i], d = Hr(o, s);
7218
+ const o = t[i], s = e[i], d = Wr(o, s);
7210
7219
  if (!d.valid)
7211
7220
  return { valid: !1 };
7212
7221
  a.push(d.data);
@@ -7219,7 +7228,7 @@ class Vt extends V {
7219
7228
  const { status: r, ctx: n } = this._processInputParams(e), a = (i, o) => {
7220
7229
  if (na(i) || na(o))
7221
7230
  return P;
7222
- const s = Hr(i.value, o.value);
7231
+ const s = Wr(i.value, o.value);
7223
7232
  return s.valid ? ((aa(i) || aa(o)) && r.dirty(), { status: r.value, value: s.data }) : (k(n, {
7224
7233
  code: g.invalid_intersection_types
7225
7234
  }), P);
@@ -7252,7 +7261,7 @@ Vt.create = (t, e, r) => new Vt({
7252
7261
  typeName: I.ZodIntersection,
7253
7262
  ...q(r)
7254
7263
  });
7255
- class We extends V {
7264
+ class He extends V {
7256
7265
  _parse(e) {
7257
7266
  const { status: r, ctx: n } = this._processInputParams(e);
7258
7267
  if (n.parsedType !== T.array)
@@ -7286,23 +7295,23 @@ class We extends V {
7286
7295
  return this._def.items;
7287
7296
  }
7288
7297
  rest(e) {
7289
- return new We({
7298
+ return new He({
7290
7299
  ...this._def,
7291
7300
  rest: e
7292
7301
  });
7293
7302
  }
7294
7303
  }
7295
- We.create = (t, e) => {
7304
+ He.create = (t, e) => {
7296
7305
  if (!Array.isArray(t))
7297
7306
  throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
7298
- return new We({
7307
+ return new He({
7299
7308
  items: t,
7300
7309
  typeName: I.ZodTuple,
7301
7310
  rest: null,
7302
7311
  ...q(e)
7303
7312
  });
7304
7313
  };
7305
- class Wt extends V {
7314
+ class Ht extends V {
7306
7315
  get keySchema() {
7307
7316
  return this._def.keyType;
7308
7317
  }
@@ -7330,12 +7339,12 @@ class Wt extends V {
7330
7339
  return this._def.valueType;
7331
7340
  }
7332
7341
  static create(e, r, n) {
7333
- return r instanceof V ? new Wt({
7342
+ return r instanceof V ? new Ht({
7334
7343
  keyType: e,
7335
7344
  valueType: r,
7336
7345
  typeName: I.ZodRecord,
7337
7346
  ...q(n)
7338
- }) : new Wt({
7347
+ }) : new Ht({
7339
7348
  keyType: Ne.create(),
7340
7349
  valueType: e,
7341
7350
  typeName: I.ZodRecord,
@@ -7469,7 +7478,7 @@ Yr.create = (t, e) => new Yr({
7469
7478
  typeName: I.ZodLazy,
7470
7479
  ...q(e)
7471
7480
  });
7472
- class Ht extends V {
7481
+ class Wt extends V {
7473
7482
  _parse(e) {
7474
7483
  if (e.data !== this._def.value) {
7475
7484
  const r = this._getOrReturnCtx(e);
@@ -7485,24 +7494,24 @@ class Ht extends V {
7485
7494
  return this._def.value;
7486
7495
  }
7487
7496
  }
7488
- Ht.create = (t, e) => new Ht({
7497
+ Wt.create = (t, e) => new Wt({
7489
7498
  value: t,
7490
7499
  typeName: I.ZodLiteral,
7491
7500
  ...q(e)
7492
7501
  });
7493
7502
  function ni(t, e) {
7494
- return new He({
7503
+ return new We({
7495
7504
  values: t,
7496
7505
  typeName: I.ZodEnum,
7497
7506
  ...q(e)
7498
7507
  });
7499
7508
  }
7500
- class He extends V {
7509
+ class We extends V {
7501
7510
  _parse(e) {
7502
7511
  if (typeof e.data != "string") {
7503
7512
  const r = this._getOrReturnCtx(e), n = this._def.values;
7504
7513
  return k(r, {
7505
- expected: H.joinValues(n),
7514
+ expected: W.joinValues(n),
7506
7515
  received: r.parsedType,
7507
7516
  code: g.invalid_type
7508
7517
  }), P;
@@ -7539,32 +7548,32 @@ class He extends V {
7539
7548
  return e;
7540
7549
  }
7541
7550
  extract(e, r = this._def) {
7542
- return He.create(e, {
7551
+ return We.create(e, {
7543
7552
  ...this._def,
7544
7553
  ...r
7545
7554
  });
7546
7555
  }
7547
7556
  exclude(e, r = this._def) {
7548
- return He.create(this.options.filter((n) => !e.includes(n)), {
7557
+ return We.create(this.options.filter((n) => !e.includes(n)), {
7549
7558
  ...this._def,
7550
7559
  ...r
7551
7560
  });
7552
7561
  }
7553
7562
  }
7554
- He.create = ni;
7563
+ We.create = ni;
7555
7564
  class Kr extends V {
7556
7565
  _parse(e) {
7557
- const r = H.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
7566
+ const r = W.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
7558
7567
  if (n.parsedType !== T.string && n.parsedType !== T.number) {
7559
- const a = H.objectValues(r);
7568
+ const a = W.objectValues(r);
7560
7569
  return k(n, {
7561
- expected: H.joinValues(a),
7570
+ expected: W.joinValues(a),
7562
7571
  received: n.parsedType,
7563
7572
  code: g.invalid_type
7564
7573
  }), P;
7565
7574
  }
7566
- if (this._cache || (this._cache = new Set(H.getValidEnumValues(this._def.values))), !this._cache.has(e.data)) {
7567
- const a = H.objectValues(r);
7575
+ if (this._cache || (this._cache = new Set(W.getValidEnumValues(this._def.values))), !this._cache.has(e.data)) {
7576
+ const a = W.objectValues(r);
7568
7577
  return k(n, {
7569
7578
  received: n.data,
7570
7579
  code: g.invalid_enum_value,
@@ -7683,7 +7692,7 @@ class Ye extends V {
7683
7692
  status: r.value,
7684
7693
  value: s
7685
7694
  })) : P);
7686
- H.assertNever(a);
7695
+ W.assertNever(a);
7687
7696
  }
7688
7697
  }
7689
7698
  Ye.create = (t, e, r) => new Ye({
@@ -7698,7 +7707,7 @@ Ye.createWithPreprocess = (t, e, r) => new Ye({
7698
7707
  typeName: I.ZodEffects,
7699
7708
  ...q(r)
7700
7709
  });
7701
- class Fe extends V {
7710
+ class ze extends V {
7702
7711
  _parse(e) {
7703
7712
  return this._getType(e) === T.undefined ? Te(void 0) : this._def.innerType._parse(e);
7704
7713
  }
@@ -7706,7 +7715,7 @@ class Fe extends V {
7706
7715
  return this._def.innerType;
7707
7716
  }
7708
7717
  }
7709
- Fe.create = (t, e) => new Fe({
7718
+ ze.create = (t, e) => new ze({
7710
7719
  innerType: t,
7711
7720
  typeName: I.ZodOptional,
7712
7721
  ...q(e)
@@ -7763,7 +7772,7 @@ class Jt extends V {
7763
7772
  status: "valid",
7764
7773
  value: i.status === "valid" ? i.value : this._def.catchValue({
7765
7774
  get error() {
7766
- return new ze(n.common.issues);
7775
+ return new Fe(n.common.issues);
7767
7776
  },
7768
7777
  input: n.data
7769
7778
  })
@@ -7771,7 +7780,7 @@ class Jt extends V {
7771
7780
  status: "valid",
7772
7781
  value: a.status === "valid" ? a.value : this._def.catchValue({
7773
7782
  get error() {
7774
- return new ze(n.common.issues);
7783
+ return new Fe(n.common.issues);
7775
7784
  },
7776
7785
  input: n.data
7777
7786
  })
@@ -7875,14 +7884,14 @@ var I;
7875
7884
  (function(t) {
7876
7885
  t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodReadonly";
7877
7886
  })(I || (I = {}));
7878
- const S = Ne.create, J = ot.create, Oe = Zr.create, on = Ut.create, kt = Wr.create;
7887
+ const E = Ne.create, J = ot.create, Oe = Zr.create, on = Ut.create, kt = Hr.create;
7879
7888
  qe.create;
7880
- const Ge = De.create, te = se.create, sn = Zt.create, rl = nn.create;
7889
+ const Ge = De.create, te = se.create, sn = Zt.create, nl = nn.create;
7881
7890
  Vt.create;
7882
- We.create;
7883
- const Et = Wt.create, ar = Ht.create, he = He.create;
7891
+ He.create;
7892
+ const St = Ht.create, ar = Wt.create, he = We.create;
7884
7893
  Yt.create;
7885
- Fe.create;
7894
+ ze.create;
7886
7895
  Ke.create;
7887
7896
  var rt = {
7888
7897
  colors: {
@@ -7953,7 +7962,7 @@ var rt = {
7953
7962
  ({
7954
7963
  ...rt.colors
7955
7964
  });
7956
- var nl = he([
7965
+ var al = he([
7957
7966
  "string",
7958
7967
  "number",
7959
7968
  "integer",
@@ -7982,12 +7991,12 @@ var nl = he([
7982
7991
  "enum",
7983
7992
  "unique",
7984
7993
  "custom"
7985
- ]), oi = he(["error", "warning", "info"]), al = te({
7994
+ ]), oi = he(["error", "warning", "info"]), il = te({
7986
7995
  type: ii,
7987
- params: Et(kt()).optional(),
7988
- message: S().optional(),
7996
+ params: St(kt()).optional(),
7997
+ message: E().optional(),
7989
7998
  severity: oi.optional().default("error")
7990
- }), il = he([
7999
+ }), ol = he([
7991
8000
  "trim",
7992
8001
  "lowercase",
7993
8002
  "uppercase",
@@ -7997,27 +8006,27 @@ var nl = he([
7997
8006
  "toBoolean",
7998
8007
  "replace",
7999
8008
  "custom"
8000
- ]), ol = te({
8001
- type: il,
8002
- params: Et(kt()).optional()
8003
- }), sl = te({
8004
- key: S().min(1).max(100),
8005
- label: S().min(1).max(200),
8006
- type: nl,
8007
- required: Oe().optional().default(!1),
8008
- description: S().max(500).optional(),
8009
- validators: Ge(al).optional(),
8010
- transform: ol.optional()
8009
+ ]), sl = te({
8010
+ type: ol,
8011
+ params: St(kt()).optional()
8011
8012
  }), cl = te({
8013
+ key: E().min(1).max(100),
8014
+ label: E().min(1).max(200),
8015
+ type: al,
8016
+ required: Oe().optional().default(!1),
8017
+ description: E().max(500).optional(),
8018
+ validators: Ge(il).optional(),
8019
+ transform: sl.optional()
8020
+ }), ll = te({
8012
8021
  allowExtraColumns: Oe().optional().default(!1),
8013
8022
  skipEmptyRows: Oe().optional().default(!0),
8014
8023
  trimWhitespace: Oe().optional().default(!0),
8015
- dateFormat: S().optional(),
8016
- uniqueKeys: Ge(S()).optional(),
8024
+ dateFormat: E().optional(),
8025
+ uniqueKeys: Ge(E()).optional(),
8017
8026
  maxRows: J().int().positive().optional().default(1e5)
8018
- }), ll = te({
8019
- columns: Ge(sl).min(1),
8020
- options: cl.optional()
8027
+ }), dl = te({
8028
+ columns: Ge(cl).min(1),
8029
+ options: ll.optional()
8021
8030
  });
8022
8031
  he([
8023
8032
  "created",
@@ -8034,51 +8043,51 @@ he([
8034
8043
  "cancelled"
8035
8044
  ]);
8036
8045
  te({
8037
- schema: ll,
8038
- metadata: Et(kt()).optional()
8046
+ schema: dl,
8047
+ metadata: St(kt()).optional()
8039
8048
  });
8040
- var dl = te({
8041
- sourceColumn: S(),
8042
- targetKey: S().nullable(),
8049
+ var pl = te({
8050
+ sourceColumn: E(),
8051
+ targetKey: E().nullable(),
8043
8052
  confidence: J().min(0).max(1),
8044
8053
  isAutoMapped: Oe(),
8045
- reasoning: S().optional()
8054
+ reasoning: E().optional()
8046
8055
  });
8047
8056
  te({
8048
- sessionId: S().uuid(),
8049
- mappings: Ge(dl)
8057
+ sessionId: E().uuid(),
8058
+ mappings: Ge(pl)
8050
8059
  });
8051
8060
  te({
8052
8061
  rowIndex: J().int().nonnegative(),
8053
- columnKey: S(),
8054
- value: sn([S(), J(), Oe(), on()]),
8062
+ columnKey: E(),
8063
+ value: sn([E(), J(), Oe(), on()]),
8055
8064
  severity: oi,
8056
8065
  validatorType: ii,
8057
- message: S(),
8058
- suggestion: S().optional()
8066
+ message: E(),
8067
+ suggestion: E().optional()
8059
8068
  });
8060
8069
  te({
8061
- sessionId: S().uuid(),
8070
+ sessionId: E().uuid(),
8062
8071
  rowIndex: J().int().nonnegative(),
8063
- columnKey: S(),
8064
- value: sn([S(), J(), Oe(), on()])
8072
+ columnKey: E(),
8073
+ value: sn([E(), J(), Oe(), on()])
8065
8074
  });
8066
8075
  te({
8067
- sessionId: S().uuid(),
8076
+ sessionId: E().uuid(),
8068
8077
  updates: Ge(
8069
8078
  te({
8070
8079
  rowIndex: J().int().nonnegative(),
8071
- columnKey: S(),
8072
- value: sn([S(), J(), Oe(), on()])
8080
+ columnKey: E(),
8081
+ value: sn([E(), J(), Oe(), on()])
8073
8082
  })
8074
8083
  )
8075
8084
  });
8076
8085
  te({
8077
- sessionId: S().uuid(),
8086
+ sessionId: E().uuid(),
8078
8087
  skipInvalidRows: Oe().optional().default(!1),
8079
8088
  acknowledgeWarnings: Oe().optional().default(!1)
8080
8089
  });
8081
- var pl = /^[ABCEGHJ-NPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][ ]?\d[ABCEGHJ-NPRSTV-Z]\d$/i, fl = /^[A-Z]{2}\d{6}$/, si = {
8090
+ var fl = /^[ABCEGHJ-NPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][ ]?\d[ABCEGHJ-NPRSTV-Z]\d$/i, ul = /^[A-Z]{2}\d{6}$/, si = {
8082
8091
  AB: {
8083
8092
  code: "AB",
8084
8093
  name: "Alberta",
@@ -8215,13 +8224,13 @@ var ci = he([
8215
8224
  "SK",
8216
8225
  "YT"
8217
8226
  ]), li = te({
8218
- streetLine1: S().min(1).max(200),
8219
- streetLine2: S().max(200).optional(),
8220
- city: S().min(1).max(100),
8227
+ streetLine1: E().min(1).max(200),
8228
+ streetLine2: E().max(200).optional(),
8229
+ city: E().min(1).max(100),
8221
8230
  province: ci,
8222
- postalCode: S().regex(pl, "Invalid Canadian postal code format (A1A 1A1)"),
8231
+ postalCode: E().regex(fl, "Invalid Canadian postal code format (A1A 1A1)"),
8223
8232
  country: ar("Canada")
8224
- }), cn = he(["passport", "drivers_license", "proof_of_address"]), ul = he(["uploaded", "processing", "completed", "failed", "requires_review"]), ml = he(["excellent", "good", "fair", "poor"]), hl = he(["tesseract", "textract", "gpt4vision"]), di = he(["M", "F", "X"]), gl = he([
8233
+ }), cn = he(["passport", "drivers_license", "proof_of_address"]), ml = he(["uploaded", "processing", "completed", "failed", "requires_review"]), hl = he(["excellent", "good", "fair", "poor"]), gl = he(["tesseract", "textract", "gpt4vision"]), di = he(["M", "F", "X"]), vl = he([
8225
8234
  "image_manipulation",
8226
8235
  "poor_quality",
8227
8236
  "inconsistent_data",
@@ -8230,13 +8239,13 @@ var ci = he([
8230
8239
  "suspicious_pattern",
8231
8240
  "missing_security_features",
8232
8241
  "document_tampering"
8233
- ]), vl = he(["high", "medium", "low"]), yl = te({
8234
- type: gl,
8235
- severity: vl,
8236
- message: S(),
8237
- field: S().optional(),
8238
- details: Et(kt()).optional()
8239
- }), bl = te({
8242
+ ]), yl = he(["high", "medium", "low"]), bl = te({
8243
+ type: vl,
8244
+ severity: yl,
8245
+ message: E(),
8246
+ field: E().optional(),
8247
+ details: St(kt()).optional()
8248
+ }), xl = te({
8240
8249
  fullName: J().min(0).max(1),
8241
8250
  passportNumber: J().min(0).max(1),
8242
8251
  dateOfBirth: J().min(0).max(1),
@@ -8245,23 +8254,23 @@ var ci = he([
8245
8254
  placeOfBirth: J().min(0).max(1),
8246
8255
  sex: J().min(0).max(1),
8247
8256
  nationality: J().min(0).max(1)
8248
- }), xl = te({
8257
+ }), wl = te({
8249
8258
  documentType: ar("passport"),
8250
- fullName: S().min(1),
8251
- givenNames: S().min(1),
8252
- surname: S().min(1),
8253
- passportNumber: S().regex(fl, "Invalid Canadian passport number (format: AB123456)"),
8254
- dateOfBirth: S().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
8255
- dateOfIssue: S().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
8256
- dateOfExpiry: S().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
8257
- placeOfBirth: S().min(1),
8259
+ fullName: E().min(1),
8260
+ givenNames: E().min(1),
8261
+ surname: E().min(1),
8262
+ passportNumber: E().regex(ul, "Invalid Canadian passport number (format: AB123456)"),
8263
+ dateOfBirth: E().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
8264
+ dateOfIssue: E().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
8265
+ dateOfExpiry: E().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
8266
+ placeOfBirth: E().min(1),
8258
8267
  sex: di,
8259
- nationality: S().min(1),
8260
- photoBase64: S().optional(),
8261
- mrzLine1: S().optional(),
8262
- mrzLine2: S().optional(),
8263
- confidence: bl
8264
- }), wl = te({
8268
+ nationality: E().min(1),
8269
+ photoBase64: E().optional(),
8270
+ mrzLine1: E().optional(),
8271
+ mrzLine2: E().optional(),
8272
+ confidence: xl
8273
+ }), _l = te({
8265
8274
  fullName: J().min(0).max(1),
8266
8275
  licenseNumber: J().min(0).max(1),
8267
8276
  dateOfBirth: J().min(0).max(1),
@@ -8271,24 +8280,24 @@ var ci = he([
8271
8280
  licenseClass: J().min(0).max(1)
8272
8281
  }), pi = te({
8273
8282
  documentType: ar("drivers_license"),
8274
- fullName: S().min(1),
8275
- firstName: S().min(1),
8276
- lastName: S().min(1),
8277
- middleName: S().optional(),
8278
- licenseNumber: S().min(1),
8279
- dateOfBirth: S().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
8280
- expiryDate: S().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
8281
- issueDate: S().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format").optional(),
8283
+ fullName: E().min(1),
8284
+ firstName: E().min(1),
8285
+ lastName: E().min(1),
8286
+ middleName: E().optional(),
8287
+ licenseNumber: E().min(1),
8288
+ dateOfBirth: E().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
8289
+ expiryDate: E().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
8290
+ issueDate: E().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format").optional(),
8282
8291
  address: li,
8283
8292
  province: ci,
8284
- licenseClass: S().min(1),
8285
- restrictions: S().optional(),
8286
- endorsements: S().optional(),
8293
+ licenseClass: E().min(1),
8294
+ restrictions: E().optional(),
8295
+ endorsements: E().optional(),
8287
8296
  sex: di.optional(),
8288
- height: S().optional(),
8289
- eyeColor: S().optional(),
8290
- photoBase64: S().optional(),
8291
- confidence: wl
8297
+ height: E().optional(),
8298
+ eyeColor: E().optional(),
8299
+ photoBase64: E().optional(),
8300
+ confidence: _l
8292
8301
  });
8293
8302
  pi.refine(
8294
8303
  (t) => si[t.province].licenseFormat.test(t.licenseNumber),
@@ -8297,7 +8306,7 @@ pi.refine(
8297
8306
  path: ["licenseNumber"]
8298
8307
  }
8299
8308
  );
8300
- var _l = he([
8309
+ var kl = he([
8301
8310
  "utility_bill",
8302
8311
  "bank_statement",
8303
8312
  "government_letter",
@@ -8305,7 +8314,7 @@ var _l = he([
8305
8314
  "lease_agreement",
8306
8315
  "insurance_statement",
8307
8316
  "other"
8308
- ]), kl = te({
8317
+ ]), Sl = te({
8309
8318
  fullName: J().min(0).max(1),
8310
8319
  address: J().min(0).max(1),
8311
8320
  documentSubType: J().min(0).max(1),
@@ -8313,18 +8322,18 @@ var _l = he([
8313
8322
  documentDate: J().min(0).max(1)
8314
8323
  }), fi = te({
8315
8324
  documentType: ar("proof_of_address"),
8316
- fullName: S().min(1),
8325
+ fullName: E().min(1),
8317
8326
  address: li,
8318
- documentSubType: _l,
8319
- issuer: S().min(1),
8320
- documentDate: S().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
8321
- accountNumber: S().max(4).optional(),
8327
+ documentSubType: kl,
8328
+ issuer: E().min(1),
8329
+ documentDate: E().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
8330
+ accountNumber: E().max(4).optional(),
8322
8331
  // Last 4 digits only
8323
8332
  statementPeriod: te({
8324
- start: S(),
8325
- end: S()
8333
+ start: E(),
8334
+ end: E()
8326
8335
  }).optional(),
8327
- confidence: kl
8336
+ confidence: Sl
8328
8337
  });
8329
8338
  fi.refine(
8330
8339
  (t) => {
@@ -8336,8 +8345,8 @@ fi.refine(
8336
8345
  path: ["documentDate"]
8337
8346
  }
8338
8347
  );
8339
- var El = rl("documentType", [
8340
- xl,
8348
+ var El = nl("documentType", [
8349
+ wl,
8341
8350
  pi,
8342
8351
  fi
8343
8352
  ]);
@@ -8352,33 +8361,33 @@ he([
8352
8361
  ]);
8353
8362
  te({
8354
8363
  requiredDocuments: Ge(cn).min(1),
8355
- metadata: Et(kt()).optional()
8364
+ metadata: St(kt()).optional()
8356
8365
  });
8357
8366
  te({
8358
- sessionId: S().uuid(),
8367
+ sessionId: E().uuid(),
8359
8368
  documentType: cn
8360
8369
  });
8361
8370
  te({
8362
- id: S().uuid(),
8363
- sessionId: S().uuid(),
8371
+ id: E().uuid(),
8372
+ sessionId: E().uuid(),
8364
8373
  type: cn,
8365
- status: ul,
8366
- uploadedAt: S().datetime(),
8367
- processedAt: S().datetime().optional(),
8368
- originalFilename: S(),
8374
+ status: ml,
8375
+ uploadedAt: E().datetime(),
8376
+ processedAt: E().datetime().optional(),
8377
+ originalFilename: E(),
8369
8378
  fileSize: J().int().positive(),
8370
- mimeType: S(),
8371
- s3Key: S(),
8379
+ mimeType: E(),
8380
+ s3Key: E(),
8372
8381
  extractedData: El.optional(),
8373
8382
  confidence: J().min(0).max(1),
8374
- ocrQuality: ml,
8375
- fraudFlags: Ge(yl),
8383
+ ocrQuality: hl,
8384
+ fraudFlags: Ge(bl),
8376
8385
  processingTimeMs: J().int().optional(),
8377
- ocrProvider: hl.optional(),
8378
- aiModel: S().optional()
8386
+ ocrProvider: gl.optional(),
8387
+ aiModel: E().optional()
8379
8388
  });
8380
8389
  te({
8381
- sessionId: S().uuid(),
8390
+ sessionId: E().uuid(),
8382
8391
  acceptWarnings: Oe().optional().default(!1)
8383
8392
  });
8384
8393
  var pa = ["payment", "payout", "subscription"], Xt = [
@@ -8530,7 +8539,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
8530
8539
  ],
8531
8540
  transform: { type: "trim" }
8532
8541
  }
8533
- ], Sl = [
8542
+ ], Tl = [
8534
8543
  {
8535
8544
  key: "preferred_method",
8536
8545
  label: "Preferred Payment Method",
@@ -8546,7 +8555,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
8546
8555
  ],
8547
8556
  transform: { type: "lowercase" }
8548
8557
  }
8549
- ], Tl = [
8558
+ ], Ol = [
8550
8559
  {
8551
8560
  key: "phone",
8552
8561
  label: "Phone Number",
@@ -8657,7 +8666,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
8657
8666
  ],
8658
8667
  transform: { type: "trim" }
8659
8668
  }
8660
- ], Ol = [
8669
+ ], Cl = [
8661
8670
  {
8662
8671
  key: "shipping_first_name",
8663
8672
  label: "Shipping First Name",
@@ -8722,7 +8731,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
8722
8731
  description: "Shipping postal or ZIP code",
8723
8732
  transform: { type: "trim" }
8724
8733
  }
8725
- ], Cl = [
8734
+ ], Al = [
8726
8735
  {
8727
8736
  key: "item_description",
8728
8737
  label: "Item Description",
@@ -8764,7 +8773,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
8764
8773
  description: "Additional items in JSON format",
8765
8774
  transform: { type: "trim" }
8766
8775
  }
8767
- ], Al = [
8776
+ ], Rl = [
8768
8777
  {
8769
8778
  key: "email_recipients",
8770
8779
  label: "Email Recipients",
@@ -8797,7 +8806,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
8797
8806
  description: "Additional notification information",
8798
8807
  transform: { type: "trim" }
8799
8808
  }
8800
- ], Rl = [
8809
+ ], jl = [
8801
8810
  {
8802
8811
  key: "subscription_amount",
8803
8812
  label: "Subscription Amount",
@@ -8906,7 +8915,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
8906
8915
  { type: "date", message: "Must be a valid date/time" }
8907
8916
  ]
8908
8917
  }
8909
- ], jl = [
8918
+ ], Dl = [
8910
8919
  {
8911
8920
  key: "return_url",
8912
8921
  label: "Return URL",
@@ -8940,7 +8949,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
8940
8949
  ],
8941
8950
  transform: { type: "trim" }
8942
8951
  }
8943
- ], Dl = [
8952
+ ], Pl = [
8944
8953
  {
8945
8954
  key: "convinience_fee",
8946
8955
  label: "Convenience Fee",
@@ -8977,14 +8986,14 @@ var pa = ["payment", "payout", "subscription"], Xt = [
8977
8986
  ], mi = {
8978
8987
  columns: [
8979
8988
  ...ui,
8980
- ...Sl,
8981
8989
  ...Tl,
8982
8990
  ...Ol,
8983
8991
  ...Cl,
8984
8992
  ...Al,
8985
8993
  ...Rl,
8986
8994
  ...jl,
8987
- ...Dl
8995
+ ...Dl,
8996
+ ...Pl
8988
8997
  ],
8989
8998
  options: {
8990
8999
  allowExtraColumns: !0,
@@ -8995,7 +9004,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
8995
9004
  };
8996
9005
  ui.map((t) => t.key);
8997
9006
  mi.columns.map((t) => t.key);
8998
- var Pl = {
9007
+ var Il = {
8999
9008
  columns: [
9000
9009
  {
9001
9010
  key: "email",
@@ -9063,13 +9072,13 @@ var Pl = {
9063
9072
  skipEmptyRows: !0,
9064
9073
  trimWhitespace: !0
9065
9074
  }
9066
- }, St = {
9075
+ }, Et = {
9067
9076
  "sample-contact": {
9068
9077
  id: "sample-contact",
9069
9078
  name: "Sample Contact Import",
9070
9079
  description: "Basic contact information import (email, name, phone, company)",
9071
9080
  category: "general",
9072
- schema: Pl,
9081
+ schema: Il,
9073
9082
  version: "1.0.0",
9074
9083
  sampleFile: "sample-contact-template.csv"
9075
9084
  },
@@ -9083,26 +9092,26 @@ var Pl = {
9083
9092
  sampleFile: "payspace-batch-valid.csv"
9084
9093
  }
9085
9094
  };
9086
- function Il(t) {
9087
- return St[t] || null;
9095
+ function Nl(t) {
9096
+ return Et[t] || null;
9088
9097
  }
9089
- function gd(t) {
9090
- const e = Il(t);
9098
+ function vd(t) {
9099
+ const e = Nl(t);
9091
9100
  return (e == null ? void 0 : e.schema) || null;
9092
9101
  }
9093
- function vd() {
9094
- return Object.keys(St);
9095
- }
9096
- function Nl() {
9097
- return Object.values(St);
9102
+ function yd() {
9103
+ return Object.keys(Et);
9098
9104
  }
9099
- function yd(t) {
9100
- return Nl().filter((e) => e.category === t);
9105
+ function zl() {
9106
+ return Object.values(Et);
9101
9107
  }
9102
9108
  function bd(t) {
9103
- return t in St;
9109
+ return zl().filter((e) => e.category === t);
9110
+ }
9111
+ function xd(t) {
9112
+ return t in Et;
9104
9113
  }
9105
- var xd = Object.keys(St), wd = {
9114
+ var wd = Object.keys(Et), _d = {
9106
9115
  passport: {
9107
9116
  type: "passport",
9108
9117
  label: "Canadian Passport",
@@ -9153,33 +9162,33 @@ var xd = Object.keys(St), wd = {
9153
9162
  };
9154
9163
  export {
9155
9164
  si as C,
9156
- wd as D,
9157
- ts as F,
9158
- St as I,
9159
- dd as L,
9160
- Ll as S,
9161
- pd as T,
9162
- fd as U,
9163
- xd as V,
9164
- ud as X,
9165
- ad as a,
9166
- rs as b,
9167
- Il as c,
9168
- gd as d,
9169
- vd as e,
9170
- yd as f,
9171
- id as g,
9165
+ _d as D,
9166
+ rs as F,
9167
+ Et as I,
9168
+ pd as L,
9169
+ ql as S,
9170
+ fd as T,
9171
+ ud as U,
9172
+ wd as V,
9173
+ md as X,
9174
+ id as a,
9175
+ ns as b,
9176
+ Nl as c,
9177
+ vd as d,
9178
+ yd as e,
9179
+ bd as f,
9180
+ od as g,
9172
9181
  Me as h,
9173
9182
  jr as i,
9174
- hd as j,
9175
- ac as k,
9176
- Nl as l,
9177
- md as m,
9178
- sd as n,
9179
- ld as o,
9180
- cd as p,
9181
- od as q,
9182
- bd as t,
9183
- ql as u
9183
+ gd as j,
9184
+ ic as k,
9185
+ zl as l,
9186
+ hd as m,
9187
+ cd as n,
9188
+ dd as o,
9189
+ ld as p,
9190
+ sd as q,
9191
+ xd as t,
9192
+ Ml as u
9184
9193
  };
9185
- //# sourceMappingURL=index-oKr8Wtf5.mjs.map
9194
+ //# sourceMappingURL=index-fS1sp3k5.mjs.map