@fileflow/sdk 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ImportWizard-B5Uegimf.js +73 -0
- package/dist/{ImportWizard-BAmeOWXl.js.map → ImportWizard-B5Uegimf.js.map} +1 -1
- package/dist/{ImportWizard-B69XBxtG.mjs → ImportWizard-BNCe0g8q.mjs} +751 -748
- package/dist/{ImportWizard-B69XBxtG.mjs.map → ImportWizard-BNCe0g8q.mjs.map} +1 -1
- package/dist/{KYCWizard-CYdeoPXE.mjs → KYCWizard-BQkfxOw-.mjs} +2 -2
- package/dist/{KYCWizard-CYdeoPXE.mjs.map → KYCWizard-BQkfxOw-.mjs.map} +1 -1
- package/dist/{KYCWizard-Bei2tyWT.js → KYCWizard-Cq4Q7c8v.js} +2 -2
- package/dist/{KYCWizard-Bei2tyWT.js.map → KYCWizard-Cq4Q7c8v.js.map} +1 -1
- package/dist/import.d.ts +46 -0
- package/dist/import.js +1 -1
- package/dist/import.mjs +1 -1
- package/dist/{index-oKr8Wtf5.mjs → index-BNtIB3cM.mjs} +1080 -1038
- package/dist/index-BNtIB3cM.mjs.map +1 -0
- package/dist/{index-DOOgWkvj.js → index-j-Z3dkyz.js} +35 -35
- package/dist/index-j-Z3dkyz.js.map +1 -0
- package/dist/index.d.ts +67 -8
- package/dist/index.js +1 -1
- package/dist/index.mjs +3 -3
- package/dist/kyc.js +1 -1
- package/dist/kyc.mjs +1 -1
- package/dist/styles.css +1329 -0
- package/package.json +8 -3
- package/dist/ImportWizard-BAmeOWXl.js +0 -73
- package/dist/index-DOOgWkvj.js.map +0 -1
- package/dist/index-oKr8Wtf5.mjs.map +0 -1
|
@@ -1,61 +1,103 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
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";
|
|
4
|
-
let ur = !1;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if (document
|
|
8
|
-
|
|
1
|
+
import { jsx as ur } from "react/jsx-runtime";
|
|
2
|
+
import ct, { useRef as nt, useState as pn, useCallback as ke, useEffect as ht, useMemo as et, useReducer as _i, forwardRef as Gr, useImperativeHandle as ki, Fragment as Si, createElement as jr } from "react";
|
|
3
|
+
import Ei from "react-dom";
|
|
4
|
+
const ga = `.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}`, fn = "fileflow-sdk-styles";
|
|
5
|
+
let mr = !1;
|
|
6
|
+
function Dr() {
|
|
7
|
+
if (mr || typeof document > "u") return;
|
|
8
|
+
if (document.getElementById(fn)) {
|
|
9
|
+
mr = !0;
|
|
9
10
|
return;
|
|
10
11
|
}
|
|
11
12
|
const t = document.createElement("style");
|
|
12
|
-
t.id =
|
|
13
|
+
t.id = fn, t.setAttribute("data-fileflow-sdk", "true"), t.textContent = ga, document.head.appendChild(t), mr = !0;
|
|
14
|
+
}
|
|
15
|
+
function Ti(t) {
|
|
16
|
+
if (t.querySelector("style[data-fileflow-sdk]"))
|
|
17
|
+
return;
|
|
18
|
+
const e = document.createElement("style");
|
|
19
|
+
e.setAttribute("data-fileflow-sdk", "true"), e.textContent = ga, t.appendChild(e);
|
|
20
|
+
}
|
|
21
|
+
function Oi(t) {
|
|
22
|
+
if (!t) return;
|
|
23
|
+
const e = {};
|
|
24
|
+
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;
|
|
13
25
|
}
|
|
14
|
-
const
|
|
26
|
+
const Bl = ({
|
|
15
27
|
children: t,
|
|
16
|
-
className: e = ""
|
|
28
|
+
className: e = "",
|
|
29
|
+
theme: r,
|
|
30
|
+
useShadowDom: n = !1
|
|
17
31
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
32
|
+
const a = nt(null), i = nt(null), [o, s] = pn(!1), [d, c] = pn(!1), l = ke(() => {
|
|
33
|
+
if (!(!n || !a.current || i.current))
|
|
34
|
+
try {
|
|
35
|
+
i.current = a.current.attachShadow({ mode: "open" }), Ti(i.current), c(!0);
|
|
36
|
+
} catch (b) {
|
|
37
|
+
console.error("[FileFlow SDK] Failed to create Shadow DOM:", b), c(!1);
|
|
38
|
+
}
|
|
39
|
+
}, [n]);
|
|
40
|
+
ht(() => {
|
|
41
|
+
n ? l() : Dr(), s(!0);
|
|
42
|
+
}, [n, l]), !o && typeof window < "u" && (n || Dr());
|
|
43
|
+
const u = Oi(r);
|
|
44
|
+
return n ? /* @__PURE__ */ ur(
|
|
22
45
|
"div",
|
|
23
46
|
{
|
|
24
|
-
ref:
|
|
47
|
+
ref: a,
|
|
48
|
+
"data-fileflow-sdk": "true",
|
|
49
|
+
"data-shadow-dom": "true",
|
|
50
|
+
children: d && i.current && Ei.createPortal(
|
|
51
|
+
/* @__PURE__ */ ur(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
className: `fileflow-sdk-root ${e}`.trim(),
|
|
55
|
+
style: u,
|
|
56
|
+
children: t
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
i.current
|
|
60
|
+
)
|
|
61
|
+
}
|
|
62
|
+
) : /* @__PURE__ */ ur(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
ref: a,
|
|
25
66
|
className: `fileflow-sdk-root ${e}`.trim(),
|
|
26
67
|
"data-fileflow-sdk": "true",
|
|
68
|
+
style: u,
|
|
27
69
|
children: t
|
|
28
70
|
}
|
|
29
71
|
);
|
|
30
72
|
};
|
|
31
|
-
function
|
|
73
|
+
function Ul() {
|
|
32
74
|
ht(() => {
|
|
33
|
-
|
|
75
|
+
Dr();
|
|
34
76
|
}, []);
|
|
35
77
|
}
|
|
36
|
-
function
|
|
78
|
+
function va(t, e) {
|
|
37
79
|
return function() {
|
|
38
80
|
return t.apply(e, arguments);
|
|
39
81
|
};
|
|
40
82
|
}
|
|
41
|
-
const { toString:
|
|
42
|
-
const r =
|
|
83
|
+
const { toString: Ci } = Object.prototype, { getPrototypeOf: Xr } = Object, { iterator: Qt, toStringTag: ya } = Symbol, er = /* @__PURE__ */ ((t) => (e) => {
|
|
84
|
+
const r = Ci.call(e);
|
|
43
85
|
return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
|
|
44
|
-
})(/* @__PURE__ */ Object.create(null)), Ce = (t) => (t = t.toLowerCase(), (e) => er(e) === t), tr = (t) => (e) => typeof e === t, { isArray:
|
|
86
|
+
})(/* @__PURE__ */ Object.create(null)), Ce = (t) => (t = t.toLowerCase(), (e) => er(e) === t), tr = (t) => (e) => typeof e === t, { isArray: lt } = Array, at = tr("undefined");
|
|
45
87
|
function bt(t) {
|
|
46
|
-
return t !== null && !
|
|
88
|
+
return t !== null && !at(t) && t.constructor !== null && !at(t.constructor) && ye(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
47
89
|
}
|
|
48
|
-
const
|
|
49
|
-
function
|
|
90
|
+
const ba = Ce("ArrayBuffer");
|
|
91
|
+
function Ai(t) {
|
|
50
92
|
let e;
|
|
51
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer &&
|
|
93
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && ba(t.buffer), e;
|
|
52
94
|
}
|
|
53
|
-
const
|
|
95
|
+
const Ri = tr("string"), ye = tr("function"), xa = tr("number"), xt = (t) => t !== null && typeof t == "object", ji = (t) => t === !0 || t === !1, Pt = (t) => {
|
|
54
96
|
if (er(t) !== "object")
|
|
55
97
|
return !1;
|
|
56
|
-
const e =
|
|
57
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(
|
|
58
|
-
},
|
|
98
|
+
const e = Xr(t);
|
|
99
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(ya in t) && !(Qt in t);
|
|
100
|
+
}, Di = (t) => {
|
|
59
101
|
if (!xt(t) || bt(t))
|
|
60
102
|
return !1;
|
|
61
103
|
try {
|
|
@@ -63,16 +105,16 @@ const Oi = tr("string"), ye = tr("function"), va = tr("number"), xt = (t) => t !
|
|
|
63
105
|
} catch {
|
|
64
106
|
return !1;
|
|
65
107
|
}
|
|
66
|
-
},
|
|
108
|
+
}, Pi = Ce("Date"), Ii = Ce("File"), Ni = Ce("Blob"), Fi = Ce("FileList"), zi = (t) => xt(t) && ye(t.pipe), Li = (t) => {
|
|
67
109
|
let e;
|
|
68
110
|
return t && (typeof FormData == "function" && t instanceof FormData || ye(t.append) && ((e = er(t)) === "formdata" || // detect form-data instance
|
|
69
111
|
e === "object" && ye(t.toString) && t.toString() === "[object FormData]"));
|
|
70
|
-
},
|
|
112
|
+
}, qi = Ce("URLSearchParams"), [Mi, $i, Bi, Ui] = ["ReadableStream", "Request", "Response", "Headers"].map(Ce), Zi = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
71
113
|
function wt(t, e, { allOwnKeys: r = !1 } = {}) {
|
|
72
114
|
if (t === null || typeof t > "u")
|
|
73
115
|
return;
|
|
74
116
|
let n, a;
|
|
75
|
-
if (typeof t != "object" && (t = [t]),
|
|
117
|
+
if (typeof t != "object" && (t = [t]), lt(t))
|
|
76
118
|
for (n = 0, a = t.length; n < a; n++)
|
|
77
119
|
e.call(null, t[n], n, t);
|
|
78
120
|
else {
|
|
@@ -84,7 +126,7 @@ function wt(t, e, { allOwnKeys: r = !1 } = {}) {
|
|
|
84
126
|
s = i[n], e.call(null, t[s], s, t);
|
|
85
127
|
}
|
|
86
128
|
}
|
|
87
|
-
function
|
|
129
|
+
function wa(t, e) {
|
|
88
130
|
if (bt(t))
|
|
89
131
|
return null;
|
|
90
132
|
e = e.toLowerCase();
|
|
@@ -95,71 +137,71 @@ function ya(t, e) {
|
|
|
95
137
|
return a;
|
|
96
138
|
return null;
|
|
97
139
|
}
|
|
98
|
-
const Ue = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
99
|
-
function
|
|
100
|
-
const { caseless: t, skipUndefined: e } =
|
|
101
|
-
const o = t &&
|
|
102
|
-
Pt(r[o]) && Pt(a) ? r[o] =
|
|
140
|
+
const Ue = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, _a = (t) => !at(t) && t !== Ue;
|
|
141
|
+
function Pr() {
|
|
142
|
+
const { caseless: t, skipUndefined: e } = _a(this) && this || {}, r = {}, n = (a, i) => {
|
|
143
|
+
const o = t && wa(r, i) || i;
|
|
144
|
+
Pt(r[o]) && Pt(a) ? r[o] = Pr(r[o], a) : Pt(a) ? r[o] = Pr({}, a) : lt(a) ? r[o] = a.slice() : (!e || !at(a)) && (r[o] = a);
|
|
103
145
|
};
|
|
104
146
|
for (let a = 0, i = arguments.length; a < i; a++)
|
|
105
147
|
arguments[a] && wt(arguments[a], n);
|
|
106
148
|
return r;
|
|
107
149
|
}
|
|
108
|
-
const
|
|
109
|
-
r && ye(a) ? t[i] =
|
|
110
|
-
}, { allOwnKeys: n }), t),
|
|
150
|
+
const Vi = (t, e, r, { allOwnKeys: n } = {}) => (wt(e, (a, i) => {
|
|
151
|
+
r && ye(a) ? t[i] = va(a, r) : t[i] = a;
|
|
152
|
+
}, { allOwnKeys: n }), t), Hi = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Wi = (t, e, r, n) => {
|
|
111
153
|
t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
112
154
|
value: e.prototype
|
|
113
155
|
}), r && Object.assign(t.prototype, r);
|
|
114
|
-
},
|
|
156
|
+
}, Yi = (t, e, r, n) => {
|
|
115
157
|
let a, i, o;
|
|
116
158
|
const s = {};
|
|
117
159
|
if (e = e || {}, t == null) return e;
|
|
118
160
|
do {
|
|
119
161
|
for (a = Object.getOwnPropertyNames(t), i = a.length; i-- > 0; )
|
|
120
162
|
o = a[i], (!n || n(o, t, e)) && !s[o] && (e[o] = t[o], s[o] = !0);
|
|
121
|
-
t = r !== !1 &&
|
|
163
|
+
t = r !== !1 && Xr(t);
|
|
122
164
|
} while (t && (!r || r(t, e)) && t !== Object.prototype);
|
|
123
165
|
return e;
|
|
124
|
-
},
|
|
166
|
+
}, Ki = (t, e, r) => {
|
|
125
167
|
t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
|
|
126
168
|
const n = t.indexOf(e, r);
|
|
127
169
|
return n !== -1 && n === r;
|
|
128
|
-
},
|
|
170
|
+
}, Ji = (t) => {
|
|
129
171
|
if (!t) return null;
|
|
130
|
-
if (
|
|
172
|
+
if (lt(t)) return t;
|
|
131
173
|
let e = t.length;
|
|
132
|
-
if (!
|
|
174
|
+
if (!xa(e)) return null;
|
|
133
175
|
const r = new Array(e);
|
|
134
176
|
for (; e-- > 0; )
|
|
135
177
|
r[e] = t[e];
|
|
136
178
|
return r;
|
|
137
|
-
},
|
|
179
|
+
}, Gi = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Xr(Uint8Array)), Xi = (t, e) => {
|
|
138
180
|
const n = (t && t[Qt]).call(t);
|
|
139
181
|
let a;
|
|
140
182
|
for (; (a = n.next()) && !a.done; ) {
|
|
141
183
|
const i = a.value;
|
|
142
184
|
e.call(t, i[0], i[1]);
|
|
143
185
|
}
|
|
144
|
-
},
|
|
186
|
+
}, Qi = (t, e) => {
|
|
145
187
|
let r;
|
|
146
188
|
const n = [];
|
|
147
189
|
for (; (r = t.exec(e)) !== null; )
|
|
148
190
|
n.push(r);
|
|
149
191
|
return n;
|
|
150
|
-
},
|
|
192
|
+
}, eo = Ce("HTMLFormElement"), to = (t) => t.toLowerCase().replace(
|
|
151
193
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
152
194
|
function(r, n, a) {
|
|
153
195
|
return n.toUpperCase() + a;
|
|
154
196
|
}
|
|
155
|
-
),
|
|
197
|
+
), un = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), ro = Ce("RegExp"), ka = (t, e) => {
|
|
156
198
|
const r = Object.getOwnPropertyDescriptors(t), n = {};
|
|
157
199
|
wt(r, (a, i) => {
|
|
158
200
|
let o;
|
|
159
201
|
(o = e(a, i, t)) !== !1 && (n[i] = o || a);
|
|
160
202
|
}), Object.defineProperties(t, n);
|
|
161
|
-
},
|
|
162
|
-
|
|
203
|
+
}, no = (t) => {
|
|
204
|
+
ka(t, (e, r) => {
|
|
163
205
|
if (ye(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
164
206
|
return !1;
|
|
165
207
|
const n = t[r];
|
|
@@ -173,19 +215,19 @@ const Bi = (t, e, r, { allOwnKeys: n } = {}) => (wt(e, (a, i) => {
|
|
|
173
215
|
});
|
|
174
216
|
}
|
|
175
217
|
});
|
|
176
|
-
},
|
|
218
|
+
}, ao = (t, e) => {
|
|
177
219
|
const r = {}, n = (a) => {
|
|
178
220
|
a.forEach((i) => {
|
|
179
221
|
r[i] = !0;
|
|
180
222
|
});
|
|
181
223
|
};
|
|
182
|
-
return
|
|
183
|
-
},
|
|
184
|
-
},
|
|
185
|
-
function
|
|
186
|
-
return !!(t && ye(t.append) && t[
|
|
224
|
+
return lt(t) ? n(t) : n(String(t).split(e)), r;
|
|
225
|
+
}, io = () => {
|
|
226
|
+
}, oo = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
227
|
+
function so(t) {
|
|
228
|
+
return !!(t && ye(t.append) && t[ya] === "FormData" && t[Qt]);
|
|
187
229
|
}
|
|
188
|
-
const
|
|
230
|
+
const co = (t) => {
|
|
189
231
|
const e = new Array(10), r = (n, a) => {
|
|
190
232
|
if (xt(n)) {
|
|
191
233
|
if (e.indexOf(n) >= 0)
|
|
@@ -194,82 +236,82 @@ const io = (t) => {
|
|
|
194
236
|
return n;
|
|
195
237
|
if (!("toJSON" in n)) {
|
|
196
238
|
e[a] = n;
|
|
197
|
-
const i =
|
|
239
|
+
const i = lt(n) ? [] : {};
|
|
198
240
|
return wt(n, (o, s) => {
|
|
199
241
|
const d = r(o, a + 1);
|
|
200
|
-
!
|
|
242
|
+
!at(d) && (i[s] = d);
|
|
201
243
|
}), e[a] = void 0, i;
|
|
202
244
|
}
|
|
203
245
|
}
|
|
204
246
|
return n;
|
|
205
247
|
};
|
|
206
248
|
return r(t, 0);
|
|
207
|
-
},
|
|
249
|
+
}, lo = Ce("AsyncFunction"), po = (t) => t && (xt(t) || ye(t)) && ye(t.then) && ye(t.catch), Sa = ((t, e) => t ? setImmediate : e ? ((r, n) => (Ue.addEventListener("message", ({ source: a, data: i }) => {
|
|
208
250
|
a === Ue && i === r && n.length && n.shift()();
|
|
209
251
|
}, !1), (a) => {
|
|
210
252
|
n.push(a), Ue.postMessage(r, "*");
|
|
211
253
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
212
254
|
typeof setImmediate == "function",
|
|
213
255
|
ye(Ue.postMessage)
|
|
214
|
-
),
|
|
215
|
-
isArray:
|
|
216
|
-
isArrayBuffer:
|
|
256
|
+
), fo = typeof queueMicrotask < "u" ? queueMicrotask.bind(Ue) : typeof process < "u" && process.nextTick || Sa, uo = (t) => t != null && ye(t[Qt]), p = {
|
|
257
|
+
isArray: lt,
|
|
258
|
+
isArrayBuffer: ba,
|
|
217
259
|
isBuffer: bt,
|
|
218
|
-
isFormData:
|
|
219
|
-
isArrayBufferView:
|
|
220
|
-
isString:
|
|
221
|
-
isNumber:
|
|
222
|
-
isBoolean:
|
|
260
|
+
isFormData: Li,
|
|
261
|
+
isArrayBufferView: Ai,
|
|
262
|
+
isString: Ri,
|
|
263
|
+
isNumber: xa,
|
|
264
|
+
isBoolean: ji,
|
|
223
265
|
isObject: xt,
|
|
224
266
|
isPlainObject: Pt,
|
|
225
|
-
isEmptyObject:
|
|
226
|
-
isReadableStream:
|
|
227
|
-
isRequest:
|
|
228
|
-
isResponse:
|
|
229
|
-
isHeaders:
|
|
230
|
-
isUndefined:
|
|
231
|
-
isDate:
|
|
232
|
-
isFile:
|
|
233
|
-
isBlob:
|
|
234
|
-
isRegExp:
|
|
267
|
+
isEmptyObject: Di,
|
|
268
|
+
isReadableStream: Mi,
|
|
269
|
+
isRequest: $i,
|
|
270
|
+
isResponse: Bi,
|
|
271
|
+
isHeaders: Ui,
|
|
272
|
+
isUndefined: at,
|
|
273
|
+
isDate: Pi,
|
|
274
|
+
isFile: Ii,
|
|
275
|
+
isBlob: Ni,
|
|
276
|
+
isRegExp: ro,
|
|
235
277
|
isFunction: ye,
|
|
236
|
-
isStream:
|
|
237
|
-
isURLSearchParams:
|
|
238
|
-
isTypedArray:
|
|
239
|
-
isFileList:
|
|
278
|
+
isStream: zi,
|
|
279
|
+
isURLSearchParams: qi,
|
|
280
|
+
isTypedArray: Gi,
|
|
281
|
+
isFileList: Fi,
|
|
240
282
|
forEach: wt,
|
|
241
|
-
merge:
|
|
242
|
-
extend:
|
|
243
|
-
trim:
|
|
244
|
-
stripBOM:
|
|
245
|
-
inherits:
|
|
246
|
-
toFlatObject:
|
|
283
|
+
merge: Pr,
|
|
284
|
+
extend: Vi,
|
|
285
|
+
trim: Zi,
|
|
286
|
+
stripBOM: Hi,
|
|
287
|
+
inherits: Wi,
|
|
288
|
+
toFlatObject: Yi,
|
|
247
289
|
kindOf: er,
|
|
248
290
|
kindOfTest: Ce,
|
|
249
|
-
endsWith:
|
|
250
|
-
toArray:
|
|
251
|
-
forEachEntry:
|
|
252
|
-
matchAll:
|
|
253
|
-
isHTMLForm:
|
|
254
|
-
hasOwnProperty:
|
|
255
|
-
hasOwnProp:
|
|
291
|
+
endsWith: Ki,
|
|
292
|
+
toArray: Ji,
|
|
293
|
+
forEachEntry: Xi,
|
|
294
|
+
matchAll: Qi,
|
|
295
|
+
isHTMLForm: eo,
|
|
296
|
+
hasOwnProperty: un,
|
|
297
|
+
hasOwnProp: un,
|
|
256
298
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
257
|
-
reduceDescriptors:
|
|
258
|
-
freezeMethods:
|
|
259
|
-
toObjectSet:
|
|
260
|
-
toCamelCase:
|
|
261
|
-
noop:
|
|
262
|
-
toFiniteNumber:
|
|
263
|
-
findKey:
|
|
299
|
+
reduceDescriptors: ka,
|
|
300
|
+
freezeMethods: no,
|
|
301
|
+
toObjectSet: ao,
|
|
302
|
+
toCamelCase: to,
|
|
303
|
+
noop: io,
|
|
304
|
+
toFiniteNumber: oo,
|
|
305
|
+
findKey: wa,
|
|
264
306
|
global: Ue,
|
|
265
|
-
isContextDefined:
|
|
266
|
-
isSpecCompliantForm:
|
|
267
|
-
toJSONObject:
|
|
268
|
-
isAsyncFn:
|
|
269
|
-
isThenable:
|
|
270
|
-
setImmediate:
|
|
271
|
-
asap:
|
|
272
|
-
isIterable:
|
|
307
|
+
isContextDefined: _a,
|
|
308
|
+
isSpecCompliantForm: so,
|
|
309
|
+
toJSONObject: co,
|
|
310
|
+
isAsyncFn: lo,
|
|
311
|
+
isThenable: po,
|
|
312
|
+
setImmediate: Sa,
|
|
313
|
+
asap: fo,
|
|
314
|
+
isIterable: uo
|
|
273
315
|
};
|
|
274
316
|
function L(t, e, r, n, a) {
|
|
275
317
|
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);
|
|
@@ -295,7 +337,7 @@ p.inherits(L, Error, {
|
|
|
295
337
|
};
|
|
296
338
|
}
|
|
297
339
|
});
|
|
298
|
-
const
|
|
340
|
+
const Ea = L.prototype, Ta = {};
|
|
299
341
|
[
|
|
300
342
|
"ERR_BAD_OPTION_VALUE",
|
|
301
343
|
"ERR_BAD_OPTION",
|
|
@@ -311,34 +353,34 @@ const _a = L.prototype, ka = {};
|
|
|
311
353
|
"ERR_INVALID_URL"
|
|
312
354
|
// eslint-disable-next-line func-names
|
|
313
355
|
].forEach((t) => {
|
|
314
|
-
|
|
356
|
+
Ta[t] = { value: t };
|
|
315
357
|
});
|
|
316
|
-
Object.defineProperties(L,
|
|
317
|
-
Object.defineProperty(
|
|
358
|
+
Object.defineProperties(L, Ta);
|
|
359
|
+
Object.defineProperty(Ea, "isAxiosError", { value: !0 });
|
|
318
360
|
L.from = (t, e, r, n, a, i) => {
|
|
319
|
-
const o = Object.create(
|
|
361
|
+
const o = Object.create(Ea);
|
|
320
362
|
p.toFlatObject(t, o, function(l) {
|
|
321
363
|
return l !== Error.prototype;
|
|
322
364
|
}, (c) => c !== "isAxiosError");
|
|
323
365
|
const s = t && t.message ? t.message : "Error", d = e == null && t ? t.code : e;
|
|
324
366
|
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
367
|
};
|
|
326
|
-
const
|
|
327
|
-
function
|
|
368
|
+
const mo = null;
|
|
369
|
+
function Ir(t) {
|
|
328
370
|
return p.isPlainObject(t) || p.isArray(t);
|
|
329
371
|
}
|
|
330
|
-
function
|
|
372
|
+
function Oa(t) {
|
|
331
373
|
return p.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
332
374
|
}
|
|
333
|
-
function
|
|
375
|
+
function mn(t, e, r) {
|
|
334
376
|
return t ? t.concat(e).map(function(a, i) {
|
|
335
|
-
return a =
|
|
377
|
+
return a = Oa(a), !r && i ? "[" + a + "]" : a;
|
|
336
378
|
}).join(r ? "." : "") : e;
|
|
337
379
|
}
|
|
338
|
-
function
|
|
339
|
-
return p.isArray(t) && !t.some(
|
|
380
|
+
function ho(t) {
|
|
381
|
+
return p.isArray(t) && !t.some(Ir);
|
|
340
382
|
}
|
|
341
|
-
const
|
|
383
|
+
const go = p.toFlatObject(p, {}, null, function(e) {
|
|
342
384
|
return /^is[A-Z]/.test(e);
|
|
343
385
|
});
|
|
344
386
|
function rr(t, e, r) {
|
|
@@ -369,21 +411,21 @@ function rr(t, e, r) {
|
|
|
369
411
|
if (f && !h && typeof f == "object") {
|
|
370
412
|
if (p.endsWith(m, "{}"))
|
|
371
413
|
m = n ? m : m.slice(0, -2), f = JSON.stringify(f);
|
|
372
|
-
else if (p.isArray(f) &&
|
|
373
|
-
return m =
|
|
414
|
+
else if (p.isArray(f) && ho(f) || (p.isFileList(f) || p.endsWith(m, "[]")) && (A = p.toArray(f)))
|
|
415
|
+
return m = Oa(m), A.forEach(function(R, N) {
|
|
374
416
|
!(p.isUndefined(R) || R === null) && e.append(
|
|
375
417
|
// eslint-disable-next-line no-nested-ternary
|
|
376
|
-
o === !0 ?
|
|
418
|
+
o === !0 ? mn([m], N, i) : o === null ? m : m + "[]",
|
|
377
419
|
c(R)
|
|
378
420
|
);
|
|
379
421
|
}), !1;
|
|
380
422
|
}
|
|
381
|
-
return
|
|
423
|
+
return Ir(f) ? !0 : (e.append(mn(h, m, i), c(f)), !1);
|
|
382
424
|
}
|
|
383
|
-
const u = [], b = Object.assign(
|
|
425
|
+
const u = [], b = Object.assign(go, {
|
|
384
426
|
defaultVisitor: l,
|
|
385
427
|
convertValue: c,
|
|
386
|
-
isVisitable:
|
|
428
|
+
isVisitable: Ir
|
|
387
429
|
});
|
|
388
430
|
function x(f, m) {
|
|
389
431
|
if (!p.isUndefined(f)) {
|
|
@@ -404,7 +446,7 @@ function rr(t, e, r) {
|
|
|
404
446
|
throw new TypeError("data must be an object");
|
|
405
447
|
return x(t), e;
|
|
406
448
|
}
|
|
407
|
-
function
|
|
449
|
+
function hn(t) {
|
|
408
450
|
const e = {
|
|
409
451
|
"!": "%21",
|
|
410
452
|
"'": "%27",
|
|
@@ -418,40 +460,40 @@ function un(t) {
|
|
|
418
460
|
return e[n];
|
|
419
461
|
});
|
|
420
462
|
}
|
|
421
|
-
function
|
|
463
|
+
function Qr(t, e) {
|
|
422
464
|
this._pairs = [], t && rr(t, this, e);
|
|
423
465
|
}
|
|
424
|
-
const
|
|
425
|
-
|
|
466
|
+
const Ca = Qr.prototype;
|
|
467
|
+
Ca.append = function(e, r) {
|
|
426
468
|
this._pairs.push([e, r]);
|
|
427
469
|
};
|
|
428
|
-
|
|
470
|
+
Ca.toString = function(e) {
|
|
429
471
|
const r = e ? function(n) {
|
|
430
|
-
return e.call(this, n,
|
|
431
|
-
} :
|
|
472
|
+
return e.call(this, n, hn);
|
|
473
|
+
} : hn;
|
|
432
474
|
return this._pairs.map(function(a) {
|
|
433
475
|
return r(a[0]) + "=" + r(a[1]);
|
|
434
476
|
}, "").join("&");
|
|
435
477
|
};
|
|
436
|
-
function
|
|
478
|
+
function vo(t) {
|
|
437
479
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
438
480
|
}
|
|
439
|
-
function
|
|
481
|
+
function Aa(t, e, r) {
|
|
440
482
|
if (!e)
|
|
441
483
|
return t;
|
|
442
|
-
const n = r && r.encode ||
|
|
484
|
+
const n = r && r.encode || vo;
|
|
443
485
|
p.isFunction(r) && (r = {
|
|
444
486
|
serialize: r
|
|
445
487
|
});
|
|
446
488
|
const a = r && r.serialize;
|
|
447
489
|
let i;
|
|
448
|
-
if (a ? i = a(e, r) : i = p.isURLSearchParams(e) ? e.toString() : new
|
|
490
|
+
if (a ? i = a(e, r) : i = p.isURLSearchParams(e) ? e.toString() : new Qr(e, r).toString(n), i) {
|
|
449
491
|
const o = t.indexOf("#");
|
|
450
492
|
o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + i;
|
|
451
493
|
}
|
|
452
494
|
return t;
|
|
453
495
|
}
|
|
454
|
-
class
|
|
496
|
+
class gn {
|
|
455
497
|
constructor() {
|
|
456
498
|
this.handlers = [];
|
|
457
499
|
}
|
|
@@ -505,31 +547,31 @@ class mn {
|
|
|
505
547
|
});
|
|
506
548
|
}
|
|
507
549
|
}
|
|
508
|
-
const
|
|
550
|
+
const Ra = {
|
|
509
551
|
silentJSONParsing: !0,
|
|
510
552
|
forcedJSONParsing: !0,
|
|
511
553
|
clarifyTimeoutError: !1
|
|
512
|
-
},
|
|
554
|
+
}, yo = typeof URLSearchParams < "u" ? URLSearchParams : Qr, bo = typeof FormData < "u" ? FormData : null, xo = typeof Blob < "u" ? Blob : null, wo = {
|
|
513
555
|
isBrowser: !0,
|
|
514
556
|
classes: {
|
|
515
|
-
URLSearchParams:
|
|
516
|
-
FormData:
|
|
517
|
-
Blob:
|
|
557
|
+
URLSearchParams: yo,
|
|
558
|
+
FormData: bo,
|
|
559
|
+
Blob: xo
|
|
518
560
|
},
|
|
519
561
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
520
|
-
},
|
|
521
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
562
|
+
}, en = typeof window < "u" && typeof document < "u", Nr = typeof navigator == "object" && navigator || void 0, _o = en && (!Nr || ["ReactNative", "NativeScript", "NS"].indexOf(Nr.product) < 0), ko = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
563
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", So = en && window.location.href || "http://localhost", Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
522
564
|
__proto__: null,
|
|
523
|
-
hasBrowserEnv:
|
|
524
|
-
hasStandardBrowserEnv:
|
|
525
|
-
hasStandardBrowserWebWorkerEnv:
|
|
526
|
-
navigator:
|
|
527
|
-
origin:
|
|
565
|
+
hasBrowserEnv: en,
|
|
566
|
+
hasStandardBrowserEnv: _o,
|
|
567
|
+
hasStandardBrowserWebWorkerEnv: ko,
|
|
568
|
+
navigator: Nr,
|
|
569
|
+
origin: So
|
|
528
570
|
}, Symbol.toStringTag, { value: "Module" })), ue = {
|
|
529
|
-
...
|
|
530
|
-
...
|
|
571
|
+
...Eo,
|
|
572
|
+
...wo
|
|
531
573
|
};
|
|
532
|
-
function
|
|
574
|
+
function To(t, e) {
|
|
533
575
|
return rr(t, new ue.classes.URLSearchParams(), {
|
|
534
576
|
visitor: function(r, n, a, i) {
|
|
535
577
|
return ue.isNode && p.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
@@ -537,10 +579,10 @@ function ko(t, e) {
|
|
|
537
579
|
...e
|
|
538
580
|
});
|
|
539
581
|
}
|
|
540
|
-
function
|
|
582
|
+
function Oo(t) {
|
|
541
583
|
return p.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
542
584
|
}
|
|
543
|
-
function
|
|
585
|
+
function Co(t) {
|
|
544
586
|
const e = {}, r = Object.keys(t);
|
|
545
587
|
let n;
|
|
546
588
|
const a = r.length;
|
|
@@ -549,22 +591,22 @@ function So(t) {
|
|
|
549
591
|
i = r[n], e[i] = t[i];
|
|
550
592
|
return e;
|
|
551
593
|
}
|
|
552
|
-
function
|
|
594
|
+
function ja(t) {
|
|
553
595
|
function e(r, n, a, i) {
|
|
554
596
|
let o = r[i++];
|
|
555
597
|
if (o === "__proto__") return !0;
|
|
556
598
|
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] =
|
|
599
|
+
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] = Co(a[o])), !s);
|
|
558
600
|
}
|
|
559
601
|
if (p.isFormData(t) && p.isFunction(t.entries)) {
|
|
560
602
|
const r = {};
|
|
561
603
|
return p.forEachEntry(t, (n, a) => {
|
|
562
|
-
e(
|
|
604
|
+
e(Oo(n), a, r, 0);
|
|
563
605
|
}), r;
|
|
564
606
|
}
|
|
565
607
|
return null;
|
|
566
608
|
}
|
|
567
|
-
function
|
|
609
|
+
function Ao(t, e, r) {
|
|
568
610
|
if (p.isString(t))
|
|
569
611
|
try {
|
|
570
612
|
return (e || JSON.parse)(t), p.trim(t);
|
|
@@ -575,12 +617,12 @@ function To(t, e, r) {
|
|
|
575
617
|
return (r || JSON.stringify)(t);
|
|
576
618
|
}
|
|
577
619
|
const _t = {
|
|
578
|
-
transitional:
|
|
620
|
+
transitional: Ra,
|
|
579
621
|
adapter: ["xhr", "http", "fetch"],
|
|
580
622
|
transformRequest: [function(e, r) {
|
|
581
623
|
const n = r.getContentType() || "", a = n.indexOf("application/json") > -1, i = p.isObject(e);
|
|
582
624
|
if (i && p.isHTMLForm(e) && (e = new FormData(e)), p.isFormData(e))
|
|
583
|
-
return a ? JSON.stringify(
|
|
625
|
+
return a ? JSON.stringify(ja(e)) : e;
|
|
584
626
|
if (p.isArrayBuffer(e) || p.isBuffer(e) || p.isStream(e) || p.isFile(e) || p.isBlob(e) || p.isReadableStream(e))
|
|
585
627
|
return e;
|
|
586
628
|
if (p.isArrayBufferView(e))
|
|
@@ -590,7 +632,7 @@ const _t = {
|
|
|
590
632
|
let s;
|
|
591
633
|
if (i) {
|
|
592
634
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
593
|
-
return
|
|
635
|
+
return To(e, this.formSerializer).toString();
|
|
594
636
|
if ((s = p.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
595
637
|
const d = this.env && this.env.FormData;
|
|
596
638
|
return rr(
|
|
@@ -600,7 +642,7 @@ const _t = {
|
|
|
600
642
|
);
|
|
601
643
|
}
|
|
602
644
|
}
|
|
603
|
-
return i || a ? (r.setContentType("application/json", !1),
|
|
645
|
+
return i || a ? (r.setContentType("application/json", !1), Ao(e)) : e;
|
|
604
646
|
}],
|
|
605
647
|
transformResponse: [function(e) {
|
|
606
648
|
const r = this.transitional || _t.transitional, n = r && r.forcedJSONParsing, a = this.responseType === "json";
|
|
@@ -643,7 +685,7 @@ const _t = {
|
|
|
643
685
|
p.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
644
686
|
_t.headers[t] = {};
|
|
645
687
|
});
|
|
646
|
-
const
|
|
688
|
+
const Ro = p.toObjectSet([
|
|
647
689
|
"age",
|
|
648
690
|
"authorization",
|
|
649
691
|
"content-length",
|
|
@@ -661,29 +703,29 @@ const Oo = p.toObjectSet([
|
|
|
661
703
|
"referer",
|
|
662
704
|
"retry-after",
|
|
663
705
|
"user-agent"
|
|
664
|
-
]),
|
|
706
|
+
]), jo = (t) => {
|
|
665
707
|
const e = {};
|
|
666
708
|
let r, n, a;
|
|
667
709
|
return t && t.split(`
|
|
668
710
|
`).forEach(function(o) {
|
|
669
|
-
a = o.indexOf(":"), r = o.substring(0, a).trim().toLowerCase(), n = o.substring(a + 1).trim(), !(!r || e[r] &&
|
|
711
|
+
a = o.indexOf(":"), r = o.substring(0, a).trim().toLowerCase(), n = o.substring(a + 1).trim(), !(!r || e[r] && Ro[r]) && (r === "set-cookie" ? e[r] ? e[r].push(n) : e[r] = [n] : e[r] = e[r] ? e[r] + ", " + n : n);
|
|
670
712
|
}), e;
|
|
671
|
-
},
|
|
672
|
-
function
|
|
713
|
+
}, vn = Symbol("internals");
|
|
714
|
+
function ut(t) {
|
|
673
715
|
return t && String(t).trim().toLowerCase();
|
|
674
716
|
}
|
|
675
717
|
function It(t) {
|
|
676
718
|
return t === !1 || t == null ? t : p.isArray(t) ? t.map(It) : String(t);
|
|
677
719
|
}
|
|
678
|
-
function
|
|
720
|
+
function Do(t) {
|
|
679
721
|
const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
680
722
|
let n;
|
|
681
723
|
for (; n = r.exec(t); )
|
|
682
724
|
e[n[1]] = n[2];
|
|
683
725
|
return e;
|
|
684
726
|
}
|
|
685
|
-
const
|
|
686
|
-
function
|
|
727
|
+
const Po = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
728
|
+
function hr(t, e, r, n, a) {
|
|
687
729
|
if (p.isFunction(n))
|
|
688
730
|
return n.call(this, e, r);
|
|
689
731
|
if (a && (e = r), !!p.isString(e)) {
|
|
@@ -693,10 +735,10 @@ function mr(t, e, r, n, a) {
|
|
|
693
735
|
return n.test(e);
|
|
694
736
|
}
|
|
695
737
|
}
|
|
696
|
-
function
|
|
738
|
+
function Io(t) {
|
|
697
739
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, n) => r.toUpperCase() + n);
|
|
698
740
|
}
|
|
699
|
-
function
|
|
741
|
+
function No(t, e) {
|
|
700
742
|
const r = p.toCamelCase(" " + e);
|
|
701
743
|
["get", "set", "has"].forEach((n) => {
|
|
702
744
|
Object.defineProperty(t, n + r, {
|
|
@@ -714,7 +756,7 @@ let be = class {
|
|
|
714
756
|
set(e, r, n) {
|
|
715
757
|
const a = this;
|
|
716
758
|
function i(s, d, c) {
|
|
717
|
-
const l =
|
|
759
|
+
const l = ut(d);
|
|
718
760
|
if (!l)
|
|
719
761
|
throw new Error("header name must be a non-empty string");
|
|
720
762
|
const u = p.findKey(a, l);
|
|
@@ -723,8 +765,8 @@ let be = class {
|
|
|
723
765
|
const o = (s, d) => p.forEach(s, (c, l) => i(c, l, d));
|
|
724
766
|
if (p.isPlainObject(e) || e instanceof this.constructor)
|
|
725
767
|
o(e, r);
|
|
726
|
-
else if (p.isString(e) && (e = e.trim()) && !
|
|
727
|
-
o(
|
|
768
|
+
else if (p.isString(e) && (e = e.trim()) && !Po(e))
|
|
769
|
+
o(jo(e), r);
|
|
728
770
|
else if (p.isObject(e) && p.isIterable(e)) {
|
|
729
771
|
let s = {}, d, c;
|
|
730
772
|
for (const l of e) {
|
|
@@ -738,14 +780,14 @@ let be = class {
|
|
|
738
780
|
return this;
|
|
739
781
|
}
|
|
740
782
|
get(e, r) {
|
|
741
|
-
if (e =
|
|
783
|
+
if (e = ut(e), e) {
|
|
742
784
|
const n = p.findKey(this, e);
|
|
743
785
|
if (n) {
|
|
744
786
|
const a = this[n];
|
|
745
787
|
if (!r)
|
|
746
788
|
return a;
|
|
747
789
|
if (r === !0)
|
|
748
|
-
return
|
|
790
|
+
return Do(a);
|
|
749
791
|
if (p.isFunction(r))
|
|
750
792
|
return r.call(this, a, n);
|
|
751
793
|
if (p.isRegExp(r))
|
|
@@ -755,9 +797,9 @@ let be = class {
|
|
|
755
797
|
}
|
|
756
798
|
}
|
|
757
799
|
has(e, r) {
|
|
758
|
-
if (e =
|
|
800
|
+
if (e = ut(e), e) {
|
|
759
801
|
const n = p.findKey(this, e);
|
|
760
|
-
return !!(n && this[n] !== void 0 && (!r ||
|
|
802
|
+
return !!(n && this[n] !== void 0 && (!r || hr(this, this[n], n, r)));
|
|
761
803
|
}
|
|
762
804
|
return !1;
|
|
763
805
|
}
|
|
@@ -765,9 +807,9 @@ let be = class {
|
|
|
765
807
|
const n = this;
|
|
766
808
|
let a = !1;
|
|
767
809
|
function i(o) {
|
|
768
|
-
if (o =
|
|
810
|
+
if (o = ut(o), o) {
|
|
769
811
|
const s = p.findKey(n, o);
|
|
770
|
-
s && (!r ||
|
|
812
|
+
s && (!r || hr(n, n[s], s, r)) && (delete n[s], a = !0);
|
|
771
813
|
}
|
|
772
814
|
}
|
|
773
815
|
return p.isArray(e) ? e.forEach(i) : i(e), a;
|
|
@@ -777,7 +819,7 @@ let be = class {
|
|
|
777
819
|
let n = r.length, a = !1;
|
|
778
820
|
for (; n--; ) {
|
|
779
821
|
const i = r[n];
|
|
780
|
-
(!e ||
|
|
822
|
+
(!e || hr(this, this[i], i, e, !0)) && (delete this[i], a = !0);
|
|
781
823
|
}
|
|
782
824
|
return a;
|
|
783
825
|
}
|
|
@@ -789,7 +831,7 @@ let be = class {
|
|
|
789
831
|
r[o] = It(a), delete r[i];
|
|
790
832
|
return;
|
|
791
833
|
}
|
|
792
|
-
const s = e ?
|
|
834
|
+
const s = e ? Io(i) : String(i).trim();
|
|
793
835
|
s !== i && delete r[i], r[s] = It(a), n[s] = !0;
|
|
794
836
|
}), this;
|
|
795
837
|
}
|
|
@@ -823,12 +865,12 @@ let be = class {
|
|
|
823
865
|
return r.forEach((a) => n.set(a)), n;
|
|
824
866
|
}
|
|
825
867
|
static accessor(e) {
|
|
826
|
-
const n = (this[
|
|
868
|
+
const n = (this[vn] = this[vn] = {
|
|
827
869
|
accessors: {}
|
|
828
870
|
}).accessors, a = this.prototype;
|
|
829
871
|
function i(o) {
|
|
830
|
-
const s =
|
|
831
|
-
n[s] || (
|
|
872
|
+
const s = ut(o);
|
|
873
|
+
n[s] || (No(a, o), n[s] = !0);
|
|
832
874
|
}
|
|
833
875
|
return p.isArray(e) ? e.forEach(i) : i(e), this;
|
|
834
876
|
}
|
|
@@ -844,23 +886,23 @@ p.reduceDescriptors(be.prototype, ({ value: t }, e) => {
|
|
|
844
886
|
};
|
|
845
887
|
});
|
|
846
888
|
p.freezeMethods(be);
|
|
847
|
-
function
|
|
889
|
+
function gr(t, e) {
|
|
848
890
|
const r = this || _t, n = e || r, a = be.from(n.headers);
|
|
849
891
|
let i = n.data;
|
|
850
892
|
return p.forEach(t, function(s) {
|
|
851
893
|
i = s.call(r, i, a.normalize(), e ? e.status : void 0);
|
|
852
894
|
}), a.normalize(), i;
|
|
853
895
|
}
|
|
854
|
-
function
|
|
896
|
+
function Da(t) {
|
|
855
897
|
return !!(t && t.__CANCEL__);
|
|
856
898
|
}
|
|
857
|
-
function
|
|
899
|
+
function dt(t, e, r) {
|
|
858
900
|
L.call(this, t ?? "canceled", L.ERR_CANCELED, e, r), this.name = "CanceledError";
|
|
859
901
|
}
|
|
860
|
-
p.inherits(
|
|
902
|
+
p.inherits(dt, L, {
|
|
861
903
|
__CANCEL__: !0
|
|
862
904
|
});
|
|
863
|
-
function
|
|
905
|
+
function Pa(t, e, r) {
|
|
864
906
|
const n = r.config.validateStatus;
|
|
865
907
|
!r.status || !n || n(r.status) ? t(r) : e(new L(
|
|
866
908
|
"Request failed with status code " + r.status,
|
|
@@ -870,11 +912,11 @@ function Ra(t, e, r) {
|
|
|
870
912
|
r
|
|
871
913
|
));
|
|
872
914
|
}
|
|
873
|
-
function
|
|
915
|
+
function Fo(t) {
|
|
874
916
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
875
917
|
return e && e[1] || "";
|
|
876
918
|
}
|
|
877
|
-
function
|
|
919
|
+
function zo(t, e) {
|
|
878
920
|
t = t || 10;
|
|
879
921
|
const r = new Array(t), n = new Array(t);
|
|
880
922
|
let a = 0, i = 0, o;
|
|
@@ -890,7 +932,7 @@ function Io(t, e) {
|
|
|
890
932
|
return x ? Math.round(b * 1e3 / x) : void 0;
|
|
891
933
|
};
|
|
892
934
|
}
|
|
893
|
-
function
|
|
935
|
+
function Lo(t, e) {
|
|
894
936
|
let r = 0, n = 1e3 / e, a, i;
|
|
895
937
|
const o = (c, l = Date.now()) => {
|
|
896
938
|
r = l, a = null, i && (clearTimeout(i), i = null), t(...c);
|
|
@@ -904,8 +946,8 @@ function No(t, e) {
|
|
|
904
946
|
}
|
|
905
947
|
const Ft = (t, e, r = 3) => {
|
|
906
948
|
let n = 0;
|
|
907
|
-
const a =
|
|
908
|
-
return
|
|
949
|
+
const a = zo(50, 250);
|
|
950
|
+
return Lo((i) => {
|
|
909
951
|
const o = i.loaded, s = i.lengthComputable ? i.total : void 0, d = o - n, c = a(d), l = o <= s;
|
|
910
952
|
n = o;
|
|
911
953
|
const u = {
|
|
@@ -921,17 +963,17 @@ const Ft = (t, e, r = 3) => {
|
|
|
921
963
|
};
|
|
922
964
|
t(u);
|
|
923
965
|
}, r);
|
|
924
|
-
},
|
|
966
|
+
}, yn = (t, e) => {
|
|
925
967
|
const r = t != null;
|
|
926
968
|
return [(n) => e[0]({
|
|
927
969
|
lengthComputable: r,
|
|
928
970
|
total: t,
|
|
929
971
|
loaded: n
|
|
930
972
|
}), e[1]];
|
|
931
|
-
},
|
|
973
|
+
}, bn = (t) => (...e) => p.asap(() => t(...e)), qo = 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
974
|
new URL(ue.origin),
|
|
933
975
|
ue.navigator && /(msie|trident)/i.test(ue.navigator.userAgent)
|
|
934
|
-
) : () => !0,
|
|
976
|
+
) : () => !0, Mo = ue.hasStandardBrowserEnv ? (
|
|
935
977
|
// Standard browser envs support document.cookie
|
|
936
978
|
{
|
|
937
979
|
write(t, e, r, n, a, i, o) {
|
|
@@ -960,17 +1002,17 @@ const Ft = (t, e, r = 3) => {
|
|
|
960
1002
|
}
|
|
961
1003
|
}
|
|
962
1004
|
);
|
|
963
|
-
function
|
|
1005
|
+
function $o(t) {
|
|
964
1006
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
965
1007
|
}
|
|
966
|
-
function
|
|
1008
|
+
function Bo(t, e) {
|
|
967
1009
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
968
1010
|
}
|
|
969
|
-
function
|
|
970
|
-
let n =
|
|
971
|
-
return t && (n || r == !1) ?
|
|
1011
|
+
function Ia(t, e, r) {
|
|
1012
|
+
let n = !$o(e);
|
|
1013
|
+
return t && (n || r == !1) ? Bo(t, e) : e;
|
|
972
1014
|
}
|
|
973
|
-
const
|
|
1015
|
+
const xn = (t) => t instanceof be ? { ...t } : t;
|
|
974
1016
|
function Ve(t, e) {
|
|
975
1017
|
e = e || {};
|
|
976
1018
|
const r = {};
|
|
@@ -1028,17 +1070,17 @@ function Ve(t, e) {
|
|
|
1028
1070
|
socketPath: o,
|
|
1029
1071
|
responseEncoding: o,
|
|
1030
1072
|
validateStatus: s,
|
|
1031
|
-
headers: (c, l, u) => a(
|
|
1073
|
+
headers: (c, l, u) => a(xn(c), xn(l), u, !0)
|
|
1032
1074
|
};
|
|
1033
1075
|
return p.forEach(Object.keys({ ...t, ...e }), function(l) {
|
|
1034
1076
|
const u = d[l] || a, b = u(t[l], e[l], l);
|
|
1035
1077
|
p.isUndefined(b) && u !== s || (r[l] = b);
|
|
1036
1078
|
}), r;
|
|
1037
1079
|
}
|
|
1038
|
-
const
|
|
1080
|
+
const Na = (t) => {
|
|
1039
1081
|
const e = Ve({}, t);
|
|
1040
1082
|
let { data: r, withXSRFToken: n, xsrfHeaderName: a, xsrfCookieName: i, headers: o, auth: s } = e;
|
|
1041
|
-
if (e.headers = o = be.from(o), e.url =
|
|
1083
|
+
if (e.headers = o = be.from(o), e.url = Aa(Ia(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), s && o.set(
|
|
1042
1084
|
"Authorization",
|
|
1043
1085
|
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
|
|
1044
1086
|
), p.isFormData(r)) {
|
|
@@ -1051,14 +1093,14 @@ const Da = (t) => {
|
|
|
1051
1093
|
});
|
|
1052
1094
|
}
|
|
1053
1095
|
}
|
|
1054
|
-
if (ue.hasStandardBrowserEnv && (n && p.isFunction(n) && (n = n(e)), n || n !== !1 &&
|
|
1055
|
-
const d = a && i &&
|
|
1096
|
+
if (ue.hasStandardBrowserEnv && (n && p.isFunction(n) && (n = n(e)), n || n !== !1 && qo(e.url))) {
|
|
1097
|
+
const d = a && i && Mo.read(i);
|
|
1056
1098
|
d && o.set(a, d);
|
|
1057
1099
|
}
|
|
1058
1100
|
return e;
|
|
1059
|
-
},
|
|
1101
|
+
}, Uo = typeof XMLHttpRequest < "u", Zo = Uo && function(t) {
|
|
1060
1102
|
return new Promise(function(r, n) {
|
|
1061
|
-
const a =
|
|
1103
|
+
const a = Na(t);
|
|
1062
1104
|
let i = a.data;
|
|
1063
1105
|
const o = be.from(a.headers).normalize();
|
|
1064
1106
|
let { responseType: s, onUploadProgress: d, onDownloadProgress: c } = a, l, u, b, x, f;
|
|
@@ -1080,7 +1122,7 @@ const Da = (t) => {
|
|
|
1080
1122
|
config: t,
|
|
1081
1123
|
request: h
|
|
1082
1124
|
};
|
|
1083
|
-
|
|
1125
|
+
Pa(function(B) {
|
|
1084
1126
|
r(B), m();
|
|
1085
1127
|
}, function(B) {
|
|
1086
1128
|
n(B), m();
|
|
@@ -1095,7 +1137,7 @@ const Da = (t) => {
|
|
|
1095
1137
|
$.event = N || null, n($), h = null;
|
|
1096
1138
|
}, h.ontimeout = function() {
|
|
1097
1139
|
let N = a.timeout ? "timeout of " + a.timeout + "ms exceeded" : "timeout exceeded";
|
|
1098
|
-
const y = a.transitional ||
|
|
1140
|
+
const y = a.transitional || Ra;
|
|
1099
1141
|
a.timeoutErrorMessage && (N = a.timeoutErrorMessage), n(new L(
|
|
1100
1142
|
N,
|
|
1101
1143
|
y.clarifyTimeoutError ? L.ETIMEDOUT : L.ECONNABORTED,
|
|
@@ -1105,16 +1147,16 @@ const Da = (t) => {
|
|
|
1105
1147
|
}, i === void 0 && o.setContentType(null), "setRequestHeader" in h && p.forEach(o.toJSON(), function(N, y) {
|
|
1106
1148
|
h.setRequestHeader(y, N);
|
|
1107
1149
|
}), 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) => {
|
|
1108
|
-
h && (n(!R || R.type ? new
|
|
1150
|
+
h && (n(!R || R.type ? new dt(null, t, h) : R), h.abort(), h = null);
|
|
1109
1151
|
}, a.cancelToken && a.cancelToken.subscribe(l), a.signal && (a.signal.aborted ? l() : a.signal.addEventListener("abort", l)));
|
|
1110
|
-
const K =
|
|
1152
|
+
const K = Fo(a.url);
|
|
1111
1153
|
if (K && ue.protocols.indexOf(K) === -1) {
|
|
1112
1154
|
n(new L("Unsupported protocol " + K + ":", L.ERR_BAD_REQUEST, t));
|
|
1113
1155
|
return;
|
|
1114
1156
|
}
|
|
1115
1157
|
h.send(i || null);
|
|
1116
1158
|
});
|
|
1117
|
-
},
|
|
1159
|
+
}, Vo = (t, e) => {
|
|
1118
1160
|
const { length: r } = t = t ? t.filter(Boolean) : [];
|
|
1119
1161
|
if (e || r) {
|
|
1120
1162
|
let n = new AbortController(), a;
|
|
@@ -1122,7 +1164,7 @@ const Da = (t) => {
|
|
|
1122
1164
|
if (!a) {
|
|
1123
1165
|
a = !0, s();
|
|
1124
1166
|
const l = c instanceof Error ? c : this.reason;
|
|
1125
|
-
n.abort(l instanceof L ? l : new
|
|
1167
|
+
n.abort(l instanceof L ? l : new dt(l instanceof Error ? l.message : l));
|
|
1126
1168
|
}
|
|
1127
1169
|
};
|
|
1128
1170
|
let o = e && setTimeout(() => {
|
|
@@ -1137,7 +1179,7 @@ const Da = (t) => {
|
|
|
1137
1179
|
const { signal: d } = n;
|
|
1138
1180
|
return d.unsubscribe = () => p.asap(s), d;
|
|
1139
1181
|
}
|
|
1140
|
-
},
|
|
1182
|
+
}, Ho = function* (t, e) {
|
|
1141
1183
|
let r = t.byteLength;
|
|
1142
1184
|
if (r < e) {
|
|
1143
1185
|
yield t;
|
|
@@ -1146,10 +1188,10 @@ const Da = (t) => {
|
|
|
1146
1188
|
let n = 0, a;
|
|
1147
1189
|
for (; n < r; )
|
|
1148
1190
|
a = n + e, yield t.slice(n, a), n = a;
|
|
1149
|
-
},
|
|
1150
|
-
for await (const r of
|
|
1151
|
-
yield*
|
|
1152
|
-
},
|
|
1191
|
+
}, Wo = async function* (t, e) {
|
|
1192
|
+
for await (const r of Yo(t))
|
|
1193
|
+
yield* Ho(r, e);
|
|
1194
|
+
}, Yo = async function* (t) {
|
|
1153
1195
|
if (t[Symbol.asyncIterator]) {
|
|
1154
1196
|
yield* t;
|
|
1155
1197
|
return;
|
|
@@ -1165,8 +1207,8 @@ const Da = (t) => {
|
|
|
1165
1207
|
} finally {
|
|
1166
1208
|
await e.cancel();
|
|
1167
1209
|
}
|
|
1168
|
-
},
|
|
1169
|
-
const a =
|
|
1210
|
+
}, wn = (t, e, r, n) => {
|
|
1211
|
+
const a = Wo(t, e);
|
|
1170
1212
|
let i = 0, o, s = (d) => {
|
|
1171
1213
|
o || (o = !0, n && n(d));
|
|
1172
1214
|
};
|
|
@@ -1194,36 +1236,36 @@ const Da = (t) => {
|
|
|
1194
1236
|
}, {
|
|
1195
1237
|
highWaterMark: 2
|
|
1196
1238
|
});
|
|
1197
|
-
},
|
|
1239
|
+
}, _n = 64 * 1024, { isFunction: At } = p, Ko = (({ Request: t, Response: e }) => ({
|
|
1198
1240
|
Request: t,
|
|
1199
1241
|
Response: e
|
|
1200
1242
|
}))(p.global), {
|
|
1201
|
-
ReadableStream:
|
|
1202
|
-
TextEncoder:
|
|
1203
|
-
} = p.global,
|
|
1243
|
+
ReadableStream: kn,
|
|
1244
|
+
TextEncoder: Sn
|
|
1245
|
+
} = p.global, En = (t, ...e) => {
|
|
1204
1246
|
try {
|
|
1205
1247
|
return !!t(...e);
|
|
1206
1248
|
} catch {
|
|
1207
1249
|
return !1;
|
|
1208
1250
|
}
|
|
1209
|
-
},
|
|
1251
|
+
}, Jo = (t) => {
|
|
1210
1252
|
t = p.merge.call({
|
|
1211
1253
|
skipUndefined: !0
|
|
1212
|
-
},
|
|
1254
|
+
}, Ko, t);
|
|
1213
1255
|
const { fetch: e, Request: r, Response: n } = t, a = e ? At(e) : typeof fetch == "function", i = At(r), o = At(n);
|
|
1214
1256
|
if (!a)
|
|
1215
1257
|
return !1;
|
|
1216
|
-
const s = a && At(
|
|
1258
|
+
const s = a && At(kn), d = a && (typeof Sn == "function" ? /* @__PURE__ */ ((f) => (m) => f.encode(m))(new Sn()) : async (f) => new Uint8Array(await new r(f).arrayBuffer())), c = i && s && En(() => {
|
|
1217
1259
|
let f = !1;
|
|
1218
1260
|
const m = new r(ue.origin, {
|
|
1219
|
-
body: new
|
|
1261
|
+
body: new kn(),
|
|
1220
1262
|
method: "POST",
|
|
1221
1263
|
get duplex() {
|
|
1222
1264
|
return f = !0, "half";
|
|
1223
1265
|
}
|
|
1224
1266
|
}).headers.has("Content-Type");
|
|
1225
1267
|
return f && !m;
|
|
1226
|
-
}), l = o && s &&
|
|
1268
|
+
}), l = o && s && En(() => p.isReadableStream(new n("").body)), u = {
|
|
1227
1269
|
stream: l && ((f) => f.body)
|
|
1228
1270
|
};
|
|
1229
1271
|
a && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((f) => {
|
|
@@ -1265,10 +1307,10 @@ const Da = (t) => {
|
|
|
1265
1307
|
responseType: B,
|
|
1266
1308
|
headers: pe,
|
|
1267
1309
|
withCredentials: ge = "same-origin",
|
|
1268
|
-
fetchOptions:
|
|
1269
|
-
} =
|
|
1310
|
+
fetchOptions: Se
|
|
1311
|
+
} = Na(f), Ae = e || fetch;
|
|
1270
1312
|
B = B ? (B + "").toLowerCase() : "text";
|
|
1271
|
-
let Ee =
|
|
1313
|
+
let Ee = Vo([K, R && R.toAbortSignal()], N), ve = null;
|
|
1272
1314
|
const G = Ee && Ee.unsubscribe && (() => {
|
|
1273
1315
|
Ee.unsubscribe();
|
|
1274
1316
|
});
|
|
@@ -1281,16 +1323,16 @@ const Da = (t) => {
|
|
|
1281
1323
|
duplex: "half"
|
|
1282
1324
|
}), D;
|
|
1283
1325
|
if (p.isFormData(A) && (D = _.headers.get("content-type")) && pe.setContentType(D), _.body) {
|
|
1284
|
-
const [z, C] =
|
|
1326
|
+
const [z, C] = yn(
|
|
1285
1327
|
ce,
|
|
1286
|
-
Ft(
|
|
1328
|
+
Ft(bn($))
|
|
1287
1329
|
);
|
|
1288
|
-
A =
|
|
1330
|
+
A = wn(_.body, _n, z, C);
|
|
1289
1331
|
}
|
|
1290
1332
|
}
|
|
1291
1333
|
p.isString(ge) || (ge = ge ? "include" : "omit");
|
|
1292
1334
|
const re = i && "credentials" in r.prototype, xe = {
|
|
1293
|
-
...
|
|
1335
|
+
...Se,
|
|
1294
1336
|
signal: Ee,
|
|
1295
1337
|
method: h.toUpperCase(),
|
|
1296
1338
|
headers: pe.normalize().toJSON(),
|
|
@@ -1299,19 +1341,19 @@ const Da = (t) => {
|
|
|
1299
1341
|
credentials: re ? ge : void 0
|
|
1300
1342
|
};
|
|
1301
1343
|
ve = i && new r(m, xe);
|
|
1302
|
-
let fe = await (i ? Ae(ve,
|
|
1344
|
+
let fe = await (i ? Ae(ve, Se) : Ae(m, xe));
|
|
1303
1345
|
const ie = l && (B === "stream" || B === "response");
|
|
1304
1346
|
if (l && (y || ie && G)) {
|
|
1305
1347
|
const _ = {};
|
|
1306
1348
|
["status", "statusText", "headers"].forEach((U) => {
|
|
1307
1349
|
_[U] = fe[U];
|
|
1308
1350
|
});
|
|
1309
|
-
const D = p.toFiniteNumber(fe.headers.get("content-length")), [z, C] = y &&
|
|
1351
|
+
const D = p.toFiniteNumber(fe.headers.get("content-length")), [z, C] = y && yn(
|
|
1310
1352
|
D,
|
|
1311
|
-
Ft(
|
|
1353
|
+
Ft(bn(y), !0)
|
|
1312
1354
|
) || [];
|
|
1313
1355
|
fe = new n(
|
|
1314
|
-
|
|
1356
|
+
wn(fe.body, _n, z, () => {
|
|
1315
1357
|
C && C(), G && G();
|
|
1316
1358
|
}),
|
|
1317
1359
|
_
|
|
@@ -1320,7 +1362,7 @@ const Da = (t) => {
|
|
|
1320
1362
|
B = B || "text";
|
|
1321
1363
|
let v = await u[p.findKey(u, B) || "text"](fe, f);
|
|
1322
1364
|
return !ie && G && G(), await new Promise((_, D) => {
|
|
1323
|
-
|
|
1365
|
+
Pa(_, D, {
|
|
1324
1366
|
data: v,
|
|
1325
1367
|
headers: be.from(fe.headers),
|
|
1326
1368
|
status: fe.status,
|
|
@@ -1338,27 +1380,27 @@ const Da = (t) => {
|
|
|
1338
1380
|
) : L.from(re, re && re.code, f, ve);
|
|
1339
1381
|
}
|
|
1340
1382
|
};
|
|
1341
|
-
},
|
|
1383
|
+
}, Go = /* @__PURE__ */ new Map(), Fa = (t) => {
|
|
1342
1384
|
let e = t && t.env || {};
|
|
1343
1385
|
const { fetch: r, Request: n, Response: a } = e, i = [
|
|
1344
1386
|
n,
|
|
1345
1387
|
a,
|
|
1346
1388
|
r
|
|
1347
1389
|
];
|
|
1348
|
-
let o = i.length, s = o, d, c, l =
|
|
1390
|
+
let o = i.length, s = o, d, c, l = Go;
|
|
1349
1391
|
for (; s--; )
|
|
1350
|
-
d = i[s], c = l.get(d), c === void 0 && l.set(d, c = s ? /* @__PURE__ */ new Map() :
|
|
1392
|
+
d = i[s], c = l.get(d), c === void 0 && l.set(d, c = s ? /* @__PURE__ */ new Map() : Jo(e)), l = c;
|
|
1351
1393
|
return c;
|
|
1352
1394
|
};
|
|
1353
|
-
|
|
1354
|
-
const
|
|
1355
|
-
http:
|
|
1356
|
-
xhr:
|
|
1395
|
+
Fa();
|
|
1396
|
+
const tn = {
|
|
1397
|
+
http: mo,
|
|
1398
|
+
xhr: Zo,
|
|
1357
1399
|
fetch: {
|
|
1358
|
-
get:
|
|
1400
|
+
get: Fa
|
|
1359
1401
|
}
|
|
1360
1402
|
};
|
|
1361
|
-
p.forEach(
|
|
1403
|
+
p.forEach(tn, (t, e) => {
|
|
1362
1404
|
if (t) {
|
|
1363
1405
|
try {
|
|
1364
1406
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -1367,8 +1409,8 @@ p.forEach(en, (t, e) => {
|
|
|
1367
1409
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
1368
1410
|
}
|
|
1369
1411
|
});
|
|
1370
|
-
const
|
|
1371
|
-
function
|
|
1412
|
+
const Tn = (t) => `- ${t}`, Xo = (t) => p.isFunction(t) || t === null || t === !1;
|
|
1413
|
+
function Qo(t, e) {
|
|
1372
1414
|
t = p.isArray(t) ? t : [t];
|
|
1373
1415
|
const { length: r } = t;
|
|
1374
1416
|
let n, a;
|
|
@@ -1376,7 +1418,7 @@ function Jo(t, e) {
|
|
|
1376
1418
|
for (let o = 0; o < r; o++) {
|
|
1377
1419
|
n = t[o];
|
|
1378
1420
|
let s;
|
|
1379
|
-
if (a = n, !
|
|
1421
|
+
if (a = n, !Xo(n) && (a = tn[(s = String(n)).toLowerCase()], a === void 0))
|
|
1380
1422
|
throw new L(`Unknown adapter '${s}'`);
|
|
1381
1423
|
if (a && (p.isFunction(a) || (a = a.get(e))))
|
|
1382
1424
|
break;
|
|
@@ -1387,8 +1429,8 @@ function Jo(t, e) {
|
|
|
1387
1429
|
([d, c]) => `adapter ${d} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1388
1430
|
);
|
|
1389
1431
|
let s = r ? o.length > 1 ? `since :
|
|
1390
|
-
` + o.map(
|
|
1391
|
-
`) : " " +
|
|
1432
|
+
` + o.map(Tn).join(`
|
|
1433
|
+
`) : " " + Tn(o[0]) : "as no adapter specified";
|
|
1392
1434
|
throw new L(
|
|
1393
1435
|
"There is no suitable adapter to dispatch the request " + s,
|
|
1394
1436
|
"ERR_NOT_SUPPORT"
|
|
@@ -1396,50 +1438,50 @@ function Jo(t, e) {
|
|
|
1396
1438
|
}
|
|
1397
1439
|
return a;
|
|
1398
1440
|
}
|
|
1399
|
-
const
|
|
1441
|
+
const za = {
|
|
1400
1442
|
/**
|
|
1401
1443
|
* Resolve an adapter from a list of adapter names or functions.
|
|
1402
1444
|
* @type {Function}
|
|
1403
1445
|
*/
|
|
1404
|
-
getAdapter:
|
|
1446
|
+
getAdapter: Qo,
|
|
1405
1447
|
/**
|
|
1406
1448
|
* Exposes all known adapters
|
|
1407
1449
|
* @type {Object<string, Function|Object>}
|
|
1408
1450
|
*/
|
|
1409
|
-
adapters:
|
|
1451
|
+
adapters: tn
|
|
1410
1452
|
};
|
|
1411
|
-
function
|
|
1453
|
+
function vr(t) {
|
|
1412
1454
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1413
|
-
throw new
|
|
1455
|
+
throw new dt(null, t);
|
|
1414
1456
|
}
|
|
1415
|
-
function
|
|
1416
|
-
return
|
|
1457
|
+
function On(t) {
|
|
1458
|
+
return vr(t), t.headers = be.from(t.headers), t.data = gr.call(
|
|
1417
1459
|
t,
|
|
1418
1460
|
t.transformRequest
|
|
1419
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1420
|
-
return
|
|
1461
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), za.getAdapter(t.adapter || _t.adapter, t)(t).then(function(n) {
|
|
1462
|
+
return vr(t), n.data = gr.call(
|
|
1421
1463
|
t,
|
|
1422
1464
|
t.transformResponse,
|
|
1423
1465
|
n
|
|
1424
1466
|
), n.headers = be.from(n.headers), n;
|
|
1425
1467
|
}, function(n) {
|
|
1426
|
-
return
|
|
1468
|
+
return Da(n) || (vr(t), n && n.response && (n.response.data = gr.call(
|
|
1427
1469
|
t,
|
|
1428
1470
|
t.transformResponse,
|
|
1429
1471
|
n.response
|
|
1430
1472
|
), n.response.headers = be.from(n.response.headers))), Promise.reject(n);
|
|
1431
1473
|
});
|
|
1432
1474
|
}
|
|
1433
|
-
const
|
|
1475
|
+
const La = "1.13.2", nr = {};
|
|
1434
1476
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1435
1477
|
nr[t] = function(n) {
|
|
1436
1478
|
return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1437
1479
|
};
|
|
1438
1480
|
});
|
|
1439
|
-
const
|
|
1481
|
+
const Cn = {};
|
|
1440
1482
|
nr.transitional = function(e, r, n) {
|
|
1441
1483
|
function a(i, o) {
|
|
1442
|
-
return "[Axios v" +
|
|
1484
|
+
return "[Axios v" + La + "] Transitional option '" + i + "'" + o + (n ? ". " + n : "");
|
|
1443
1485
|
}
|
|
1444
1486
|
return (i, o, s) => {
|
|
1445
1487
|
if (e === !1)
|
|
@@ -1447,7 +1489,7 @@ nr.transitional = function(e, r, n) {
|
|
|
1447
1489
|
a(o, " has been removed" + (r ? " in " + r : "")),
|
|
1448
1490
|
L.ERR_DEPRECATED
|
|
1449
1491
|
);
|
|
1450
|
-
return r && !
|
|
1492
|
+
return r && !Cn[o] && (Cn[o] = !0, console.warn(
|
|
1451
1493
|
a(
|
|
1452
1494
|
o,
|
|
1453
1495
|
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
@@ -1458,7 +1500,7 @@ nr.transitional = function(e, r, n) {
|
|
|
1458
1500
|
nr.spelling = function(e) {
|
|
1459
1501
|
return (r, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
|
|
1460
1502
|
};
|
|
1461
|
-
function
|
|
1503
|
+
function es(t, e, r) {
|
|
1462
1504
|
if (typeof t != "object")
|
|
1463
1505
|
throw new L("options must be an object", L.ERR_BAD_OPTION_VALUE);
|
|
1464
1506
|
const n = Object.keys(t);
|
|
@@ -1476,14 +1518,14 @@ function Go(t, e, r) {
|
|
|
1476
1518
|
}
|
|
1477
1519
|
}
|
|
1478
1520
|
const Nt = {
|
|
1479
|
-
assertOptions:
|
|
1521
|
+
assertOptions: es,
|
|
1480
1522
|
validators: nr
|
|
1481
1523
|
}, Re = Nt.validators;
|
|
1482
1524
|
let Ze = class {
|
|
1483
1525
|
constructor(e) {
|
|
1484
1526
|
this.defaults = e || {}, this.interceptors = {
|
|
1485
|
-
request: new
|
|
1486
|
-
response: new
|
|
1527
|
+
request: new gn(),
|
|
1528
|
+
response: new gn()
|
|
1487
1529
|
};
|
|
1488
1530
|
}
|
|
1489
1531
|
/**
|
|
@@ -1548,7 +1590,7 @@ let Ze = class {
|
|
|
1548
1590
|
});
|
|
1549
1591
|
let l, u = 0, b;
|
|
1550
1592
|
if (!d) {
|
|
1551
|
-
const f = [
|
|
1593
|
+
const f = [On.bind(this), void 0];
|
|
1552
1594
|
for (f.unshift(...s), f.push(...c), b = f.length, l = Promise.resolve(r); u < b; )
|
|
1553
1595
|
l = l.then(f[u++], f[u++]);
|
|
1554
1596
|
return l;
|
|
@@ -1565,7 +1607,7 @@ let Ze = class {
|
|
|
1565
1607
|
}
|
|
1566
1608
|
}
|
|
1567
1609
|
try {
|
|
1568
|
-
l =
|
|
1610
|
+
l = On.call(this, x);
|
|
1569
1611
|
} catch (f) {
|
|
1570
1612
|
return Promise.reject(f);
|
|
1571
1613
|
}
|
|
@@ -1575,8 +1617,8 @@ let Ze = class {
|
|
|
1575
1617
|
}
|
|
1576
1618
|
getUri(e) {
|
|
1577
1619
|
e = Ve(this.defaults, e);
|
|
1578
|
-
const r =
|
|
1579
|
-
return
|
|
1620
|
+
const r = Ia(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
1621
|
+
return Aa(r, e.params, e.paramsSerializer);
|
|
1580
1622
|
}
|
|
1581
1623
|
};
|
|
1582
1624
|
p.forEach(["delete", "get", "head", "options"], function(e) {
|
|
@@ -1603,7 +1645,7 @@ p.forEach(["post", "put", "patch"], function(e) {
|
|
|
1603
1645
|
}
|
|
1604
1646
|
Ze.prototype[e] = r(), Ze.prototype[e + "Form"] = r(!0);
|
|
1605
1647
|
});
|
|
1606
|
-
let
|
|
1648
|
+
let ts = class qa {
|
|
1607
1649
|
constructor(e) {
|
|
1608
1650
|
if (typeof e != "function")
|
|
1609
1651
|
throw new TypeError("executor must be a function.");
|
|
@@ -1627,7 +1669,7 @@ let Xo = class Fa {
|
|
|
1627
1669
|
n.unsubscribe(i);
|
|
1628
1670
|
}, o;
|
|
1629
1671
|
}, e(function(i, o, s) {
|
|
1630
|
-
n.reason || (n.reason = new
|
|
1672
|
+
n.reason || (n.reason = new dt(i, o, s), r(n.reason));
|
|
1631
1673
|
});
|
|
1632
1674
|
}
|
|
1633
1675
|
/**
|
|
@@ -1669,22 +1711,22 @@ let Xo = class Fa {
|
|
|
1669
1711
|
static source() {
|
|
1670
1712
|
let e;
|
|
1671
1713
|
return {
|
|
1672
|
-
token: new
|
|
1714
|
+
token: new qa(function(a) {
|
|
1673
1715
|
e = a;
|
|
1674
1716
|
}),
|
|
1675
1717
|
cancel: e
|
|
1676
1718
|
};
|
|
1677
1719
|
}
|
|
1678
1720
|
};
|
|
1679
|
-
function
|
|
1721
|
+
function rs(t) {
|
|
1680
1722
|
return function(r) {
|
|
1681
1723
|
return t.apply(null, r);
|
|
1682
1724
|
};
|
|
1683
1725
|
}
|
|
1684
|
-
function
|
|
1726
|
+
function ns(t) {
|
|
1685
1727
|
return p.isObject(t) && t.isAxiosError === !0;
|
|
1686
1728
|
}
|
|
1687
|
-
const
|
|
1729
|
+
const Fr = {
|
|
1688
1730
|
Continue: 100,
|
|
1689
1731
|
SwitchingProtocols: 101,
|
|
1690
1732
|
Processing: 102,
|
|
@@ -1755,54 +1797,54 @@ const Nr = {
|
|
|
1755
1797
|
SslHandshakeFailed: 525,
|
|
1756
1798
|
InvalidSslCertificate: 526
|
|
1757
1799
|
};
|
|
1758
|
-
Object.entries(
|
|
1759
|
-
|
|
1800
|
+
Object.entries(Fr).forEach(([t, e]) => {
|
|
1801
|
+
Fr[e] = t;
|
|
1760
1802
|
});
|
|
1761
|
-
function
|
|
1762
|
-
const e = new Ze(t), r =
|
|
1803
|
+
function Ma(t) {
|
|
1804
|
+
const e = new Ze(t), r = va(Ze.prototype.request, e);
|
|
1763
1805
|
return p.extend(r, Ze.prototype, e, { allOwnKeys: !0 }), p.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(a) {
|
|
1764
|
-
return
|
|
1806
|
+
return Ma(Ve(t, a));
|
|
1765
1807
|
}, r;
|
|
1766
1808
|
}
|
|
1767
|
-
const ae =
|
|
1809
|
+
const ae = Ma(_t);
|
|
1768
1810
|
ae.Axios = Ze;
|
|
1769
|
-
ae.CanceledError =
|
|
1770
|
-
ae.CancelToken =
|
|
1771
|
-
ae.isCancel =
|
|
1772
|
-
ae.VERSION =
|
|
1811
|
+
ae.CanceledError = dt;
|
|
1812
|
+
ae.CancelToken = ts;
|
|
1813
|
+
ae.isCancel = Da;
|
|
1814
|
+
ae.VERSION = La;
|
|
1773
1815
|
ae.toFormData = rr;
|
|
1774
1816
|
ae.AxiosError = L;
|
|
1775
1817
|
ae.Cancel = ae.CanceledError;
|
|
1776
1818
|
ae.all = function(e) {
|
|
1777
1819
|
return Promise.all(e);
|
|
1778
1820
|
};
|
|
1779
|
-
ae.spread =
|
|
1780
|
-
ae.isAxiosError =
|
|
1821
|
+
ae.spread = rs;
|
|
1822
|
+
ae.isAxiosError = ns;
|
|
1781
1823
|
ae.mergeConfig = Ve;
|
|
1782
1824
|
ae.AxiosHeaders = be;
|
|
1783
|
-
ae.formToJSON = (t) =>
|
|
1784
|
-
ae.getAdapter =
|
|
1785
|
-
ae.HttpStatusCode =
|
|
1825
|
+
ae.formToJSON = (t) => ja(p.isHTMLForm(t) ? new FormData(t) : t);
|
|
1826
|
+
ae.getAdapter = za.getAdapter;
|
|
1827
|
+
ae.HttpStatusCode = Fr;
|
|
1786
1828
|
ae.default = ae;
|
|
1787
1829
|
const {
|
|
1788
|
-
Axios:
|
|
1789
|
-
AxiosError:
|
|
1790
|
-
CanceledError:
|
|
1791
|
-
isCancel:
|
|
1792
|
-
CancelToken:
|
|
1793
|
-
VERSION:
|
|
1794
|
-
all:
|
|
1795
|
-
Cancel:
|
|
1796
|
-
isAxiosError:
|
|
1797
|
-
spread:
|
|
1798
|
-
toFormData:
|
|
1799
|
-
AxiosHeaders:
|
|
1800
|
-
HttpStatusCode:
|
|
1801
|
-
formToJSON:
|
|
1802
|
-
getAdapter:
|
|
1803
|
-
mergeConfig:
|
|
1830
|
+
Axios: Hl,
|
|
1831
|
+
AxiosError: Wl,
|
|
1832
|
+
CanceledError: Yl,
|
|
1833
|
+
isCancel: Kl,
|
|
1834
|
+
CancelToken: Jl,
|
|
1835
|
+
VERSION: Gl,
|
|
1836
|
+
all: Xl,
|
|
1837
|
+
Cancel: Ql,
|
|
1838
|
+
isAxiosError: ed,
|
|
1839
|
+
spread: td,
|
|
1840
|
+
toFormData: rd,
|
|
1841
|
+
AxiosHeaders: nd,
|
|
1842
|
+
HttpStatusCode: ad,
|
|
1843
|
+
formToJSON: id,
|
|
1844
|
+
getAdapter: od,
|
|
1845
|
+
mergeConfig: sd
|
|
1804
1846
|
} = ae;
|
|
1805
|
-
class
|
|
1847
|
+
class as {
|
|
1806
1848
|
constructor(e) {
|
|
1807
1849
|
const r = {
|
|
1808
1850
|
"Content-Type": "application/json"
|
|
@@ -1815,7 +1857,7 @@ class ts {
|
|
|
1815
1857
|
(n) => n,
|
|
1816
1858
|
(n) => {
|
|
1817
1859
|
var a, i;
|
|
1818
|
-
throw (i = (a = n.response) == null ? void 0 : a.data) != null && i.error ? new
|
|
1860
|
+
throw (i = (a = n.response) == null ? void 0 : a.data) != null && i.error ? new is(
|
|
1819
1861
|
n.response.data.error.code,
|
|
1820
1862
|
n.response.data.error.message,
|
|
1821
1863
|
n.response.status,
|
|
@@ -1863,24 +1905,24 @@ class ts {
|
|
|
1863
1905
|
return (await this.client.post("/api/v1/kyc/verify", { sessionId: e, acceptWarnings: r })).data.data;
|
|
1864
1906
|
}
|
|
1865
1907
|
}
|
|
1866
|
-
class
|
|
1908
|
+
class is extends Error {
|
|
1867
1909
|
constructor(e, r, n, a) {
|
|
1868
1910
|
super(r), this.code = e, this.status = n, this.details = a, this.name = "FileFlowError";
|
|
1869
1911
|
}
|
|
1870
1912
|
}
|
|
1871
1913
|
let zt = null;
|
|
1872
|
-
function
|
|
1873
|
-
return zt = new
|
|
1914
|
+
function cd(t) {
|
|
1915
|
+
return zt = new as(t), zt;
|
|
1874
1916
|
}
|
|
1875
|
-
function
|
|
1917
|
+
function ld() {
|
|
1876
1918
|
if (!zt)
|
|
1877
1919
|
throw new Error("FileFlow client not initialized. Call initializeClient() first.");
|
|
1878
1920
|
return zt;
|
|
1879
1921
|
}
|
|
1880
|
-
function
|
|
1922
|
+
function $a(t) {
|
|
1881
1923
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1882
1924
|
}
|
|
1883
|
-
var
|
|
1925
|
+
var zr = { exports: {} }, Rt = { exports: {} }, X = {};
|
|
1884
1926
|
/** @license React v16.13.1
|
|
1885
1927
|
* react-is.production.min.js
|
|
1886
1928
|
*
|
|
@@ -1889,10 +1931,10 @@ var Fr = { exports: {} }, Rt = { exports: {} }, X = {};
|
|
|
1889
1931
|
* This source code is licensed under the MIT license found in the
|
|
1890
1932
|
* LICENSE file in the root directory of this source tree.
|
|
1891
1933
|
*/
|
|
1892
|
-
var
|
|
1893
|
-
function
|
|
1894
|
-
if (
|
|
1895
|
-
|
|
1934
|
+
var An;
|
|
1935
|
+
function os() {
|
|
1936
|
+
if (An) return X;
|
|
1937
|
+
An = 1;
|
|
1896
1938
|
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;
|
|
1897
1939
|
function R(y) {
|
|
1898
1940
|
if (typeof y == "object" && y !== null) {
|
|
@@ -1964,9 +2006,9 @@ var Q = {};
|
|
|
1964
2006
|
* This source code is licensed under the MIT license found in the
|
|
1965
2007
|
* LICENSE file in the root directory of this source tree.
|
|
1966
2008
|
*/
|
|
1967
|
-
var
|
|
1968
|
-
function
|
|
1969
|
-
return
|
|
2009
|
+
var Rn;
|
|
2010
|
+
function ss() {
|
|
2011
|
+
return Rn || (Rn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1970
2012
|
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
2013
|
function R(w) {
|
|
1972
2014
|
return typeof w == "string" || typeof w == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -1987,14 +2029,14 @@ function as() {
|
|
|
1987
2029
|
case u:
|
|
1988
2030
|
return $e;
|
|
1989
2031
|
default:
|
|
1990
|
-
var
|
|
1991
|
-
switch (
|
|
2032
|
+
var pt = $e && $e.$$typeof;
|
|
2033
|
+
switch (pt) {
|
|
1992
2034
|
case s:
|
|
1993
2035
|
case l:
|
|
1994
2036
|
case f:
|
|
1995
2037
|
case x:
|
|
1996
2038
|
case o:
|
|
1997
|
-
return
|
|
2039
|
+
return pt;
|
|
1998
2040
|
default:
|
|
1999
2041
|
return we;
|
|
2000
2042
|
}
|
|
@@ -2004,7 +2046,7 @@ function as() {
|
|
|
2004
2046
|
}
|
|
2005
2047
|
}
|
|
2006
2048
|
}
|
|
2007
|
-
var y = d, $ = c, B = s, pe = o, ge = e,
|
|
2049
|
+
var y = d, $ = c, B = s, pe = o, ge = e, Se = l, Ae = n, Ee = f, ve = x, G = r, ce = i, re = a, xe = u, fe = !1;
|
|
2008
2050
|
function ie(w) {
|
|
2009
2051
|
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
2052
|
}
|
|
@@ -2032,7 +2074,7 @@ function as() {
|
|
|
2032
2074
|
function M(w) {
|
|
2033
2075
|
return N(w) === x;
|
|
2034
2076
|
}
|
|
2035
|
-
function
|
|
2077
|
+
function H(w) {
|
|
2036
2078
|
return N(w) === r;
|
|
2037
2079
|
}
|
|
2038
2080
|
function Y(w) {
|
|
@@ -2044,22 +2086,22 @@ function as() {
|
|
|
2044
2086
|
function le(w) {
|
|
2045
2087
|
return N(w) === u;
|
|
2046
2088
|
}
|
|
2047
|
-
Q.AsyncMode = y, Q.ConcurrentMode = $, Q.ContextConsumer = B, Q.ContextProvider = pe, Q.Element = ge, Q.ForwardRef =
|
|
2089
|
+
Q.AsyncMode = y, Q.ConcurrentMode = $, Q.ContextConsumer = B, Q.ContextProvider = pe, Q.Element = ge, Q.ForwardRef = Se, 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 = H, Q.isProfiler = Y, Q.isStrictMode = Z, Q.isSuspense = le, Q.isValidElementType = R, Q.typeOf = N;
|
|
2048
2090
|
}()), Q;
|
|
2049
2091
|
}
|
|
2050
|
-
var
|
|
2051
|
-
function
|
|
2052
|
-
return
|
|
2092
|
+
var jn;
|
|
2093
|
+
function Ba() {
|
|
2094
|
+
return jn || (jn = 1, process.env.NODE_ENV === "production" ? Rt.exports = os() : Rt.exports = ss()), Rt.exports;
|
|
2053
2095
|
}
|
|
2054
2096
|
/*
|
|
2055
2097
|
object-assign
|
|
2056
2098
|
(c) Sindre Sorhus
|
|
2057
2099
|
@license MIT
|
|
2058
2100
|
*/
|
|
2059
|
-
var
|
|
2060
|
-
function
|
|
2061
|
-
if (
|
|
2062
|
-
|
|
2101
|
+
var yr, Dn;
|
|
2102
|
+
function cs() {
|
|
2103
|
+
if (Dn) return yr;
|
|
2104
|
+
Dn = 1;
|
|
2063
2105
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
2064
2106
|
function n(i) {
|
|
2065
2107
|
if (i == null)
|
|
@@ -2088,7 +2130,7 @@ function is() {
|
|
|
2088
2130
|
return !1;
|
|
2089
2131
|
}
|
|
2090
2132
|
}
|
|
2091
|
-
return
|
|
2133
|
+
return yr = a() ? Object.assign : function(i, o) {
|
|
2092
2134
|
for (var s, d = n(i), c, l = 1; l < arguments.length; l++) {
|
|
2093
2135
|
s = Object(arguments[l]);
|
|
2094
2136
|
for (var u in s)
|
|
@@ -2100,27 +2142,27 @@ function is() {
|
|
|
2100
2142
|
}
|
|
2101
2143
|
}
|
|
2102
2144
|
return d;
|
|
2103
|
-
},
|
|
2145
|
+
}, yr;
|
|
2104
2146
|
}
|
|
2105
|
-
var
|
|
2106
|
-
function
|
|
2107
|
-
if (
|
|
2108
|
-
|
|
2147
|
+
var br, Pn;
|
|
2148
|
+
function rn() {
|
|
2149
|
+
if (Pn) return br;
|
|
2150
|
+
Pn = 1;
|
|
2109
2151
|
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2110
|
-
return
|
|
2152
|
+
return br = t, br;
|
|
2111
2153
|
}
|
|
2112
|
-
var
|
|
2113
|
-
function
|
|
2114
|
-
return
|
|
2154
|
+
var xr, In;
|
|
2155
|
+
function Ua() {
|
|
2156
|
+
return In || (In = 1, xr = Function.call.bind(Object.prototype.hasOwnProperty)), xr;
|
|
2115
2157
|
}
|
|
2116
|
-
var
|
|
2117
|
-
function
|
|
2118
|
-
if (
|
|
2119
|
-
|
|
2158
|
+
var wr, Nn;
|
|
2159
|
+
function ls() {
|
|
2160
|
+
if (Nn) return wr;
|
|
2161
|
+
Nn = 1;
|
|
2120
2162
|
var t = function() {
|
|
2121
2163
|
};
|
|
2122
2164
|
if (process.env.NODE_ENV !== "production") {
|
|
2123
|
-
var e =
|
|
2165
|
+
var e = rn(), r = {}, n = Ua();
|
|
2124
2166
|
t = function(i) {
|
|
2125
2167
|
var o = "Warning: " + i;
|
|
2126
2168
|
typeof console < "u" && console.error(o);
|
|
@@ -2160,13 +2202,13 @@ function os() {
|
|
|
2160
2202
|
}
|
|
2161
2203
|
return a.resetWarningCache = function() {
|
|
2162
2204
|
process.env.NODE_ENV !== "production" && (r = {});
|
|
2163
|
-
},
|
|
2205
|
+
}, wr = a, wr;
|
|
2164
2206
|
}
|
|
2165
|
-
var
|
|
2166
|
-
function
|
|
2167
|
-
if (
|
|
2168
|
-
|
|
2169
|
-
var t =
|
|
2207
|
+
var _r, Fn;
|
|
2208
|
+
function ds() {
|
|
2209
|
+
if (Fn) return _r;
|
|
2210
|
+
Fn = 1;
|
|
2211
|
+
var t = Ba(), e = cs(), r = rn(), n = Ua(), a = ls(), i = function() {
|
|
2170
2212
|
};
|
|
2171
2213
|
process.env.NODE_ENV !== "production" && (i = function(s) {
|
|
2172
2214
|
var d = "Warning: " + s;
|
|
@@ -2179,7 +2221,7 @@ function ss() {
|
|
|
2179
2221
|
function o() {
|
|
2180
2222
|
return null;
|
|
2181
2223
|
}
|
|
2182
|
-
return
|
|
2224
|
+
return _r = function(s, d) {
|
|
2183
2225
|
var c = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
|
|
2184
2226
|
function u(v) {
|
|
2185
2227
|
var _ = v && (c && v[c] || v[l]);
|
|
@@ -2200,7 +2242,7 @@ function ss() {
|
|
|
2200
2242
|
element: N(),
|
|
2201
2243
|
elementType: y(),
|
|
2202
2244
|
instanceOf: $,
|
|
2203
|
-
node:
|
|
2245
|
+
node: Se(),
|
|
2204
2246
|
objectOf: pe,
|
|
2205
2247
|
oneOf: B,
|
|
2206
2248
|
oneOfType: ge,
|
|
@@ -2217,31 +2259,31 @@ function ss() {
|
|
|
2217
2259
|
function h(v) {
|
|
2218
2260
|
if (process.env.NODE_ENV !== "production")
|
|
2219
2261
|
var _ = {}, D = 0;
|
|
2220
|
-
function z(U, F, M,
|
|
2221
|
-
if (
|
|
2262
|
+
function z(U, F, M, H, Y, Z, le) {
|
|
2263
|
+
if (H = H || b, Z = Z || M, le !== r) {
|
|
2222
2264
|
if (d) {
|
|
2223
2265
|
var w = new Error(
|
|
2224
2266
|
"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
2267
|
);
|
|
2226
2268
|
throw w.name = "Invariant Violation", w;
|
|
2227
2269
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
2228
|
-
var we =
|
|
2270
|
+
var we = H + ":" + M;
|
|
2229
2271
|
!_[we] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
2230
2272
|
D < 3 && (i(
|
|
2231
|
-
"You are manually calling a React.PropTypes validation function for the `" + Z + "` prop on `" +
|
|
2273
|
+
"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
2274
|
), _[we] = !0, D++);
|
|
2233
2275
|
}
|
|
2234
2276
|
}
|
|
2235
|
-
return F[M] == null ? U ? F[M] === null ? new m("The " + Y + " `" + Z + "` is marked as required " + ("in `" +
|
|
2277
|
+
return F[M] == null ? U ? F[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(F, M, H, Y, Z);
|
|
2236
2278
|
}
|
|
2237
2279
|
var C = z.bind(null, !1);
|
|
2238
2280
|
return C.isRequired = z.bind(null, !0), C;
|
|
2239
2281
|
}
|
|
2240
2282
|
function A(v) {
|
|
2241
2283
|
function _(D, z, C, U, F, M) {
|
|
2242
|
-
var
|
|
2284
|
+
var H = D[z], Y = re(H);
|
|
2243
2285
|
if (Y !== v) {
|
|
2244
|
-
var Z = xe(
|
|
2286
|
+
var Z = xe(H);
|
|
2245
2287
|
return new m(
|
|
2246
2288
|
"Invalid " + U + " `" + F + "` of type " + ("`" + Z + "` supplied to `" + C + "`, expected ") + ("`" + v + "`."),
|
|
2247
2289
|
{ expectedType: v }
|
|
@@ -2260,8 +2302,8 @@ function ss() {
|
|
|
2260
2302
|
return new m("Property `" + F + "` of component `" + C + "` has invalid PropType notation inside arrayOf.");
|
|
2261
2303
|
var M = D[z];
|
|
2262
2304
|
if (!Array.isArray(M)) {
|
|
2263
|
-
var
|
|
2264
|
-
return new m("Invalid " + U + " `" + F + "` of type " + ("`" +
|
|
2305
|
+
var H = re(M);
|
|
2306
|
+
return new m("Invalid " + U + " `" + F + "` of type " + ("`" + H + "` supplied to `" + C + "`, expected an array."));
|
|
2265
2307
|
}
|
|
2266
2308
|
for (var Y = 0; Y < M.length; Y++) {
|
|
2267
2309
|
var Z = v(M, Y, C, U, F + "[" + Y + "]", r);
|
|
@@ -2297,8 +2339,8 @@ function ss() {
|
|
|
2297
2339
|
function $(v) {
|
|
2298
2340
|
function _(D, z, C, U, F) {
|
|
2299
2341
|
if (!(D[z] instanceof v)) {
|
|
2300
|
-
var M = v.name || b,
|
|
2301
|
-
return new m("Invalid " + U + " `" + F + "` of type " + ("`" +
|
|
2342
|
+
var M = v.name || b, H = ie(D[z]);
|
|
2343
|
+
return new m("Invalid " + U + " `" + F + "` of type " + ("`" + H + "` supplied to `" + C + "`, expected ") + ("instance of `" + M + "`."));
|
|
2302
2344
|
}
|
|
2303
2345
|
return null;
|
|
2304
2346
|
}
|
|
@@ -2310,8 +2352,8 @@ function ss() {
|
|
|
2310
2352
|
"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
2353
|
) : i("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
2312
2354
|
function _(D, z, C, U, F) {
|
|
2313
|
-
for (var M = D[z],
|
|
2314
|
-
if (f(M, v[
|
|
2355
|
+
for (var M = D[z], H = 0; H < v.length; H++)
|
|
2356
|
+
if (f(M, v[H]))
|
|
2315
2357
|
return null;
|
|
2316
2358
|
var Y = JSON.stringify(v, function(le, w) {
|
|
2317
2359
|
var we = xe(w);
|
|
@@ -2325,9 +2367,9 @@ function ss() {
|
|
|
2325
2367
|
function _(D, z, C, U, F) {
|
|
2326
2368
|
if (typeof v != "function")
|
|
2327
2369
|
return new m("Property `" + F + "` of component `" + C + "` has invalid PropType notation inside objectOf.");
|
|
2328
|
-
var M = D[z],
|
|
2329
|
-
if (
|
|
2330
|
-
return new m("Invalid " + U + " `" + F + "` of type " + ("`" +
|
|
2370
|
+
var M = D[z], H = re(M);
|
|
2371
|
+
if (H !== "object")
|
|
2372
|
+
return new m("Invalid " + U + " `" + F + "` of type " + ("`" + H + "` supplied to `" + C + "`, expected an object."));
|
|
2331
2373
|
for (var Y in M)
|
|
2332
2374
|
if (n(M, Y)) {
|
|
2333
2375
|
var Z = v(M, Y, C, U, F + "." + Y, r);
|
|
@@ -2348,19 +2390,19 @@ function ss() {
|
|
|
2348
2390
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + fe(D) + " at index " + _ + "."
|
|
2349
2391
|
), o;
|
|
2350
2392
|
}
|
|
2351
|
-
function z(C, U, F, M,
|
|
2393
|
+
function z(C, U, F, M, H) {
|
|
2352
2394
|
for (var Y = [], Z = 0; Z < v.length; Z++) {
|
|
2353
|
-
var le = v[Z], w = le(C, U, F, M,
|
|
2395
|
+
var le = v[Z], w = le(C, U, F, M, H, r);
|
|
2354
2396
|
if (w == null)
|
|
2355
2397
|
return null;
|
|
2356
2398
|
w.data && n(w.data, "expectedType") && Y.push(w.data.expectedType);
|
|
2357
2399
|
}
|
|
2358
2400
|
var we = Y.length > 0 ? ", expected one of type [" + Y.join(", ") + "]" : "";
|
|
2359
|
-
return new m("Invalid " + M + " `" +
|
|
2401
|
+
return new m("Invalid " + M + " `" + H + "` supplied to " + ("`" + F + "`" + we + "."));
|
|
2360
2402
|
}
|
|
2361
2403
|
return h(z);
|
|
2362
2404
|
}
|
|
2363
|
-
function
|
|
2405
|
+
function Se() {
|
|
2364
2406
|
function v(_, D, z, C, U) {
|
|
2365
2407
|
return G(_[D]) ? null : new m("Invalid " + C + " `" + U + "` supplied to " + ("`" + z + "`, expected a ReactNode."));
|
|
2366
2408
|
}
|
|
@@ -2373,9 +2415,9 @@ function ss() {
|
|
|
2373
2415
|
}
|
|
2374
2416
|
function Ee(v) {
|
|
2375
2417
|
function _(D, z, C, U, F) {
|
|
2376
|
-
var M = D[z],
|
|
2377
|
-
if (
|
|
2378
|
-
return new m("Invalid " + U + " `" + F + "` of type `" +
|
|
2418
|
+
var M = D[z], H = re(M);
|
|
2419
|
+
if (H !== "object")
|
|
2420
|
+
return new m("Invalid " + U + " `" + F + "` of type `" + H + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
2379
2421
|
for (var Y in v) {
|
|
2380
2422
|
var Z = v[Y];
|
|
2381
2423
|
if (typeof Z != "function")
|
|
@@ -2390,9 +2432,9 @@ function ss() {
|
|
|
2390
2432
|
}
|
|
2391
2433
|
function ve(v) {
|
|
2392
2434
|
function _(D, z, C, U, F) {
|
|
2393
|
-
var M = D[z],
|
|
2394
|
-
if (
|
|
2395
|
-
return new m("Invalid " + U + " `" + F + "` of type `" +
|
|
2435
|
+
var M = D[z], H = re(M);
|
|
2436
|
+
if (H !== "object")
|
|
2437
|
+
return new m("Invalid " + U + " `" + F + "` of type `" + H + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
2396
2438
|
var Y = e({}, D[z], v);
|
|
2397
2439
|
for (var Z in Y) {
|
|
2398
2440
|
var le = v[Z];
|
|
@@ -2481,18 +2523,18 @@ Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
|
|
|
2481
2523
|
return !v.constructor || !v.constructor.name ? b : v.constructor.name;
|
|
2482
2524
|
}
|
|
2483
2525
|
return x.checkPropTypes = a, x.resetWarningCache = a.resetWarningCache, x.PropTypes = x, x;
|
|
2484
|
-
},
|
|
2526
|
+
}, _r;
|
|
2485
2527
|
}
|
|
2486
|
-
var
|
|
2487
|
-
function
|
|
2488
|
-
if (
|
|
2489
|
-
|
|
2490
|
-
var t =
|
|
2528
|
+
var kr, zn;
|
|
2529
|
+
function ps() {
|
|
2530
|
+
if (zn) return kr;
|
|
2531
|
+
zn = 1;
|
|
2532
|
+
var t = rn();
|
|
2491
2533
|
function e() {
|
|
2492
2534
|
}
|
|
2493
2535
|
function r() {
|
|
2494
2536
|
}
|
|
2495
|
-
return r.resetWarningCache = e,
|
|
2537
|
+
return r.resetWarningCache = e, kr = function() {
|
|
2496
2538
|
function n(o, s, d, c, l, u) {
|
|
2497
2539
|
if (u !== t) {
|
|
2498
2540
|
var b = new Error(
|
|
@@ -2529,15 +2571,15 @@ function cs() {
|
|
|
2529
2571
|
resetWarningCache: e
|
|
2530
2572
|
};
|
|
2531
2573
|
return i.PropTypes = i, i;
|
|
2532
|
-
},
|
|
2574
|
+
}, kr;
|
|
2533
2575
|
}
|
|
2534
2576
|
if (process.env.NODE_ENV !== "production") {
|
|
2535
|
-
var
|
|
2536
|
-
|
|
2577
|
+
var fs = Ba(), us = !0;
|
|
2578
|
+
zr.exports = ds()(fs.isElement, us);
|
|
2537
2579
|
} else
|
|
2538
|
-
|
|
2539
|
-
var
|
|
2540
|
-
const ee = /* @__PURE__ */
|
|
2580
|
+
zr.exports = ps()();
|
|
2581
|
+
var ms = zr.exports;
|
|
2582
|
+
const ee = /* @__PURE__ */ $a(ms);
|
|
2541
2583
|
function Je(t, e, r, n) {
|
|
2542
2584
|
function a(i) {
|
|
2543
2585
|
return i instanceof r ? i : new r(function(o) {
|
|
@@ -2565,7 +2607,7 @@ function Je(t, e, r, n) {
|
|
|
2565
2607
|
c((n = n.apply(t, e || [])).next());
|
|
2566
2608
|
});
|
|
2567
2609
|
}
|
|
2568
|
-
const
|
|
2610
|
+
const hs = /* @__PURE__ */ new Map([
|
|
2569
2611
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
2570
2612
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
2571
2613
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -3768,14 +3810,14 @@ const fs = /* @__PURE__ */ new Map([
|
|
|
3768
3810
|
["zmm", "application/vnd.handheld-entertainment+xml"],
|
|
3769
3811
|
["zsh", "text/x-scriptzsh"]
|
|
3770
3812
|
]);
|
|
3771
|
-
function
|
|
3772
|
-
const n =
|
|
3773
|
-
return typeof n.path != "string" &&
|
|
3813
|
+
function it(t, e, r) {
|
|
3814
|
+
const n = gs(t), { webkitRelativePath: a } = t, i = typeof e == "string" ? e : typeof a == "string" && a.length > 0 ? a : `./${t.name}`;
|
|
3815
|
+
return typeof n.path != "string" && Ln(n, "path", i), Ln(n, "relativePath", i), n;
|
|
3774
3816
|
}
|
|
3775
|
-
function
|
|
3817
|
+
function gs(t) {
|
|
3776
3818
|
const { name: e } = t;
|
|
3777
3819
|
if (e && e.lastIndexOf(".") !== -1 && !t.type) {
|
|
3778
|
-
const n = e.split(".").pop().toLowerCase(), a =
|
|
3820
|
+
const n = e.split(".").pop().toLowerCase(), a = hs.get(n);
|
|
3779
3821
|
a && Object.defineProperty(t, "type", {
|
|
3780
3822
|
value: a,
|
|
3781
3823
|
writable: !1,
|
|
@@ -3785,7 +3827,7 @@ function us(t) {
|
|
|
3785
3827
|
}
|
|
3786
3828
|
return t;
|
|
3787
3829
|
}
|
|
3788
|
-
function
|
|
3830
|
+
function Ln(t, e, r) {
|
|
3789
3831
|
Object.defineProperty(t, e, {
|
|
3790
3832
|
value: r,
|
|
3791
3833
|
writable: !1,
|
|
@@ -3793,51 +3835,51 @@ function Fn(t, e, r) {
|
|
|
3793
3835
|
enumerable: !0
|
|
3794
3836
|
});
|
|
3795
3837
|
}
|
|
3796
|
-
const
|
|
3838
|
+
const vs = [
|
|
3797
3839
|
// Thumbnail cache files for macOS and Windows
|
|
3798
3840
|
".DS_Store",
|
|
3799
3841
|
// macOs
|
|
3800
3842
|
"Thumbs.db"
|
|
3801
3843
|
// Windows
|
|
3802
3844
|
];
|
|
3803
|
-
function
|
|
3845
|
+
function ys(t) {
|
|
3804
3846
|
return Je(this, void 0, void 0, function* () {
|
|
3805
|
-
return Lt(t) &&
|
|
3847
|
+
return Lt(t) && bs(t.dataTransfer) ? ks(t.dataTransfer, t.type) : xs(t) ? ws(t) : Array.isArray(t) && t.every((e) => "getFile" in e && typeof e.getFile == "function") ? _s(t) : [];
|
|
3806
3848
|
});
|
|
3807
3849
|
}
|
|
3808
|
-
function
|
|
3850
|
+
function bs(t) {
|
|
3809
3851
|
return Lt(t);
|
|
3810
3852
|
}
|
|
3811
|
-
function
|
|
3853
|
+
function xs(t) {
|
|
3812
3854
|
return Lt(t) && Lt(t.target);
|
|
3813
3855
|
}
|
|
3814
3856
|
function Lt(t) {
|
|
3815
3857
|
return typeof t == "object" && t !== null;
|
|
3816
3858
|
}
|
|
3817
|
-
function
|
|
3818
|
-
return
|
|
3859
|
+
function ws(t) {
|
|
3860
|
+
return Lr(t.target.files).map((e) => it(e));
|
|
3819
3861
|
}
|
|
3820
|
-
function
|
|
3862
|
+
function _s(t) {
|
|
3821
3863
|
return Je(this, void 0, void 0, function* () {
|
|
3822
|
-
return (yield Promise.all(t.map((r) => r.getFile()))).map((r) =>
|
|
3864
|
+
return (yield Promise.all(t.map((r) => r.getFile()))).map((r) => it(r));
|
|
3823
3865
|
});
|
|
3824
3866
|
}
|
|
3825
|
-
function
|
|
3867
|
+
function ks(t, e) {
|
|
3826
3868
|
return Je(this, void 0, void 0, function* () {
|
|
3827
3869
|
if (t.items) {
|
|
3828
|
-
const r =
|
|
3870
|
+
const r = Lr(t.items).filter((a) => a.kind === "file");
|
|
3829
3871
|
if (e !== "drop")
|
|
3830
3872
|
return r;
|
|
3831
|
-
const n = yield Promise.all(r.map(
|
|
3832
|
-
return
|
|
3873
|
+
const n = yield Promise.all(r.map(Ss));
|
|
3874
|
+
return qn(Za(n));
|
|
3833
3875
|
}
|
|
3834
|
-
return
|
|
3876
|
+
return qn(Lr(t.files).map((r) => it(r)));
|
|
3835
3877
|
});
|
|
3836
3878
|
}
|
|
3837
|
-
function
|
|
3838
|
-
return t.filter((e) =>
|
|
3879
|
+
function qn(t) {
|
|
3880
|
+
return t.filter((e) => vs.indexOf(e.name) === -1);
|
|
3839
3881
|
}
|
|
3840
|
-
function
|
|
3882
|
+
function Lr(t) {
|
|
3841
3883
|
if (t === null)
|
|
3842
3884
|
return [];
|
|
3843
3885
|
const e = [];
|
|
@@ -3847,19 +3889,19 @@ function zr(t) {
|
|
|
3847
3889
|
}
|
|
3848
3890
|
return e;
|
|
3849
3891
|
}
|
|
3850
|
-
function
|
|
3892
|
+
function Ss(t) {
|
|
3851
3893
|
if (typeof t.webkitGetAsEntry != "function")
|
|
3852
|
-
return
|
|
3894
|
+
return Mn(t);
|
|
3853
3895
|
const e = t.webkitGetAsEntry();
|
|
3854
|
-
return e && e.isDirectory ?
|
|
3896
|
+
return e && e.isDirectory ? Va(e) : Mn(t, e);
|
|
3855
3897
|
}
|
|
3856
|
-
function
|
|
3898
|
+
function Za(t) {
|
|
3857
3899
|
return t.reduce((e, r) => [
|
|
3858
3900
|
...e,
|
|
3859
|
-
...Array.isArray(r) ?
|
|
3901
|
+
...Array.isArray(r) ? Za(r) : [r]
|
|
3860
3902
|
], []);
|
|
3861
3903
|
}
|
|
3862
|
-
function
|
|
3904
|
+
function Mn(t, e) {
|
|
3863
3905
|
return Je(this, void 0, void 0, function* () {
|
|
3864
3906
|
var r;
|
|
3865
3907
|
if (globalThis.isSecureContext && typeof t.getAsFileSystemHandle == "function") {
|
|
@@ -3868,28 +3910,28 @@ function Ln(t, e) {
|
|
|
3868
3910
|
throw new Error(`${t} is not a File`);
|
|
3869
3911
|
if (i !== void 0) {
|
|
3870
3912
|
const o = yield i.getFile();
|
|
3871
|
-
return o.handle = i,
|
|
3913
|
+
return o.handle = i, it(o);
|
|
3872
3914
|
}
|
|
3873
3915
|
}
|
|
3874
3916
|
const n = t.getAsFile();
|
|
3875
3917
|
if (!n)
|
|
3876
3918
|
throw new Error(`${t} is not a File`);
|
|
3877
|
-
return
|
|
3919
|
+
return it(n, (r = e == null ? void 0 : e.fullPath) !== null && r !== void 0 ? r : void 0);
|
|
3878
3920
|
});
|
|
3879
3921
|
}
|
|
3880
|
-
function
|
|
3922
|
+
function Es(t) {
|
|
3881
3923
|
return Je(this, void 0, void 0, function* () {
|
|
3882
|
-
return t.isDirectory ?
|
|
3924
|
+
return t.isDirectory ? Va(t) : Ts(t);
|
|
3883
3925
|
});
|
|
3884
3926
|
}
|
|
3885
|
-
function
|
|
3927
|
+
function Va(t) {
|
|
3886
3928
|
const e = t.createReader();
|
|
3887
3929
|
return new Promise((r, n) => {
|
|
3888
3930
|
const a = [];
|
|
3889
3931
|
function i() {
|
|
3890
3932
|
e.readEntries((o) => Je(this, void 0, void 0, function* () {
|
|
3891
3933
|
if (o.length) {
|
|
3892
|
-
const s = Promise.all(o.map(
|
|
3934
|
+
const s = Promise.all(o.map(Es));
|
|
3893
3935
|
a.push(s), i();
|
|
3894
3936
|
} else
|
|
3895
3937
|
try {
|
|
@@ -3905,11 +3947,11 @@ function Ba(t) {
|
|
|
3905
3947
|
i();
|
|
3906
3948
|
});
|
|
3907
3949
|
}
|
|
3908
|
-
function
|
|
3950
|
+
function Ts(t) {
|
|
3909
3951
|
return Je(this, void 0, void 0, function* () {
|
|
3910
3952
|
return new Promise((e, r) => {
|
|
3911
3953
|
t.file((n) => {
|
|
3912
|
-
const a =
|
|
3954
|
+
const a = it(n, t.fullPath);
|
|
3913
3955
|
e(a);
|
|
3914
3956
|
}, (n) => {
|
|
3915
3957
|
r(n);
|
|
@@ -3917,7 +3959,7 @@ function ks(t) {
|
|
|
3917
3959
|
});
|
|
3918
3960
|
});
|
|
3919
3961
|
}
|
|
3920
|
-
var
|
|
3962
|
+
var Sr = function(t, e) {
|
|
3921
3963
|
if (t && e) {
|
|
3922
3964
|
var r = Array.isArray(e) ? e : e.split(",");
|
|
3923
3965
|
if (r.length === 0)
|
|
@@ -3930,20 +3972,20 @@ var kr = function(t, e) {
|
|
|
3930
3972
|
}
|
|
3931
3973
|
return !0;
|
|
3932
3974
|
};
|
|
3933
|
-
function
|
|
3934
|
-
return
|
|
3975
|
+
function $n(t) {
|
|
3976
|
+
return As(t) || Cs(t) || Wa(t) || Os();
|
|
3935
3977
|
}
|
|
3936
|
-
function
|
|
3978
|
+
function Os() {
|
|
3937
3979
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3938
3980
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3939
3981
|
}
|
|
3940
|
-
function
|
|
3982
|
+
function Cs(t) {
|
|
3941
3983
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
3942
3984
|
}
|
|
3943
|
-
function
|
|
3944
|
-
if (Array.isArray(t)) return
|
|
3985
|
+
function As(t) {
|
|
3986
|
+
if (Array.isArray(t)) return qr(t);
|
|
3945
3987
|
}
|
|
3946
|
-
function
|
|
3988
|
+
function Bn(t, e) {
|
|
3947
3989
|
var r = Object.keys(t);
|
|
3948
3990
|
if (Object.getOwnPropertySymbols) {
|
|
3949
3991
|
var n = Object.getOwnPropertySymbols(t);
|
|
@@ -3953,42 +3995,42 @@ function Mn(t, e) {
|
|
|
3953
3995
|
}
|
|
3954
3996
|
return r;
|
|
3955
3997
|
}
|
|
3956
|
-
function
|
|
3998
|
+
function Un(t) {
|
|
3957
3999
|
for (var e = 1; e < arguments.length; e++) {
|
|
3958
4000
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
3959
|
-
e % 2 ?
|
|
3960
|
-
|
|
3961
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) :
|
|
4001
|
+
e % 2 ? Bn(Object(r), !0).forEach(function(n) {
|
|
4002
|
+
Ha(t, n, r[n]);
|
|
4003
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Bn(Object(r)).forEach(function(n) {
|
|
3962
4004
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
3963
4005
|
});
|
|
3964
4006
|
}
|
|
3965
4007
|
return t;
|
|
3966
4008
|
}
|
|
3967
|
-
function
|
|
4009
|
+
function Ha(t, e, r) {
|
|
3968
4010
|
return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
3969
4011
|
}
|
|
3970
4012
|
function gt(t, e) {
|
|
3971
|
-
return
|
|
4013
|
+
return Ds(t) || js(t, e) || Wa(t, e) || Rs();
|
|
3972
4014
|
}
|
|
3973
|
-
function
|
|
4015
|
+
function Rs() {
|
|
3974
4016
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3975
4017
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3976
4018
|
}
|
|
3977
|
-
function
|
|
4019
|
+
function Wa(t, e) {
|
|
3978
4020
|
if (t) {
|
|
3979
|
-
if (typeof t == "string") return
|
|
4021
|
+
if (typeof t == "string") return qr(t, e);
|
|
3980
4022
|
var r = Object.prototype.toString.call(t).slice(8, -1);
|
|
3981
4023
|
if (r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set") return Array.from(t);
|
|
3982
|
-
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return
|
|
4024
|
+
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return qr(t, e);
|
|
3983
4025
|
}
|
|
3984
4026
|
}
|
|
3985
|
-
function
|
|
4027
|
+
function qr(t, e) {
|
|
3986
4028
|
(e == null || e > t.length) && (e = t.length);
|
|
3987
4029
|
for (var r = 0, n = new Array(e); r < e; r++)
|
|
3988
4030
|
n[r] = t[r];
|
|
3989
4031
|
return n;
|
|
3990
4032
|
}
|
|
3991
|
-
function
|
|
4033
|
+
function js(t, e) {
|
|
3992
4034
|
var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
3993
4035
|
if (r != null) {
|
|
3994
4036
|
var n = [], a = !0, i = !1, o, s;
|
|
@@ -4007,51 +4049,51 @@ function Cs(t, e) {
|
|
|
4007
4049
|
return n;
|
|
4008
4050
|
}
|
|
4009
4051
|
}
|
|
4010
|
-
function
|
|
4052
|
+
function Ds(t) {
|
|
4011
4053
|
if (Array.isArray(t)) return t;
|
|
4012
4054
|
}
|
|
4013
|
-
var
|
|
4055
|
+
var Ps = typeof Sr == "function" ? Sr : Sr.default, Is = "file-invalid-type", Ns = "file-too-large", Fs = "file-too-small", zs = "too-many-files", Ls = function() {
|
|
4014
4056
|
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
4057
|
return {
|
|
4016
|
-
code:
|
|
4058
|
+
code: Is,
|
|
4017
4059
|
message: "File type must be ".concat(n)
|
|
4018
4060
|
};
|
|
4019
|
-
},
|
|
4061
|
+
}, Zn = function(e) {
|
|
4020
4062
|
return {
|
|
4021
|
-
code:
|
|
4063
|
+
code: Ns,
|
|
4022
4064
|
message: "File is larger than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
|
|
4023
4065
|
};
|
|
4024
|
-
},
|
|
4066
|
+
}, Vn = function(e) {
|
|
4025
4067
|
return {
|
|
4026
|
-
code:
|
|
4068
|
+
code: Fs,
|
|
4027
4069
|
message: "File is smaller than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
|
|
4028
4070
|
};
|
|
4029
|
-
},
|
|
4030
|
-
code:
|
|
4071
|
+
}, qs = {
|
|
4072
|
+
code: zs,
|
|
4031
4073
|
message: "Too many files"
|
|
4032
4074
|
};
|
|
4033
|
-
function
|
|
4034
|
-
var r = t.type === "application/x-moz-file" ||
|
|
4035
|
-
return [r, r ? null :
|
|
4075
|
+
function Ya(t, e) {
|
|
4076
|
+
var r = t.type === "application/x-moz-file" || Ps(t, e);
|
|
4077
|
+
return [r, r ? null : Ls(e)];
|
|
4036
4078
|
}
|
|
4037
|
-
function
|
|
4079
|
+
function Ka(t, e, r) {
|
|
4038
4080
|
if (Be(t.size))
|
|
4039
4081
|
if (Be(e) && Be(r)) {
|
|
4040
|
-
if (t.size > r) return [!1,
|
|
4041
|
-
if (t.size < e) return [!1,
|
|
4082
|
+
if (t.size > r) return [!1, Zn(r)];
|
|
4083
|
+
if (t.size < e) return [!1, Vn(e)];
|
|
4042
4084
|
} else {
|
|
4043
|
-
if (Be(e) && t.size < e) return [!1,
|
|
4044
|
-
if (Be(r) && t.size > r) return [!1,
|
|
4085
|
+
if (Be(e) && t.size < e) return [!1, Vn(e)];
|
|
4086
|
+
if (Be(r) && t.size > r) return [!1, Zn(r)];
|
|
4045
4087
|
}
|
|
4046
4088
|
return [!0, null];
|
|
4047
4089
|
}
|
|
4048
4090
|
function Be(t) {
|
|
4049
4091
|
return t != null;
|
|
4050
4092
|
}
|
|
4051
|
-
function
|
|
4093
|
+
function Ms(t) {
|
|
4052
4094
|
var e = t.files, r = t.accept, n = t.minSize, a = t.maxSize, i = t.multiple, o = t.maxFiles, s = t.validator;
|
|
4053
4095
|
return !i && e.length > 1 || i && o >= 1 && e.length > o ? !1 : e.every(function(d) {
|
|
4054
|
-
var c =
|
|
4096
|
+
var c = Ya(d, r), l = gt(c, 1), u = l[0], b = Ka(d, n, a), x = gt(b, 1), f = x[0], m = s ? s(d) : null;
|
|
4055
4097
|
return u && f && !m;
|
|
4056
4098
|
});
|
|
4057
4099
|
}
|
|
@@ -4063,18 +4105,18 @@ function jt(t) {
|
|
|
4063
4105
|
return e === "Files" || e === "application/x-moz-file";
|
|
4064
4106
|
}) : !!t.target && !!t.target.files;
|
|
4065
4107
|
}
|
|
4066
|
-
function
|
|
4108
|
+
function Hn(t) {
|
|
4067
4109
|
t.preventDefault();
|
|
4068
4110
|
}
|
|
4069
|
-
function
|
|
4111
|
+
function $s(t) {
|
|
4070
4112
|
return t.indexOf("MSIE") !== -1 || t.indexOf("Trident/") !== -1;
|
|
4071
4113
|
}
|
|
4072
|
-
function
|
|
4114
|
+
function Bs(t) {
|
|
4073
4115
|
return t.indexOf("Edge/") !== -1;
|
|
4074
4116
|
}
|
|
4075
|
-
function
|
|
4117
|
+
function Us() {
|
|
4076
4118
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
4077
|
-
return
|
|
4119
|
+
return $s(t) || Bs(t);
|
|
4078
4120
|
}
|
|
4079
4121
|
function je() {
|
|
4080
4122
|
for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
|
|
@@ -4087,17 +4129,17 @@ function je() {
|
|
|
4087
4129
|
});
|
|
4088
4130
|
};
|
|
4089
4131
|
}
|
|
4090
|
-
function
|
|
4132
|
+
function Zs() {
|
|
4091
4133
|
return "showOpenFilePicker" in window;
|
|
4092
4134
|
}
|
|
4093
|
-
function
|
|
4135
|
+
function Vs(t) {
|
|
4094
4136
|
if (Be(t)) {
|
|
4095
4137
|
var e = Object.entries(t).filter(function(r) {
|
|
4096
4138
|
var n = gt(r, 2), a = n[0], i = n[1], o = !0;
|
|
4097
|
-
return
|
|
4139
|
+
return Ja(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(Ga)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), o = !1), o;
|
|
4098
4140
|
}).reduce(function(r, n) {
|
|
4099
4141
|
var a = gt(n, 2), i = a[0], o = a[1];
|
|
4100
|
-
return
|
|
4142
|
+
return Un(Un({}, r), {}, Ha({}, i, o));
|
|
4101
4143
|
}, {});
|
|
4102
4144
|
return [{
|
|
4103
4145
|
// description is required due to https://crbug.com/1264708
|
|
@@ -4107,63 +4149,63 @@ function Bs(t) {
|
|
|
4107
4149
|
}
|
|
4108
4150
|
return t;
|
|
4109
4151
|
}
|
|
4110
|
-
function
|
|
4152
|
+
function Hs(t) {
|
|
4111
4153
|
if (Be(t))
|
|
4112
4154
|
return Object.entries(t).reduce(function(e, r) {
|
|
4113
4155
|
var n = gt(r, 2), a = n[0], i = n[1];
|
|
4114
|
-
return [].concat(
|
|
4156
|
+
return [].concat($n(e), [a], $n(i));
|
|
4115
4157
|
}, []).filter(function(e) {
|
|
4116
|
-
return
|
|
4158
|
+
return Ja(e) || Ga(e);
|
|
4117
4159
|
}).join(",");
|
|
4118
4160
|
}
|
|
4119
|
-
function
|
|
4161
|
+
function Ws(t) {
|
|
4120
4162
|
return t instanceof DOMException && (t.name === "AbortError" || t.code === t.ABORT_ERR);
|
|
4121
4163
|
}
|
|
4122
|
-
function
|
|
4164
|
+
function Ys(t) {
|
|
4123
4165
|
return t instanceof DOMException && (t.name === "SecurityError" || t.code === t.SECURITY_ERR);
|
|
4124
4166
|
}
|
|
4125
|
-
function
|
|
4167
|
+
function Ja(t) {
|
|
4126
4168
|
return t === "audio/*" || t === "video/*" || t === "image/*" || t === "text/*" || t === "application/*" || /\w+\/[-+.\w]+/g.test(t);
|
|
4127
4169
|
}
|
|
4128
|
-
function
|
|
4170
|
+
function Ga(t) {
|
|
4129
4171
|
return /^.*\.[\w]+$/.test(t);
|
|
4130
4172
|
}
|
|
4131
|
-
var
|
|
4132
|
-
function
|
|
4133
|
-
return
|
|
4173
|
+
var Ks = ["children"], Js = ["open"], Gs = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Xs = ["refKey", "onChange", "onClick"];
|
|
4174
|
+
function Qs(t) {
|
|
4175
|
+
return rc(t) || tc(t) || Xa(t) || ec();
|
|
4134
4176
|
}
|
|
4135
|
-
function
|
|
4177
|
+
function ec() {
|
|
4136
4178
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4137
4179
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4138
4180
|
}
|
|
4139
|
-
function
|
|
4181
|
+
function tc(t) {
|
|
4140
4182
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
4141
4183
|
}
|
|
4142
|
-
function
|
|
4143
|
-
if (Array.isArray(t)) return
|
|
4184
|
+
function rc(t) {
|
|
4185
|
+
if (Array.isArray(t)) return Mr(t);
|
|
4144
4186
|
}
|
|
4145
4187
|
function Er(t, e) {
|
|
4146
|
-
return
|
|
4188
|
+
return ic(t) || ac(t, e) || Xa(t, e) || nc();
|
|
4147
4189
|
}
|
|
4148
|
-
function
|
|
4190
|
+
function nc() {
|
|
4149
4191
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4150
4192
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4151
4193
|
}
|
|
4152
|
-
function
|
|
4194
|
+
function Xa(t, e) {
|
|
4153
4195
|
if (t) {
|
|
4154
|
-
if (typeof t == "string") return
|
|
4196
|
+
if (typeof t == "string") return Mr(t, e);
|
|
4155
4197
|
var r = Object.prototype.toString.call(t).slice(8, -1);
|
|
4156
4198
|
if (r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set") return Array.from(t);
|
|
4157
|
-
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return
|
|
4199
|
+
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return Mr(t, e);
|
|
4158
4200
|
}
|
|
4159
4201
|
}
|
|
4160
|
-
function
|
|
4202
|
+
function Mr(t, e) {
|
|
4161
4203
|
(e == null || e > t.length) && (e = t.length);
|
|
4162
4204
|
for (var r = 0, n = new Array(e); r < e; r++)
|
|
4163
4205
|
n[r] = t[r];
|
|
4164
4206
|
return n;
|
|
4165
4207
|
}
|
|
4166
|
-
function
|
|
4208
|
+
function ac(t, e) {
|
|
4167
4209
|
var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
4168
4210
|
if (r != null) {
|
|
4169
4211
|
var n = [], a = !0, i = !1, o, s;
|
|
@@ -4182,10 +4224,10 @@ function tc(t, e) {
|
|
|
4182
4224
|
return n;
|
|
4183
4225
|
}
|
|
4184
4226
|
}
|
|
4185
|
-
function
|
|
4227
|
+
function ic(t) {
|
|
4186
4228
|
if (Array.isArray(t)) return t;
|
|
4187
4229
|
}
|
|
4188
|
-
function
|
|
4230
|
+
function Wn(t, e) {
|
|
4189
4231
|
var r = Object.keys(t);
|
|
4190
4232
|
if (Object.getOwnPropertySymbols) {
|
|
4191
4233
|
var n = Object.getOwnPropertySymbols(t);
|
|
@@ -4198,20 +4240,20 @@ function Vn(t, e) {
|
|
|
4198
4240
|
function ne(t) {
|
|
4199
4241
|
for (var e = 1; e < arguments.length; e++) {
|
|
4200
4242
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
4201
|
-
e % 2 ?
|
|
4202
|
-
|
|
4203
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) :
|
|
4243
|
+
e % 2 ? Wn(Object(r), !0).forEach(function(n) {
|
|
4244
|
+
$r(t, n, r[n]);
|
|
4245
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Wn(Object(r)).forEach(function(n) {
|
|
4204
4246
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
|
|
4205
4247
|
});
|
|
4206
4248
|
}
|
|
4207
4249
|
return t;
|
|
4208
4250
|
}
|
|
4209
|
-
function
|
|
4251
|
+
function $r(t, e, r) {
|
|
4210
4252
|
return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
4211
4253
|
}
|
|
4212
4254
|
function Mt(t, e) {
|
|
4213
4255
|
if (t == null) return {};
|
|
4214
|
-
var r =
|
|
4256
|
+
var r = oc(t, e), n, a;
|
|
4215
4257
|
if (Object.getOwnPropertySymbols) {
|
|
4216
4258
|
var i = Object.getOwnPropertySymbols(t);
|
|
4217
4259
|
for (a = 0; a < i.length; a++)
|
|
@@ -4219,27 +4261,27 @@ function Mt(t, e) {
|
|
|
4219
4261
|
}
|
|
4220
4262
|
return r;
|
|
4221
4263
|
}
|
|
4222
|
-
function
|
|
4264
|
+
function oc(t, e) {
|
|
4223
4265
|
if (t == null) return {};
|
|
4224
4266
|
var r = {}, n = Object.keys(t), a, i;
|
|
4225
4267
|
for (i = 0; i < n.length; i++)
|
|
4226
4268
|
a = n[i], !(e.indexOf(a) >= 0) && (r[a] = t[a]);
|
|
4227
4269
|
return r;
|
|
4228
4270
|
}
|
|
4229
|
-
var
|
|
4230
|
-
var r = t.children, n = Mt(t,
|
|
4231
|
-
return
|
|
4271
|
+
var nn = /* @__PURE__ */ Gr(function(t, e) {
|
|
4272
|
+
var r = t.children, n = Mt(t, Ks), a = sc(n), i = a.open, o = Mt(a, Js);
|
|
4273
|
+
return ki(e, function() {
|
|
4232
4274
|
return {
|
|
4233
4275
|
open: i
|
|
4234
4276
|
};
|
|
4235
|
-
}, [i]), /* @__PURE__ */
|
|
4277
|
+
}, [i]), /* @__PURE__ */ ct.createElement(Si, null, r(ne(ne({}, o), {}, {
|
|
4236
4278
|
open: i
|
|
4237
4279
|
})));
|
|
4238
4280
|
});
|
|
4239
|
-
|
|
4240
|
-
var
|
|
4281
|
+
nn.displayName = "Dropzone";
|
|
4282
|
+
var Qa = {
|
|
4241
4283
|
disabled: !1,
|
|
4242
|
-
getFilesFromEvent:
|
|
4284
|
+
getFilesFromEvent: ys,
|
|
4243
4285
|
maxSize: 1 / 0,
|
|
4244
4286
|
minSize: 0,
|
|
4245
4287
|
multiple: !0,
|
|
@@ -4253,8 +4295,8 @@ var Ja = {
|
|
|
4253
4295
|
useFsAccessApi: !1,
|
|
4254
4296
|
autoFocus: !1
|
|
4255
4297
|
};
|
|
4256
|
-
|
|
4257
|
-
|
|
4298
|
+
nn.defaultProps = Qa;
|
|
4299
|
+
nn.propTypes = {
|
|
4258
4300
|
/**
|
|
4259
4301
|
* Render function that exposes the dropzone state and prop getter fns
|
|
4260
4302
|
*
|
|
@@ -4422,7 +4464,7 @@ rn.propTypes = {
|
|
|
4422
4464
|
*/
|
|
4423
4465
|
validator: ee.func
|
|
4424
4466
|
};
|
|
4425
|
-
var
|
|
4467
|
+
var Br = {
|
|
4426
4468
|
isFocused: !1,
|
|
4427
4469
|
isFileDialogActive: !1,
|
|
4428
4470
|
isDragActive: !1,
|
|
@@ -4431,16 +4473,16 @@ var $r = {
|
|
|
4431
4473
|
acceptedFiles: [],
|
|
4432
4474
|
fileRejections: []
|
|
4433
4475
|
};
|
|
4434
|
-
function
|
|
4435
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = ne(ne({},
|
|
4436
|
-
return
|
|
4476
|
+
function sc() {
|
|
4477
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = ne(ne({}, Qa), 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, Se = et(function() {
|
|
4478
|
+
return Hs(r);
|
|
4437
4479
|
}, [r]), Ae = et(function() {
|
|
4438
|
-
return
|
|
4480
|
+
return Vs(r);
|
|
4439
4481
|
}, [r]), Ee = et(function() {
|
|
4440
|
-
return typeof h == "function" ? h :
|
|
4482
|
+
return typeof h == "function" ? h : Yn;
|
|
4441
4483
|
}, [h]), ve = et(function() {
|
|
4442
|
-
return typeof m == "function" ? m :
|
|
4443
|
-
}, [m]), G =
|
|
4484
|
+
return typeof m == "function" ? m : Yn;
|
|
4485
|
+
}, [m]), G = nt(null), ce = nt(null), re = _i(cc, Br), xe = Er(re, 2), fe = xe[0], ie = xe[1], v = fe.isFocused, _ = fe.isFileDialogActive, D = nt(typeof window < "u" && window.isSecureContext && A && Zs()), z = function() {
|
|
4444
4486
|
!D.current && _ && setTimeout(function() {
|
|
4445
4487
|
if (ce.current) {
|
|
4446
4488
|
var j = ce.current.files;
|
|
@@ -4455,25 +4497,25 @@ function ac() {
|
|
|
4455
4497
|
window.removeEventListener("focus", z, !1);
|
|
4456
4498
|
};
|
|
4457
4499
|
}, [ce, _, ve, D]);
|
|
4458
|
-
var C =
|
|
4500
|
+
var C = nt([]), U = function(j) {
|
|
4459
4501
|
G.current && G.current.contains(j.target) || (j.preventDefault(), C.current = []);
|
|
4460
4502
|
};
|
|
4461
4503
|
ht(function() {
|
|
4462
|
-
return R && (document.addEventListener("dragover",
|
|
4463
|
-
R && (document.removeEventListener("dragover",
|
|
4504
|
+
return R && (document.addEventListener("dragover", Hn, !1), document.addEventListener("drop", U, !1)), function() {
|
|
4505
|
+
R && (document.removeEventListener("dragover", Hn), document.removeEventListener("drop", U));
|
|
4464
4506
|
};
|
|
4465
4507
|
}, [G, R]), ht(function() {
|
|
4466
4508
|
return !n && K && G.current && G.current.focus(), function() {
|
|
4467
4509
|
};
|
|
4468
4510
|
}, [G, K, n]);
|
|
4469
|
-
var F =
|
|
4470
|
-
pe ? pe(
|
|
4471
|
-
}, [pe]), M =
|
|
4472
|
-
|
|
4473
|
-
if (!(qt(
|
|
4474
|
-
var oe = j.length, de = oe > 0 &&
|
|
4511
|
+
var F = ke(function(S) {
|
|
4512
|
+
pe ? pe(S) : console.error(S);
|
|
4513
|
+
}, [pe]), M = ke(function(S) {
|
|
4514
|
+
S.preventDefault(), S.persist(), Ot(S), C.current = [].concat(Qs(C.current), [S.target]), jt(S) && Promise.resolve(a(S)).then(function(j) {
|
|
4515
|
+
if (!(qt(S) && !B)) {
|
|
4516
|
+
var oe = j.length, de = oe > 0 && Ms({
|
|
4475
4517
|
files: j,
|
|
4476
|
-
accept:
|
|
4518
|
+
accept: Se,
|
|
4477
4519
|
minSize: o,
|
|
4478
4520
|
maxSize: i,
|
|
4479
4521
|
multiple: s,
|
|
@@ -4485,50 +4527,50 @@ function ac() {
|
|
|
4485
4527
|
isDragReject: _e,
|
|
4486
4528
|
isDragActive: !0,
|
|
4487
4529
|
type: "setDraggedFiles"
|
|
4488
|
-
}), c && c(
|
|
4530
|
+
}), c && c(S);
|
|
4489
4531
|
}
|
|
4490
4532
|
}).catch(function(j) {
|
|
4491
4533
|
return F(j);
|
|
4492
4534
|
});
|
|
4493
|
-
}, [a, c, F, B,
|
|
4494
|
-
|
|
4495
|
-
var j = jt(
|
|
4496
|
-
if (j &&
|
|
4535
|
+
}, [a, c, F, B, Se, o, i, s, d, ge]), H = ke(function(S) {
|
|
4536
|
+
S.preventDefault(), S.persist(), Ot(S);
|
|
4537
|
+
var j = jt(S);
|
|
4538
|
+
if (j && S.dataTransfer)
|
|
4497
4539
|
try {
|
|
4498
|
-
|
|
4540
|
+
S.dataTransfer.dropEffect = "copy";
|
|
4499
4541
|
} catch {
|
|
4500
4542
|
}
|
|
4501
|
-
return j && u && u(
|
|
4502
|
-
}, [u, B]), Y =
|
|
4503
|
-
|
|
4543
|
+
return j && u && u(S), !1;
|
|
4544
|
+
}, [u, B]), Y = ke(function(S) {
|
|
4545
|
+
S.preventDefault(), S.persist(), Ot(S);
|
|
4504
4546
|
var j = C.current.filter(function(de) {
|
|
4505
4547
|
return G.current && G.current.contains(de);
|
|
4506
|
-
}), oe = j.indexOf(
|
|
4548
|
+
}), oe = j.indexOf(S.target);
|
|
4507
4549
|
oe !== -1 && j.splice(oe, 1), C.current = j, !(j.length > 0) && (ie({
|
|
4508
4550
|
type: "setDraggedFiles",
|
|
4509
4551
|
isDragActive: !1,
|
|
4510
4552
|
isDragAccept: !1,
|
|
4511
4553
|
isDragReject: !1
|
|
4512
|
-
}), jt(
|
|
4513
|
-
}, [G, l, B]), Z =
|
|
4554
|
+
}), jt(S) && l && l(S));
|
|
4555
|
+
}, [G, l, B]), Z = ke(function(S, j) {
|
|
4514
4556
|
var oe = [], de = [];
|
|
4515
|
-
|
|
4516
|
-
var
|
|
4557
|
+
S.forEach(function(_e) {
|
|
4558
|
+
var ft = Ya(_e, Se), Qe = Er(ft, 2), or = Qe[0], sr = Qe[1], cr = Ka(_e, o, i), Ct = Er(cr, 2), lr = Ct[0], dr = Ct[1], pr = ge ? ge(_e) : null;
|
|
4517
4559
|
if (or && lr && !pr)
|
|
4518
4560
|
oe.push(_e);
|
|
4519
4561
|
else {
|
|
4520
4562
|
var fr = [sr, dr];
|
|
4521
4563
|
pr && (fr = fr.concat(pr)), de.push({
|
|
4522
4564
|
file: _e,
|
|
4523
|
-
errors: fr.filter(function(
|
|
4524
|
-
return
|
|
4565
|
+
errors: fr.filter(function(wi) {
|
|
4566
|
+
return wi;
|
|
4525
4567
|
})
|
|
4526
4568
|
});
|
|
4527
4569
|
}
|
|
4528
4570
|
}), (!s && oe.length > 1 || s && d >= 1 && oe.length > d) && (oe.forEach(function(_e) {
|
|
4529
4571
|
de.push({
|
|
4530
4572
|
file: _e,
|
|
4531
|
-
errors: [
|
|
4573
|
+
errors: [qs]
|
|
4532
4574
|
});
|
|
4533
4575
|
}), oe.splice(0)), ie({
|
|
4534
4576
|
acceptedFiles: oe,
|
|
@@ -4536,51 +4578,51 @@ function ac() {
|
|
|
4536
4578
|
isDragReject: de.length > 0,
|
|
4537
4579
|
type: "setFiles"
|
|
4538
4580
|
}), b && b(oe, de, j), de.length > 0 && f && f(de, j), oe.length > 0 && x && x(oe, j);
|
|
4539
|
-
}, [ie, s,
|
|
4540
|
-
|
|
4541
|
-
qt(
|
|
4581
|
+
}, [ie, s, Se, o, i, d, b, x, f, ge]), le = ke(function(S) {
|
|
4582
|
+
S.preventDefault(), S.persist(), Ot(S), C.current = [], jt(S) && Promise.resolve(a(S)).then(function(j) {
|
|
4583
|
+
qt(S) && !B || Z(j, S);
|
|
4542
4584
|
}).catch(function(j) {
|
|
4543
4585
|
return F(j);
|
|
4544
4586
|
}), ie({
|
|
4545
4587
|
type: "reset"
|
|
4546
4588
|
});
|
|
4547
|
-
}, [a, Z, F, B]), w =
|
|
4589
|
+
}, [a, Z, F, B]), w = ke(function() {
|
|
4548
4590
|
if (D.current) {
|
|
4549
4591
|
ie({
|
|
4550
4592
|
type: "openDialog"
|
|
4551
4593
|
}), Ee();
|
|
4552
|
-
var
|
|
4594
|
+
var S = {
|
|
4553
4595
|
multiple: s,
|
|
4554
4596
|
types: Ae
|
|
4555
4597
|
};
|
|
4556
|
-
window.showOpenFilePicker(
|
|
4598
|
+
window.showOpenFilePicker(S).then(function(j) {
|
|
4557
4599
|
return a(j);
|
|
4558
4600
|
}).then(function(j) {
|
|
4559
4601
|
Z(j, null), ie({
|
|
4560
4602
|
type: "closeDialog"
|
|
4561
4603
|
});
|
|
4562
4604
|
}).catch(function(j) {
|
|
4563
|
-
|
|
4605
|
+
Ws(j) ? (ve(j), ie({
|
|
4564
4606
|
type: "closeDialog"
|
|
4565
|
-
})) :
|
|
4607
|
+
})) : Ys(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);
|
|
4566
4608
|
});
|
|
4567
4609
|
return;
|
|
4568
4610
|
}
|
|
4569
4611
|
ce.current && (ie({
|
|
4570
4612
|
type: "openDialog"
|
|
4571
4613
|
}), Ee(), ce.current.value = null, ce.current.click());
|
|
4572
|
-
}, [ie, Ee, ve, A, Z, F, Ae, s]), we =
|
|
4573
|
-
!G.current || !G.current.isEqualNode(
|
|
4574
|
-
}, [G, w]), $e =
|
|
4614
|
+
}, [ie, Ee, ve, A, Z, F, Ae, s]), we = ke(function(S) {
|
|
4615
|
+
!G.current || !G.current.isEqualNode(S.target) || (S.key === " " || S.key === "Enter" || S.keyCode === 32 || S.keyCode === 13) && (S.preventDefault(), w());
|
|
4616
|
+
}, [G, w]), $e = ke(function() {
|
|
4575
4617
|
ie({
|
|
4576
4618
|
type: "focus"
|
|
4577
4619
|
});
|
|
4578
|
-
}, []),
|
|
4620
|
+
}, []), pt = ke(function() {
|
|
4579
4621
|
ie({
|
|
4580
4622
|
type: "blur"
|
|
4581
4623
|
});
|
|
4582
|
-
}, []),
|
|
4583
|
-
N || (
|
|
4624
|
+
}, []), dn = ke(function() {
|
|
4625
|
+
N || (Us() ? setTimeout(w, 0) : w());
|
|
4584
4626
|
}, [N, w]), Xe = function(j) {
|
|
4585
4627
|
return n ? null : j;
|
|
4586
4628
|
}, ir = function(j) {
|
|
@@ -4589,16 +4631,16 @@ function ac() {
|
|
|
4589
4631
|
return $ ? null : Xe(j);
|
|
4590
4632
|
}, Ot = function(j) {
|
|
4591
4633
|
B && j.stopPropagation();
|
|
4592
|
-
},
|
|
4634
|
+
}, yi = et(function() {
|
|
4593
4635
|
return function() {
|
|
4594
|
-
var
|
|
4595
|
-
return ne(ne(
|
|
4636
|
+
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, ft = S.onFocus, Qe = S.onBlur, or = S.onClick, sr = S.onDragEnter, cr = S.onDragOver, Ct = S.onDragLeave, lr = S.onDrop, dr = Mt(S, Gs);
|
|
4637
|
+
return ne(ne($r({
|
|
4596
4638
|
onKeyDown: ir(je(_e, we)),
|
|
4597
|
-
onFocus: ir(je(
|
|
4598
|
-
onBlur: ir(je(Qe,
|
|
4599
|
-
onClick: Xe(je(or,
|
|
4639
|
+
onFocus: ir(je(ft, $e)),
|
|
4640
|
+
onBlur: ir(je(Qe, pt)),
|
|
4641
|
+
onClick: Xe(je(or, dn)),
|
|
4600
4642
|
onDragEnter: Tt(je(sr, M)),
|
|
4601
|
-
onDragOver: Tt(je(cr,
|
|
4643
|
+
onDragOver: Tt(je(cr, H)),
|
|
4602
4644
|
onDragLeave: Tt(je(Ct, Y)),
|
|
4603
4645
|
onDrop: Tt(je(lr, le)),
|
|
4604
4646
|
role: typeof de == "string" && de !== "" ? de : "presentation"
|
|
@@ -4606,12 +4648,12 @@ function ac() {
|
|
|
4606
4648
|
tabIndex: 0
|
|
4607
4649
|
} : {}), dr);
|
|
4608
4650
|
};
|
|
4609
|
-
}, [G, we, $e,
|
|
4610
|
-
|
|
4611
|
-
}, []),
|
|
4651
|
+
}, [G, we, $e, pt, dn, M, H, Y, le, y, $, n]), bi = ke(function(S) {
|
|
4652
|
+
S.stopPropagation();
|
|
4653
|
+
}, []), xi = et(function() {
|
|
4612
4654
|
return function() {
|
|
4613
|
-
var
|
|
4614
|
-
accept:
|
|
4655
|
+
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, ft = Mt(S, Xs), Qe = $r({
|
|
4656
|
+
accept: Se,
|
|
4615
4657
|
multiple: s,
|
|
4616
4658
|
type: "file",
|
|
4617
4659
|
style: {
|
|
@@ -4627,22 +4669,22 @@ function ac() {
|
|
|
4627
4669
|
whiteSpace: "nowrap"
|
|
4628
4670
|
},
|
|
4629
4671
|
onChange: Xe(je(de, le)),
|
|
4630
|
-
onClick: Xe(je(_e,
|
|
4672
|
+
onClick: Xe(je(_e, bi)),
|
|
4631
4673
|
tabIndex: -1
|
|
4632
4674
|
}, oe, ce);
|
|
4633
|
-
return ne(ne({}, Qe),
|
|
4675
|
+
return ne(ne({}, Qe), ft);
|
|
4634
4676
|
};
|
|
4635
4677
|
}, [ce, r, s, le, n]);
|
|
4636
4678
|
return ne(ne({}, fe), {}, {
|
|
4637
4679
|
isFocused: v && !n,
|
|
4638
|
-
getRootProps:
|
|
4639
|
-
getInputProps:
|
|
4680
|
+
getRootProps: yi,
|
|
4681
|
+
getInputProps: xi,
|
|
4640
4682
|
rootRef: G,
|
|
4641
4683
|
inputRef: ce,
|
|
4642
4684
|
open: Xe(w)
|
|
4643
4685
|
});
|
|
4644
4686
|
}
|
|
4645
|
-
function
|
|
4687
|
+
function cc(t, e) {
|
|
4646
4688
|
switch (e.type) {
|
|
4647
4689
|
case "focus":
|
|
4648
4690
|
return ne(ne({}, t), {}, {
|
|
@@ -4653,7 +4695,7 @@ function ic(t, e) {
|
|
|
4653
4695
|
isFocused: !1
|
|
4654
4696
|
});
|
|
4655
4697
|
case "openDialog":
|
|
4656
|
-
return ne(ne({},
|
|
4698
|
+
return ne(ne({}, Br), {}, {
|
|
4657
4699
|
isFileDialogActive: !0
|
|
4658
4700
|
});
|
|
4659
4701
|
case "closeDialog":
|
|
@@ -4673,12 +4715,12 @@ function ic(t, e) {
|
|
|
4673
4715
|
isDragReject: e.isDragReject
|
|
4674
4716
|
});
|
|
4675
4717
|
case "reset":
|
|
4676
|
-
return ne({},
|
|
4718
|
+
return ne({}, Br);
|
|
4677
4719
|
default:
|
|
4678
4720
|
return t;
|
|
4679
4721
|
}
|
|
4680
4722
|
}
|
|
4681
|
-
function
|
|
4723
|
+
function Yn() {
|
|
4682
4724
|
}
|
|
4683
4725
|
/**
|
|
4684
4726
|
* @license lucide-react v0.563.0 - ISC
|
|
@@ -4686,21 +4728,21 @@ function Wn() {
|
|
|
4686
4728
|
* This source code is licensed under the ISC license.
|
|
4687
4729
|
* See the LICENSE file in the root directory of this source tree.
|
|
4688
4730
|
*/
|
|
4689
|
-
const
|
|
4731
|
+
const ei = (...t) => t.filter((e, r, n) => !!e && e.trim() !== "" && n.indexOf(e) === r).join(" ").trim();
|
|
4690
4732
|
/**
|
|
4691
4733
|
* @license lucide-react v0.563.0 - ISC
|
|
4692
4734
|
*
|
|
4693
4735
|
* This source code is licensed under the ISC license.
|
|
4694
4736
|
* See the LICENSE file in the root directory of this source tree.
|
|
4695
4737
|
*/
|
|
4696
|
-
const
|
|
4738
|
+
const lc = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
4697
4739
|
/**
|
|
4698
4740
|
* @license lucide-react v0.563.0 - ISC
|
|
4699
4741
|
*
|
|
4700
4742
|
* This source code is licensed under the ISC license.
|
|
4701
4743
|
* See the LICENSE file in the root directory of this source tree.
|
|
4702
4744
|
*/
|
|
4703
|
-
const
|
|
4745
|
+
const dc = (t) => t.replace(
|
|
4704
4746
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
4705
4747
|
(e, r, n) => n ? n.toUpperCase() : r.toLowerCase()
|
|
4706
4748
|
);
|
|
@@ -4710,8 +4752,8 @@ const sc = (t) => t.replace(
|
|
|
4710
4752
|
* This source code is licensed under the ISC license.
|
|
4711
4753
|
* See the LICENSE file in the root directory of this source tree.
|
|
4712
4754
|
*/
|
|
4713
|
-
const
|
|
4714
|
-
const e =
|
|
4755
|
+
const Kn = (t) => {
|
|
4756
|
+
const e = dc(t);
|
|
4715
4757
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
4716
4758
|
};
|
|
4717
4759
|
/**
|
|
@@ -4720,7 +4762,7 @@ const Hn = (t) => {
|
|
|
4720
4762
|
* This source code is licensed under the ISC license.
|
|
4721
4763
|
* See the LICENSE file in the root directory of this source tree.
|
|
4722
4764
|
*/
|
|
4723
|
-
var
|
|
4765
|
+
var pc = {
|
|
4724
4766
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4725
4767
|
width: 24,
|
|
4726
4768
|
height: 24,
|
|
@@ -4737,7 +4779,7 @@ var cc = {
|
|
|
4737
4779
|
* This source code is licensed under the ISC license.
|
|
4738
4780
|
* See the LICENSE file in the root directory of this source tree.
|
|
4739
4781
|
*/
|
|
4740
|
-
const
|
|
4782
|
+
const fc = (t) => {
|
|
4741
4783
|
for (const e in t)
|
|
4742
4784
|
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
4743
4785
|
return !0;
|
|
@@ -4749,7 +4791,7 @@ const lc = (t) => {
|
|
|
4749
4791
|
* This source code is licensed under the ISC license.
|
|
4750
4792
|
* See the LICENSE file in the root directory of this source tree.
|
|
4751
4793
|
*/
|
|
4752
|
-
const
|
|
4794
|
+
const uc = Gr(
|
|
4753
4795
|
({
|
|
4754
4796
|
color: t = "currentColor",
|
|
4755
4797
|
size: e = 24,
|
|
@@ -4759,21 +4801,21 @@ const dc = Jr(
|
|
|
4759
4801
|
children: i,
|
|
4760
4802
|
iconNode: o,
|
|
4761
4803
|
...s
|
|
4762
|
-
}, d) =>
|
|
4804
|
+
}, d) => jr(
|
|
4763
4805
|
"svg",
|
|
4764
4806
|
{
|
|
4765
4807
|
ref: d,
|
|
4766
|
-
...
|
|
4808
|
+
...pc,
|
|
4767
4809
|
width: e,
|
|
4768
4810
|
height: e,
|
|
4769
4811
|
stroke: t,
|
|
4770
4812
|
strokeWidth: n ? Number(r) * 24 / Number(e) : r,
|
|
4771
|
-
className:
|
|
4772
|
-
...!i && !
|
|
4813
|
+
className: ei("lucide", a),
|
|
4814
|
+
...!i && !fc(s) && { "aria-hidden": "true" },
|
|
4773
4815
|
...s
|
|
4774
4816
|
},
|
|
4775
4817
|
[
|
|
4776
|
-
...o.map(([c, l]) =>
|
|
4818
|
+
...o.map(([c, l]) => jr(c, l)),
|
|
4777
4819
|
...Array.isArray(i) ? i : [i]
|
|
4778
4820
|
]
|
|
4779
4821
|
)
|
|
@@ -4785,19 +4827,19 @@ const dc = Jr(
|
|
|
4785
4827
|
* See the LICENSE file in the root directory of this source tree.
|
|
4786
4828
|
*/
|
|
4787
4829
|
const Me = (t, e) => {
|
|
4788
|
-
const r =
|
|
4789
|
-
({ className: n, ...a }, i) =>
|
|
4830
|
+
const r = Gr(
|
|
4831
|
+
({ className: n, ...a }, i) => jr(uc, {
|
|
4790
4832
|
ref: i,
|
|
4791
4833
|
iconNode: e,
|
|
4792
|
-
className:
|
|
4793
|
-
`lucide-${
|
|
4834
|
+
className: ei(
|
|
4835
|
+
`lucide-${lc(Kn(t))}`,
|
|
4794
4836
|
`lucide-${t}`,
|
|
4795
4837
|
n
|
|
4796
4838
|
),
|
|
4797
4839
|
...a
|
|
4798
4840
|
})
|
|
4799
4841
|
);
|
|
4800
|
-
return r.displayName =
|
|
4842
|
+
return r.displayName = Kn(t), r;
|
|
4801
4843
|
};
|
|
4802
4844
|
/**
|
|
4803
4845
|
* @license lucide-react v0.563.0 - ISC
|
|
@@ -4805,53 +4847,53 @@ const Me = (t, e) => {
|
|
|
4805
4847
|
* This source code is licensed under the ISC license.
|
|
4806
4848
|
* See the LICENSE file in the root directory of this source tree.
|
|
4807
4849
|
*/
|
|
4808
|
-
const
|
|
4850
|
+
const mc = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], dd = Me("chevron-right", mc);
|
|
4809
4851
|
/**
|
|
4810
4852
|
* @license lucide-react v0.563.0 - ISC
|
|
4811
4853
|
*
|
|
4812
4854
|
* This source code is licensed under the ISC license.
|
|
4813
4855
|
* See the LICENSE file in the root directory of this source tree.
|
|
4814
4856
|
*/
|
|
4815
|
-
const
|
|
4857
|
+
const hc = [
|
|
4816
4858
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
4817
4859
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
4818
4860
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
4819
|
-
],
|
|
4861
|
+
], pd = Me("circle-alert", hc);
|
|
4820
4862
|
/**
|
|
4821
4863
|
* @license lucide-react v0.563.0 - ISC
|
|
4822
4864
|
*
|
|
4823
4865
|
* This source code is licensed under the ISC license.
|
|
4824
4866
|
* See the LICENSE file in the root directory of this source tree.
|
|
4825
4867
|
*/
|
|
4826
|
-
const
|
|
4868
|
+
const gc = [
|
|
4827
4869
|
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
|
|
4828
4870
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
4829
|
-
],
|
|
4871
|
+
], fd = Me("circle-check-big", gc);
|
|
4830
4872
|
/**
|
|
4831
4873
|
* @license lucide-react v0.563.0 - ISC
|
|
4832
4874
|
*
|
|
4833
4875
|
* This source code is licensed under the ISC license.
|
|
4834
4876
|
* See the LICENSE file in the root directory of this source tree.
|
|
4835
4877
|
*/
|
|
4836
|
-
const
|
|
4878
|
+
const vc = [
|
|
4837
4879
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
4838
4880
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
4839
4881
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
4840
|
-
],
|
|
4882
|
+
], ud = Me("circle-x", vc);
|
|
4841
4883
|
/**
|
|
4842
4884
|
* @license lucide-react v0.563.0 - ISC
|
|
4843
4885
|
*
|
|
4844
4886
|
* This source code is licensed under the ISC license.
|
|
4845
4887
|
* See the LICENSE file in the root directory of this source tree.
|
|
4846
4888
|
*/
|
|
4847
|
-
const
|
|
4889
|
+
const yc = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], md = Me("loader-circle", yc);
|
|
4848
4890
|
/**
|
|
4849
4891
|
* @license lucide-react v0.563.0 - ISC
|
|
4850
4892
|
*
|
|
4851
4893
|
* This source code is licensed under the ISC license.
|
|
4852
4894
|
* See the LICENSE file in the root directory of this source tree.
|
|
4853
4895
|
*/
|
|
4854
|
-
const
|
|
4896
|
+
const bc = [
|
|
4855
4897
|
[
|
|
4856
4898
|
"path",
|
|
4857
4899
|
{
|
|
@@ -4861,42 +4903,42 @@ const gc = [
|
|
|
4861
4903
|
],
|
|
4862
4904
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
4863
4905
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
4864
|
-
],
|
|
4906
|
+
], hd = Me("triangle-alert", bc);
|
|
4865
4907
|
/**
|
|
4866
4908
|
* @license lucide-react v0.563.0 - ISC
|
|
4867
4909
|
*
|
|
4868
4910
|
* This source code is licensed under the ISC license.
|
|
4869
4911
|
* See the LICENSE file in the root directory of this source tree.
|
|
4870
4912
|
*/
|
|
4871
|
-
const
|
|
4913
|
+
const xc = [
|
|
4872
4914
|
["path", { d: "M12 3v12", key: "1x0j5s" }],
|
|
4873
4915
|
["path", { d: "m17 8-5-5-5 5", key: "7q97r8" }],
|
|
4874
4916
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }]
|
|
4875
|
-
],
|
|
4917
|
+
], gd = Me("upload", xc);
|
|
4876
4918
|
/**
|
|
4877
4919
|
* @license lucide-react v0.563.0 - ISC
|
|
4878
4920
|
*
|
|
4879
4921
|
* This source code is licensed under the ISC license.
|
|
4880
4922
|
* See the LICENSE file in the root directory of this source tree.
|
|
4881
4923
|
*/
|
|
4882
|
-
const
|
|
4924
|
+
const wc = [
|
|
4883
4925
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
4884
4926
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
4885
|
-
],
|
|
4886
|
-
function
|
|
4927
|
+
], vd = Me("x", wc);
|
|
4928
|
+
function ti(t) {
|
|
4887
4929
|
var e, r, n = "";
|
|
4888
4930
|
if (typeof t == "string" || typeof t == "number") n += t;
|
|
4889
4931
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
4890
4932
|
var a = t.length;
|
|
4891
|
-
for (e = 0; e < a; e++) t[e] && (r =
|
|
4933
|
+
for (e = 0; e < a; e++) t[e] && (r = ti(t[e])) && (n && (n += " "), n += r);
|
|
4892
4934
|
} else for (r in t) t[r] && (n && (n += " "), n += r);
|
|
4893
4935
|
return n;
|
|
4894
4936
|
}
|
|
4895
|
-
function
|
|
4896
|
-
for (var t, e, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (e =
|
|
4937
|
+
function yd() {
|
|
4938
|
+
for (var t, e, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (e = ti(t)) && (n && (n += " "), n += e);
|
|
4897
4939
|
return n;
|
|
4898
4940
|
}
|
|
4899
|
-
const
|
|
4941
|
+
const _c = {}, Jn = (t) => {
|
|
4900
4942
|
let e;
|
|
4901
4943
|
const r = /* @__PURE__ */ new Set(), n = (l, u) => {
|
|
4902
4944
|
const b = typeof l == "function" ? l(e) : l;
|
|
@@ -4905,13 +4947,13 @@ const bc = {}, Yn = (t) => {
|
|
|
4905
4947
|
e = u ?? (typeof b != "object" || b === null) ? b : Object.assign({}, e, b), r.forEach((f) => f(e, x));
|
|
4906
4948
|
}
|
|
4907
4949
|
}, a = () => e, d = { setState: n, getState: a, getInitialState: () => c, subscribe: (l) => (r.add(l), () => r.delete(l)), destroy: () => {
|
|
4908
|
-
(
|
|
4950
|
+
(_c ? "production" : void 0) !== "production" && console.warn(
|
|
4909
4951
|
"[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
4952
|
), r.clear();
|
|
4911
4953
|
} }, c = e = t(n, a, d);
|
|
4912
4954
|
return d;
|
|
4913
|
-
},
|
|
4914
|
-
var
|
|
4955
|
+
}, kc = (t) => t ? Jn(t) : Jn;
|
|
4956
|
+
var Ur = { exports: {} }, Tr = {}, Dt = { exports: {} }, Or = {};
|
|
4915
4957
|
/**
|
|
4916
4958
|
* @license React
|
|
4917
4959
|
* use-sync-external-store-shim.production.js
|
|
@@ -4921,11 +4963,11 @@ var Br = { exports: {} }, Sr = {}, Dt = { exports: {} }, Tr = {};
|
|
|
4921
4963
|
* This source code is licensed under the MIT license found in the
|
|
4922
4964
|
* LICENSE file in the root directory of this source tree.
|
|
4923
4965
|
*/
|
|
4924
|
-
var
|
|
4925
|
-
function
|
|
4926
|
-
if (
|
|
4927
|
-
|
|
4928
|
-
var t =
|
|
4966
|
+
var Gn;
|
|
4967
|
+
function Sc() {
|
|
4968
|
+
if (Gn) return Or;
|
|
4969
|
+
Gn = 1;
|
|
4970
|
+
var t = ct;
|
|
4929
4971
|
function e(u, b) {
|
|
4930
4972
|
return u === b && (u !== 0 || 1 / u === 1 / b) || u !== u && b !== b;
|
|
4931
4973
|
}
|
|
@@ -4960,9 +5002,9 @@ function wc() {
|
|
|
4960
5002
|
return b();
|
|
4961
5003
|
}
|
|
4962
5004
|
var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? c : s;
|
|
4963
|
-
return
|
|
5005
|
+
return Or.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : l, Or;
|
|
4964
5006
|
}
|
|
4965
|
-
var
|
|
5007
|
+
var Cr = {};
|
|
4966
5008
|
/**
|
|
4967
5009
|
* @license React
|
|
4968
5010
|
* use-sync-external-store-shim.development.js
|
|
@@ -4972,9 +5014,9 @@ var Or = {};
|
|
|
4972
5014
|
* This source code is licensed under the MIT license found in the
|
|
4973
5015
|
* LICENSE file in the root directory of this source tree.
|
|
4974
5016
|
*/
|
|
4975
|
-
var
|
|
4976
|
-
function
|
|
4977
|
-
return
|
|
5017
|
+
var Xn;
|
|
5018
|
+
function Ec() {
|
|
5019
|
+
return Xn || (Xn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
4978
5020
|
function t(x, f) {
|
|
4979
5021
|
return x === f && (x !== 0 || 1 / x === 1 / f) || x !== x && f !== f;
|
|
4980
5022
|
}
|
|
@@ -5021,13 +5063,13 @@ function _c() {
|
|
|
5021
5063
|
return f();
|
|
5022
5064
|
}
|
|
5023
5065
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
5024
|
-
var a =
|
|
5025
|
-
|
|
5026
|
-
}()),
|
|
5066
|
+
var a = ct, i = typeof Object.is == "function" ? Object.is : t, o = a.useState, s = a.useEffect, d = a.useLayoutEffect, c = a.useDebugValue, l = !1, u = !1, b = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? n : e;
|
|
5067
|
+
Cr.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : b, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
5068
|
+
}()), Cr;
|
|
5027
5069
|
}
|
|
5028
|
-
var
|
|
5029
|
-
function
|
|
5030
|
-
return
|
|
5070
|
+
var Qn;
|
|
5071
|
+
function ri() {
|
|
5072
|
+
return Qn || (Qn = 1, process.env.NODE_ENV === "production" ? Dt.exports = Sc() : Dt.exports = Ec()), Dt.exports;
|
|
5031
5073
|
}
|
|
5032
5074
|
/**
|
|
5033
5075
|
* @license React
|
|
@@ -5038,16 +5080,16 @@ function Qa() {
|
|
|
5038
5080
|
* This source code is licensed under the MIT license found in the
|
|
5039
5081
|
* LICENSE file in the root directory of this source tree.
|
|
5040
5082
|
*/
|
|
5041
|
-
var
|
|
5042
|
-
function
|
|
5043
|
-
if (
|
|
5044
|
-
|
|
5045
|
-
var t =
|
|
5083
|
+
var ea;
|
|
5084
|
+
function Tc() {
|
|
5085
|
+
if (ea) return Tr;
|
|
5086
|
+
ea = 1;
|
|
5087
|
+
var t = ct, e = ri();
|
|
5046
5088
|
function r(c, l) {
|
|
5047
5089
|
return c === l && (c !== 0 || 1 / c === 1 / l) || c !== c && l !== l;
|
|
5048
5090
|
}
|
|
5049
5091
|
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
|
|
5092
|
+
return Tr.useSyncExternalStoreWithSelector = function(c, l, u, b, x) {
|
|
5051
5093
|
var f = i(null);
|
|
5052
5094
|
if (f.current === null) {
|
|
5053
5095
|
var m = { hasValue: !1, value: null };
|
|
@@ -5087,9 +5129,9 @@ function kc() {
|
|
|
5087
5129
|
},
|
|
5088
5130
|
[h]
|
|
5089
5131
|
), d(h), h;
|
|
5090
|
-
},
|
|
5132
|
+
}, Tr;
|
|
5091
5133
|
}
|
|
5092
|
-
var
|
|
5134
|
+
var Ar = {};
|
|
5093
5135
|
/**
|
|
5094
5136
|
* @license React
|
|
5095
5137
|
* use-sync-external-store-shim/with-selector.development.js
|
|
@@ -5099,15 +5141,15 @@ var Cr = {};
|
|
|
5099
5141
|
* This source code is licensed under the MIT license found in the
|
|
5100
5142
|
* LICENSE file in the root directory of this source tree.
|
|
5101
5143
|
*/
|
|
5102
|
-
var
|
|
5103
|
-
function
|
|
5104
|
-
return
|
|
5144
|
+
var ta;
|
|
5145
|
+
function Oc() {
|
|
5146
|
+
return ta || (ta = 1, process.env.NODE_ENV !== "production" && function() {
|
|
5105
5147
|
function t(c, l) {
|
|
5106
5148
|
return c === l && (c !== 0 || 1 / c === 1 / l) || c !== c && l !== l;
|
|
5107
5149
|
}
|
|
5108
5150
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
5109
|
-
var e =
|
|
5110
|
-
|
|
5151
|
+
var e = ct, r = ri(), n = typeof Object.is == "function" ? Object.is : t, a = r.useSyncExternalStore, i = e.useRef, o = e.useEffect, s = e.useMemo, d = e.useDebugValue;
|
|
5152
|
+
Ar.useSyncExternalStoreWithSelector = function(c, l, u, b, x) {
|
|
5111
5153
|
var f = i(null);
|
|
5112
5154
|
if (f.current === null) {
|
|
5113
5155
|
var m = { hasValue: !1, value: null };
|
|
@@ -5149,34 +5191,34 @@ function Ec() {
|
|
|
5149
5191
|
[h]
|
|
5150
5192
|
), d(h), h;
|
|
5151
5193
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
5152
|
-
}()),
|
|
5153
|
-
}
|
|
5154
|
-
process.env.NODE_ENV === "production" ?
|
|
5155
|
-
var
|
|
5156
|
-
const
|
|
5157
|
-
let
|
|
5158
|
-
const
|
|
5159
|
-
function
|
|
5160
|
-
(
|
|
5194
|
+
}()), Ar;
|
|
5195
|
+
}
|
|
5196
|
+
process.env.NODE_ENV === "production" ? Ur.exports = Tc() : Ur.exports = Oc();
|
|
5197
|
+
var Cc = Ur.exports;
|
|
5198
|
+
const Ac = /* @__PURE__ */ $a(Cc), ni = {}, { useDebugValue: Rc } = ct, { useSyncExternalStoreWithSelector: jc } = Ac;
|
|
5199
|
+
let ra = !1;
|
|
5200
|
+
const Dc = (t) => t;
|
|
5201
|
+
function Pc(t, e = Dc, r) {
|
|
5202
|
+
(ni ? "production" : void 0) !== "production" && r && !ra && (console.warn(
|
|
5161
5203
|
"[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
|
-
),
|
|
5163
|
-
const n =
|
|
5204
|
+
), ra = !0);
|
|
5205
|
+
const n = jc(
|
|
5164
5206
|
t.subscribe,
|
|
5165
5207
|
t.getState,
|
|
5166
5208
|
t.getServerState || t.getInitialState,
|
|
5167
5209
|
e,
|
|
5168
5210
|
r
|
|
5169
5211
|
);
|
|
5170
|
-
return
|
|
5212
|
+
return Rc(n), n;
|
|
5171
5213
|
}
|
|
5172
|
-
const
|
|
5173
|
-
(
|
|
5214
|
+
const na = (t) => {
|
|
5215
|
+
(ni ? "production" : void 0) !== "production" && typeof t != "function" && console.warn(
|
|
5174
5216
|
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
5175
5217
|
);
|
|
5176
|
-
const e = typeof t == "function" ?
|
|
5218
|
+
const e = typeof t == "function" ? kc(t) : t, r = (n, a) => Pc(e, n, a);
|
|
5177
5219
|
return Object.assign(r, e), r;
|
|
5178
|
-
},
|
|
5179
|
-
var
|
|
5220
|
+
}, bd = (t) => t ? na(t) : na;
|
|
5221
|
+
var W;
|
|
5180
5222
|
(function(t) {
|
|
5181
5223
|
t.assertEqual = (a) => {
|
|
5182
5224
|
};
|
|
@@ -5212,16 +5254,16 @@ var H;
|
|
|
5212
5254
|
return a.map((o) => typeof o == "string" ? `'${o}'` : o).join(i);
|
|
5213
5255
|
}
|
|
5214
5256
|
t.joinValues = n, t.jsonStringifyReplacer = (a, i) => typeof i == "bigint" ? i.toString() : i;
|
|
5215
|
-
})(
|
|
5216
|
-
var
|
|
5257
|
+
})(W || (W = {}));
|
|
5258
|
+
var aa;
|
|
5217
5259
|
(function(t) {
|
|
5218
5260
|
t.mergeShapes = (e, r) => ({
|
|
5219
5261
|
...e,
|
|
5220
5262
|
...r
|
|
5221
5263
|
// second overwrites first
|
|
5222
5264
|
});
|
|
5223
|
-
})(
|
|
5224
|
-
const T =
|
|
5265
|
+
})(aa || (aa = {}));
|
|
5266
|
+
const T = W.arrayToEnum([
|
|
5225
5267
|
"string",
|
|
5226
5268
|
"nan",
|
|
5227
5269
|
"number",
|
|
@@ -5263,7 +5305,7 @@ const T = H.arrayToEnum([
|
|
|
5263
5305
|
default:
|
|
5264
5306
|
return T.unknown;
|
|
5265
5307
|
}
|
|
5266
|
-
}, g =
|
|
5308
|
+
}, g = W.arrayToEnum([
|
|
5267
5309
|
"invalid_type",
|
|
5268
5310
|
"invalid_literal",
|
|
5269
5311
|
"custom",
|
|
@@ -5325,7 +5367,7 @@ class ze extends Error {
|
|
|
5325
5367
|
return this.message;
|
|
5326
5368
|
}
|
|
5327
5369
|
get message() {
|
|
5328
|
-
return JSON.stringify(this.issues,
|
|
5370
|
+
return JSON.stringify(this.issues, W.jsonStringifyReplacer, 2);
|
|
5329
5371
|
}
|
|
5330
5372
|
get isEmpty() {
|
|
5331
5373
|
return this.issues.length === 0;
|
|
@@ -5345,26 +5387,26 @@ class ze extends Error {
|
|
|
5345
5387
|
}
|
|
5346
5388
|
}
|
|
5347
5389
|
ze.create = (t) => new ze(t);
|
|
5348
|
-
const
|
|
5390
|
+
const Zr = (t, e) => {
|
|
5349
5391
|
let r;
|
|
5350
5392
|
switch (t.code) {
|
|
5351
5393
|
case g.invalid_type:
|
|
5352
5394
|
t.received === T.undefined ? r = "Required" : r = `Expected ${t.expected}, received ${t.received}`;
|
|
5353
5395
|
break;
|
|
5354
5396
|
case g.invalid_literal:
|
|
5355
|
-
r = `Invalid literal value, expected ${JSON.stringify(t.expected,
|
|
5397
|
+
r = `Invalid literal value, expected ${JSON.stringify(t.expected, W.jsonStringifyReplacer)}`;
|
|
5356
5398
|
break;
|
|
5357
5399
|
case g.unrecognized_keys:
|
|
5358
|
-
r = `Unrecognized key(s) in object: ${
|
|
5400
|
+
r = `Unrecognized key(s) in object: ${W.joinValues(t.keys, ", ")}`;
|
|
5359
5401
|
break;
|
|
5360
5402
|
case g.invalid_union:
|
|
5361
5403
|
r = "Invalid input";
|
|
5362
5404
|
break;
|
|
5363
5405
|
case g.invalid_union_discriminator:
|
|
5364
|
-
r = `Invalid discriminator value. Expected ${
|
|
5406
|
+
r = `Invalid discriminator value. Expected ${W.joinValues(t.options)}`;
|
|
5365
5407
|
break;
|
|
5366
5408
|
case g.invalid_enum_value:
|
|
5367
|
-
r = `Invalid enum value. Expected ${
|
|
5409
|
+
r = `Invalid enum value. Expected ${W.joinValues(t.options)}, received '${t.received}'`;
|
|
5368
5410
|
break;
|
|
5369
5411
|
case g.invalid_arguments:
|
|
5370
5412
|
r = "Invalid function arguments";
|
|
@@ -5376,7 +5418,7 @@ const Ur = (t, e) => {
|
|
|
5376
5418
|
r = "Invalid date";
|
|
5377
5419
|
break;
|
|
5378
5420
|
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}"` :
|
|
5421
|
+
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
5422
|
break;
|
|
5381
5423
|
case g.too_small:
|
|
5382
5424
|
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 +5439,15 @@ const Ur = (t, e) => {
|
|
|
5397
5439
|
r = "Number must be finite";
|
|
5398
5440
|
break;
|
|
5399
5441
|
default:
|
|
5400
|
-
r = e.defaultError,
|
|
5442
|
+
r = e.defaultError, W.assertNever(t);
|
|
5401
5443
|
}
|
|
5402
5444
|
return { message: r };
|
|
5403
5445
|
};
|
|
5404
|
-
let
|
|
5405
|
-
function
|
|
5406
|
-
return
|
|
5446
|
+
let Ic = Zr;
|
|
5447
|
+
function Nc() {
|
|
5448
|
+
return Ic;
|
|
5407
5449
|
}
|
|
5408
|
-
const
|
|
5450
|
+
const Fc = (t) => {
|
|
5409
5451
|
const { data: e, path: r, errorMaps: n, issueData: a } = t, i = [...r, ...a.path || []], o = {
|
|
5410
5452
|
...a,
|
|
5411
5453
|
path: i
|
|
@@ -5427,7 +5469,7 @@ const Pc = (t) => {
|
|
|
5427
5469
|
};
|
|
5428
5470
|
};
|
|
5429
5471
|
function k(t, e) {
|
|
5430
|
-
const r =
|
|
5472
|
+
const r = Nc(), n = Fc({
|
|
5431
5473
|
issueData: e,
|
|
5432
5474
|
data: t.data,
|
|
5433
5475
|
path: t.path,
|
|
@@ -5438,7 +5480,7 @@ function k(t, e) {
|
|
|
5438
5480
|
// then schema-bound map if available
|
|
5439
5481
|
r,
|
|
5440
5482
|
// then global override map
|
|
5441
|
-
r ===
|
|
5483
|
+
r === Zr ? void 0 : Zr
|
|
5442
5484
|
// then global default map
|
|
5443
5485
|
].filter((a) => !!a)
|
|
5444
5486
|
});
|
|
@@ -5487,7 +5529,7 @@ class me {
|
|
|
5487
5529
|
}
|
|
5488
5530
|
const P = Object.freeze({
|
|
5489
5531
|
status: "aborted"
|
|
5490
|
-
}), mt = (t) => ({ status: "dirty", value: t }), Te = (t) => ({ status: "valid", value: t }),
|
|
5532
|
+
}), mt = (t) => ({ status: "dirty", value: t }), Te = (t) => ({ status: "valid", value: t }), ia = (t) => t.status === "aborted", oa = (t) => t.status === "dirty", ot = (t) => t.status === "valid", $t = (t) => typeof Promise < "u" && t instanceof Promise;
|
|
5491
5533
|
var O;
|
|
5492
5534
|
(function(t) {
|
|
5493
5535
|
t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
@@ -5500,8 +5542,8 @@ class Pe {
|
|
|
5500
5542
|
return this._cachedPath.length || (Array.isArray(this._key) ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
|
|
5501
5543
|
}
|
|
5502
5544
|
}
|
|
5503
|
-
const
|
|
5504
|
-
if (
|
|
5545
|
+
const sa = (t, e) => {
|
|
5546
|
+
if (ot(e))
|
|
5505
5547
|
return { success: !0, data: e.value };
|
|
5506
5548
|
if (!t.common.issues.length)
|
|
5507
5549
|
throw new Error("Validation failed but no issues detected.");
|
|
@@ -5585,7 +5627,7 @@ class V {
|
|
|
5585
5627
|
data: e,
|
|
5586
5628
|
parsedType: Le(e)
|
|
5587
5629
|
}, a = this._parseSync({ data: e, path: n.path, parent: n });
|
|
5588
|
-
return
|
|
5630
|
+
return sa(n, a);
|
|
5589
5631
|
}
|
|
5590
5632
|
"~validate"(e) {
|
|
5591
5633
|
var n, a;
|
|
@@ -5603,7 +5645,7 @@ class V {
|
|
|
5603
5645
|
if (!this["~standard"].async)
|
|
5604
5646
|
try {
|
|
5605
5647
|
const i = this._parseSync({ data: e, path: [], parent: r });
|
|
5606
|
-
return
|
|
5648
|
+
return ot(i) ? {
|
|
5607
5649
|
value: i.value
|
|
5608
5650
|
} : {
|
|
5609
5651
|
issues: r.common.issues
|
|
@@ -5614,7 +5656,7 @@ class V {
|
|
|
5614
5656
|
async: !0
|
|
5615
5657
|
};
|
|
5616
5658
|
}
|
|
5617
|
-
return this._parseAsync({ data: e, path: [], parent: r }).then((i) =>
|
|
5659
|
+
return this._parseAsync({ data: e, path: [], parent: r }).then((i) => ot(i) ? {
|
|
5618
5660
|
value: i.value
|
|
5619
5661
|
} : {
|
|
5620
5662
|
issues: r.common.issues
|
|
@@ -5639,7 +5681,7 @@ class V {
|
|
|
5639
5681
|
data: e,
|
|
5640
5682
|
parsedType: Le(e)
|
|
5641
5683
|
}, a = this._parse({ data: e, path: n.path, parent: n }), i = await ($t(a) ? a : Promise.resolve(a));
|
|
5642
|
-
return
|
|
5684
|
+
return sa(n, i);
|
|
5643
5685
|
}
|
|
5644
5686
|
refine(e, r) {
|
|
5645
5687
|
const n = (a) => typeof r == "string" || typeof r > "u" ? { message: r } : typeof r == "function" ? r(a) : r;
|
|
@@ -5710,7 +5752,7 @@ class V {
|
|
|
5710
5752
|
});
|
|
5711
5753
|
}
|
|
5712
5754
|
brand() {
|
|
5713
|
-
return new
|
|
5755
|
+
return new si({
|
|
5714
5756
|
typeName: I.ZodBranded,
|
|
5715
5757
|
type: this,
|
|
5716
5758
|
...q(this._def)
|
|
@@ -5733,7 +5775,7 @@ class V {
|
|
|
5733
5775
|
});
|
|
5734
5776
|
}
|
|
5735
5777
|
pipe(e) {
|
|
5736
|
-
return
|
|
5778
|
+
return on.create(this, e);
|
|
5737
5779
|
}
|
|
5738
5780
|
readonly() {
|
|
5739
5781
|
return Gt.create(this);
|
|
@@ -5745,28 +5787,28 @@ class V {
|
|
|
5745
5787
|
return this.safeParse(null).success;
|
|
5746
5788
|
}
|
|
5747
5789
|
}
|
|
5748
|
-
const
|
|
5749
|
-
let
|
|
5750
|
-
const
|
|
5751
|
-
function
|
|
5790
|
+
const zc = /^c[^\s-]{8,}$/i, Lc = /^[0-9a-z]+$/, qc = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Mc = /^[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, $c = /^[a-z0-9_-]{21}$/i, Bc = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Uc = /^[-+]?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)?)??$/, Zc = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Vc = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
5791
|
+
let Rr;
|
|
5792
|
+
const Hc = /^(?:(?: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])$/, Wc = /^(?:(?: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])$/, Yc = /^(([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]))$/, Kc = /^(([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])$/, Jc = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Gc = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, ai = "((\\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])))", Xc = new RegExp(`^${ai}$`);
|
|
5793
|
+
function ii(t) {
|
|
5752
5794
|
let e = "[0-5]\\d";
|
|
5753
5795
|
t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`);
|
|
5754
5796
|
const r = t.precision ? "+" : "?";
|
|
5755
5797
|
return `([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`;
|
|
5756
5798
|
}
|
|
5757
|
-
function
|
|
5758
|
-
return new RegExp(`^${
|
|
5799
|
+
function Qc(t) {
|
|
5800
|
+
return new RegExp(`^${ii(t)}$`);
|
|
5759
5801
|
}
|
|
5760
|
-
function
|
|
5761
|
-
let e = `${
|
|
5802
|
+
function el(t) {
|
|
5803
|
+
let e = `${ai}T${ii(t)}`;
|
|
5762
5804
|
const r = [];
|
|
5763
5805
|
return r.push(t.local ? "Z?" : "Z"), t.offset && r.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${r.join("|")})`, new RegExp(`^${e}$`);
|
|
5764
5806
|
}
|
|
5765
|
-
function
|
|
5766
|
-
return !!((e === "v4" || !e) &&
|
|
5807
|
+
function tl(t, e) {
|
|
5808
|
+
return !!((e === "v4" || !e) && Hc.test(t) || (e === "v6" || !e) && Yc.test(t));
|
|
5767
5809
|
}
|
|
5768
|
-
function
|
|
5769
|
-
if (!
|
|
5810
|
+
function rl(t, e) {
|
|
5811
|
+
if (!Bc.test(t))
|
|
5770
5812
|
return !1;
|
|
5771
5813
|
try {
|
|
5772
5814
|
const [r] = t.split(".");
|
|
@@ -5778,8 +5820,8 @@ function Qc(t, e) {
|
|
|
5778
5820
|
return !1;
|
|
5779
5821
|
}
|
|
5780
5822
|
}
|
|
5781
|
-
function
|
|
5782
|
-
return !!((e === "v4" || !e) &&
|
|
5823
|
+
function nl(t, e) {
|
|
5824
|
+
return !!((e === "v4" || !e) && Wc.test(t) || (e === "v6" || !e) && Kc.test(t));
|
|
5783
5825
|
}
|
|
5784
5826
|
class Ne extends V {
|
|
5785
5827
|
_parse(e) {
|
|
@@ -5830,43 +5872,43 @@ class Ne extends V {
|
|
|
5830
5872
|
message: i.message
|
|
5831
5873
|
}), n.dirty());
|
|
5832
5874
|
} else if (i.kind === "email")
|
|
5833
|
-
|
|
5875
|
+
Zc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
|
|
5834
5876
|
validation: "email",
|
|
5835
5877
|
code: g.invalid_string,
|
|
5836
5878
|
message: i.message
|
|
5837
5879
|
}), n.dirty());
|
|
5838
5880
|
else if (i.kind === "emoji")
|
|
5839
|
-
|
|
5881
|
+
Rr || (Rr = new RegExp(Vc, "u")), Rr.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
|
|
5840
5882
|
validation: "emoji",
|
|
5841
5883
|
code: g.invalid_string,
|
|
5842
5884
|
message: i.message
|
|
5843
5885
|
}), n.dirty());
|
|
5844
5886
|
else if (i.kind === "uuid")
|
|
5845
|
-
|
|
5887
|
+
Mc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
|
|
5846
5888
|
validation: "uuid",
|
|
5847
5889
|
code: g.invalid_string,
|
|
5848
5890
|
message: i.message
|
|
5849
5891
|
}), n.dirty());
|
|
5850
5892
|
else if (i.kind === "nanoid")
|
|
5851
|
-
|
|
5893
|
+
$c.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
|
|
5852
5894
|
validation: "nanoid",
|
|
5853
5895
|
code: g.invalid_string,
|
|
5854
5896
|
message: i.message
|
|
5855
5897
|
}), n.dirty());
|
|
5856
5898
|
else if (i.kind === "cuid")
|
|
5857
|
-
|
|
5899
|
+
zc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
|
|
5858
5900
|
validation: "cuid",
|
|
5859
5901
|
code: g.invalid_string,
|
|
5860
5902
|
message: i.message
|
|
5861
5903
|
}), n.dirty());
|
|
5862
5904
|
else if (i.kind === "cuid2")
|
|
5863
|
-
|
|
5905
|
+
Lc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
|
|
5864
5906
|
validation: "cuid2",
|
|
5865
5907
|
code: g.invalid_string,
|
|
5866
5908
|
message: i.message
|
|
5867
5909
|
}), n.dirty());
|
|
5868
5910
|
else if (i.kind === "ulid")
|
|
5869
|
-
|
|
5911
|
+
qc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
|
|
5870
5912
|
validation: "ulid",
|
|
5871
5913
|
code: g.invalid_string,
|
|
5872
5914
|
message: i.message
|
|
@@ -5897,43 +5939,43 @@ class Ne extends V {
|
|
|
5897
5939
|
code: g.invalid_string,
|
|
5898
5940
|
validation: { endsWith: i.value },
|
|
5899
5941
|
message: i.message
|
|
5900
|
-
}), n.dirty()) : i.kind === "datetime" ?
|
|
5942
|
+
}), n.dirty()) : i.kind === "datetime" ? el(i).test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
|
|
5901
5943
|
code: g.invalid_string,
|
|
5902
5944
|
validation: "datetime",
|
|
5903
5945
|
message: i.message
|
|
5904
|
-
}), n.dirty()) : i.kind === "date" ?
|
|
5946
|
+
}), n.dirty()) : i.kind === "date" ? Xc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
|
|
5905
5947
|
code: g.invalid_string,
|
|
5906
5948
|
validation: "date",
|
|
5907
5949
|
message: i.message
|
|
5908
|
-
}), n.dirty()) : i.kind === "time" ?
|
|
5950
|
+
}), n.dirty()) : i.kind === "time" ? Qc(i).test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
|
|
5909
5951
|
code: g.invalid_string,
|
|
5910
5952
|
validation: "time",
|
|
5911
5953
|
message: i.message
|
|
5912
|
-
}), n.dirty()) : i.kind === "duration" ?
|
|
5954
|
+
}), n.dirty()) : i.kind === "duration" ? Uc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
|
|
5913
5955
|
validation: "duration",
|
|
5914
5956
|
code: g.invalid_string,
|
|
5915
5957
|
message: i.message
|
|
5916
|
-
}), n.dirty()) : i.kind === "ip" ?
|
|
5958
|
+
}), n.dirty()) : i.kind === "ip" ? tl(e.data, i.version) || (a = this._getOrReturnCtx(e, a), k(a, {
|
|
5917
5959
|
validation: "ip",
|
|
5918
5960
|
code: g.invalid_string,
|
|
5919
5961
|
message: i.message
|
|
5920
|
-
}), n.dirty()) : i.kind === "jwt" ?
|
|
5962
|
+
}), n.dirty()) : i.kind === "jwt" ? rl(e.data, i.alg) || (a = this._getOrReturnCtx(e, a), k(a, {
|
|
5921
5963
|
validation: "jwt",
|
|
5922
5964
|
code: g.invalid_string,
|
|
5923
5965
|
message: i.message
|
|
5924
|
-
}), n.dirty()) : i.kind === "cidr" ?
|
|
5966
|
+
}), n.dirty()) : i.kind === "cidr" ? nl(e.data, i.version) || (a = this._getOrReturnCtx(e, a), k(a, {
|
|
5925
5967
|
validation: "cidr",
|
|
5926
5968
|
code: g.invalid_string,
|
|
5927
5969
|
message: i.message
|
|
5928
|
-
}), n.dirty()) : i.kind === "base64" ?
|
|
5970
|
+
}), n.dirty()) : i.kind === "base64" ? Jc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
|
|
5929
5971
|
validation: "base64",
|
|
5930
5972
|
code: g.invalid_string,
|
|
5931
5973
|
message: i.message
|
|
5932
|
-
}), n.dirty()) : i.kind === "base64url" ?
|
|
5974
|
+
}), n.dirty()) : i.kind === "base64url" ? Gc.test(e.data) || (a = this._getOrReturnCtx(e, a), k(a, {
|
|
5933
5975
|
validation: "base64url",
|
|
5934
5976
|
code: g.invalid_string,
|
|
5935
5977
|
message: i.message
|
|
5936
|
-
}), n.dirty()) :
|
|
5978
|
+
}), n.dirty()) : W.assertNever(i);
|
|
5937
5979
|
return { status: n.value, value: e.data };
|
|
5938
5980
|
}
|
|
5939
5981
|
_regex(e, r, n) {
|
|
@@ -6164,11 +6206,11 @@ Ne.create = (t) => new Ne({
|
|
|
6164
6206
|
coerce: (t == null ? void 0 : t.coerce) ?? !1,
|
|
6165
6207
|
...q(t)
|
|
6166
6208
|
});
|
|
6167
|
-
function
|
|
6209
|
+
function al(t, e) {
|
|
6168
6210
|
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
6211
|
return i % o / 10 ** a;
|
|
6170
6212
|
}
|
|
6171
|
-
class
|
|
6213
|
+
class st extends V {
|
|
6172
6214
|
constructor() {
|
|
6173
6215
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
6174
6216
|
}
|
|
@@ -6184,7 +6226,7 @@ class ot extends V {
|
|
|
6184
6226
|
let n;
|
|
6185
6227
|
const a = new me();
|
|
6186
6228
|
for (const i of this._def.checks)
|
|
6187
|
-
i.kind === "int" ?
|
|
6229
|
+
i.kind === "int" ? W.isInteger(e.data) || (n = this._getOrReturnCtx(e, n), k(n, {
|
|
6188
6230
|
code: g.invalid_type,
|
|
6189
6231
|
expected: "integer",
|
|
6190
6232
|
received: "float",
|
|
@@ -6203,14 +6245,14 @@ class ot extends V {
|
|
|
6203
6245
|
inclusive: i.inclusive,
|
|
6204
6246
|
exact: !1,
|
|
6205
6247
|
message: i.message
|
|
6206
|
-
}), a.dirty()) : i.kind === "multipleOf" ?
|
|
6248
|
+
}), a.dirty()) : i.kind === "multipleOf" ? al(e.data, i.value) !== 0 && (n = this._getOrReturnCtx(e, n), k(n, {
|
|
6207
6249
|
code: g.not_multiple_of,
|
|
6208
6250
|
multipleOf: i.value,
|
|
6209
6251
|
message: i.message
|
|
6210
6252
|
}), a.dirty()) : i.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n), k(n, {
|
|
6211
6253
|
code: g.not_finite,
|
|
6212
6254
|
message: i.message
|
|
6213
|
-
}), a.dirty()) :
|
|
6255
|
+
}), a.dirty()) : W.assertNever(i);
|
|
6214
6256
|
return { status: a.value, value: e.data };
|
|
6215
6257
|
}
|
|
6216
6258
|
gte(e, r) {
|
|
@@ -6226,7 +6268,7 @@ class ot extends V {
|
|
|
6226
6268
|
return this.setLimit("max", e, !1, O.toString(r));
|
|
6227
6269
|
}
|
|
6228
6270
|
setLimit(e, r, n, a) {
|
|
6229
|
-
return new
|
|
6271
|
+
return new st({
|
|
6230
6272
|
...this._def,
|
|
6231
6273
|
checks: [
|
|
6232
6274
|
...this._def.checks,
|
|
@@ -6240,7 +6282,7 @@ class ot extends V {
|
|
|
6240
6282
|
});
|
|
6241
6283
|
}
|
|
6242
6284
|
_addCheck(e) {
|
|
6243
|
-
return new
|
|
6285
|
+
return new st({
|
|
6244
6286
|
...this._def,
|
|
6245
6287
|
checks: [...this._def.checks, e]
|
|
6246
6288
|
});
|
|
@@ -6322,7 +6364,7 @@ class ot extends V {
|
|
|
6322
6364
|
return e;
|
|
6323
6365
|
}
|
|
6324
6366
|
get isInt() {
|
|
6325
|
-
return !!this._def.checks.find((e) => e.kind === "int" || e.kind === "multipleOf" &&
|
|
6367
|
+
return !!this._def.checks.find((e) => e.kind === "int" || e.kind === "multipleOf" && W.isInteger(e.value));
|
|
6326
6368
|
}
|
|
6327
6369
|
get isFinite() {
|
|
6328
6370
|
let e = null, r = null;
|
|
@@ -6334,7 +6376,7 @@ class ot extends V {
|
|
|
6334
6376
|
return Number.isFinite(r) && Number.isFinite(e);
|
|
6335
6377
|
}
|
|
6336
6378
|
}
|
|
6337
|
-
|
|
6379
|
+
st.create = (t) => new st({
|
|
6338
6380
|
checks: [],
|
|
6339
6381
|
typeName: I.ZodNumber,
|
|
6340
6382
|
coerce: (t == null ? void 0 : t.coerce) || !1,
|
|
@@ -6372,7 +6414,7 @@ class vt extends V {
|
|
|
6372
6414
|
code: g.not_multiple_of,
|
|
6373
6415
|
multipleOf: i.value,
|
|
6374
6416
|
message: i.message
|
|
6375
|
-
}), a.dirty()) :
|
|
6417
|
+
}), a.dirty()) : W.assertNever(i);
|
|
6376
6418
|
return { status: a.value, value: e.data };
|
|
6377
6419
|
}
|
|
6378
6420
|
_getInvalidInput(e) {
|
|
@@ -6473,7 +6515,7 @@ vt.create = (t) => new vt({
|
|
|
6473
6515
|
coerce: (t == null ? void 0 : t.coerce) ?? !1,
|
|
6474
6516
|
...q(t)
|
|
6475
6517
|
});
|
|
6476
|
-
class
|
|
6518
|
+
class Vr extends V {
|
|
6477
6519
|
_parse(e) {
|
|
6478
6520
|
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== T.boolean) {
|
|
6479
6521
|
const n = this._getOrReturnCtx(e);
|
|
@@ -6486,7 +6528,7 @@ class Zr extends V {
|
|
|
6486
6528
|
return Te(e.data);
|
|
6487
6529
|
}
|
|
6488
6530
|
}
|
|
6489
|
-
|
|
6531
|
+
Vr.create = (t) => new Vr({
|
|
6490
6532
|
typeName: I.ZodBoolean,
|
|
6491
6533
|
coerce: (t == null ? void 0 : t.coerce) || !1,
|
|
6492
6534
|
...q(t)
|
|
@@ -6524,7 +6566,7 @@ class Bt extends V {
|
|
|
6524
6566
|
exact: !1,
|
|
6525
6567
|
maximum: i.value,
|
|
6526
6568
|
type: "date"
|
|
6527
|
-
}), n.dirty()) :
|
|
6569
|
+
}), n.dirty()) : W.assertNever(i);
|
|
6528
6570
|
return {
|
|
6529
6571
|
status: n.value,
|
|
6530
6572
|
value: new Date(e.data.getTime())
|
|
@@ -6569,7 +6611,7 @@ Bt.create = (t) => new Bt({
|
|
|
6569
6611
|
typeName: I.ZodDate,
|
|
6570
6612
|
...q(t)
|
|
6571
6613
|
});
|
|
6572
|
-
class
|
|
6614
|
+
class ca extends V {
|
|
6573
6615
|
_parse(e) {
|
|
6574
6616
|
if (this._getType(e) !== T.symbol) {
|
|
6575
6617
|
const n = this._getOrReturnCtx(e);
|
|
@@ -6582,11 +6624,11 @@ class oa extends V {
|
|
|
6582
6624
|
return Te(e.data);
|
|
6583
6625
|
}
|
|
6584
6626
|
}
|
|
6585
|
-
|
|
6627
|
+
ca.create = (t) => new ca({
|
|
6586
6628
|
typeName: I.ZodSymbol,
|
|
6587
6629
|
...q(t)
|
|
6588
6630
|
});
|
|
6589
|
-
class
|
|
6631
|
+
class Hr extends V {
|
|
6590
6632
|
_parse(e) {
|
|
6591
6633
|
if (this._getType(e) !== T.undefined) {
|
|
6592
6634
|
const n = this._getOrReturnCtx(e);
|
|
@@ -6599,7 +6641,7 @@ class Vr extends V {
|
|
|
6599
6641
|
return Te(e.data);
|
|
6600
6642
|
}
|
|
6601
6643
|
}
|
|
6602
|
-
|
|
6644
|
+
Hr.create = (t) => new Hr({
|
|
6603
6645
|
typeName: I.ZodUndefined,
|
|
6604
6646
|
...q(t)
|
|
6605
6647
|
});
|
|
@@ -6620,7 +6662,7 @@ Ut.create = (t) => new Ut({
|
|
|
6620
6662
|
typeName: I.ZodNull,
|
|
6621
6663
|
...q(t)
|
|
6622
6664
|
});
|
|
6623
|
-
class
|
|
6665
|
+
class la extends V {
|
|
6624
6666
|
constructor() {
|
|
6625
6667
|
super(...arguments), this._any = !0;
|
|
6626
6668
|
}
|
|
@@ -6628,7 +6670,7 @@ class sa extends V {
|
|
|
6628
6670
|
return Te(e.data);
|
|
6629
6671
|
}
|
|
6630
6672
|
}
|
|
6631
|
-
|
|
6673
|
+
la.create = (t) => new la({
|
|
6632
6674
|
typeName: I.ZodAny,
|
|
6633
6675
|
...q(t)
|
|
6634
6676
|
});
|
|
@@ -6658,7 +6700,7 @@ qe.create = (t) => new qe({
|
|
|
6658
6700
|
typeName: I.ZodNever,
|
|
6659
6701
|
...q(t)
|
|
6660
6702
|
});
|
|
6661
|
-
class
|
|
6703
|
+
class da extends V {
|
|
6662
6704
|
_parse(e) {
|
|
6663
6705
|
if (this._getType(e) !== T.undefined) {
|
|
6664
6706
|
const n = this._getOrReturnCtx(e);
|
|
@@ -6671,7 +6713,7 @@ class ca extends V {
|
|
|
6671
6713
|
return Te(e.data);
|
|
6672
6714
|
}
|
|
6673
6715
|
}
|
|
6674
|
-
|
|
6716
|
+
da.create = (t) => new da({
|
|
6675
6717
|
typeName: I.ZodVoid,
|
|
6676
6718
|
...q(t)
|
|
6677
6719
|
});
|
|
@@ -6762,7 +6804,7 @@ function tt(t) {
|
|
|
6762
6804
|
} else return t instanceof De ? new De({
|
|
6763
6805
|
...t._def,
|
|
6764
6806
|
type: tt(t.element)
|
|
6765
|
-
}) : t instanceof Fe ? Fe.create(tt(t.unwrap())) : t instanceof Ke ? Ke.create(tt(t.unwrap())) : t instanceof
|
|
6807
|
+
}) : t instanceof Fe ? Fe.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
6808
|
}
|
|
6767
6809
|
class se extends V {
|
|
6768
6810
|
constructor() {
|
|
@@ -6771,7 +6813,7 @@ class se extends V {
|
|
|
6771
6813
|
_getCached() {
|
|
6772
6814
|
if (this._cached !== null)
|
|
6773
6815
|
return this._cached;
|
|
6774
|
-
const e = this._def.shape(), r =
|
|
6816
|
+
const e = this._def.shape(), r = W.objectKeys(e);
|
|
6775
6817
|
return this._cached = { shape: e, keys: r }, this._cached;
|
|
6776
6818
|
}
|
|
6777
6819
|
_parse(e) {
|
|
@@ -6978,7 +7020,7 @@ class se extends V {
|
|
|
6978
7020
|
}
|
|
6979
7021
|
pick(e) {
|
|
6980
7022
|
const r = {};
|
|
6981
|
-
for (const n of
|
|
7023
|
+
for (const n of W.objectKeys(e))
|
|
6982
7024
|
e[n] && this.shape[n] && (r[n] = this.shape[n]);
|
|
6983
7025
|
return new se({
|
|
6984
7026
|
...this._def,
|
|
@@ -6987,7 +7029,7 @@ class se extends V {
|
|
|
6987
7029
|
}
|
|
6988
7030
|
omit(e) {
|
|
6989
7031
|
const r = {};
|
|
6990
|
-
for (const n of
|
|
7032
|
+
for (const n of W.objectKeys(this.shape))
|
|
6991
7033
|
e[n] || (r[n] = this.shape[n]);
|
|
6992
7034
|
return new se({
|
|
6993
7035
|
...this._def,
|
|
@@ -7002,7 +7044,7 @@ class se extends V {
|
|
|
7002
7044
|
}
|
|
7003
7045
|
partial(e) {
|
|
7004
7046
|
const r = {};
|
|
7005
|
-
for (const n of
|
|
7047
|
+
for (const n of W.objectKeys(this.shape)) {
|
|
7006
7048
|
const a = this.shape[n];
|
|
7007
7049
|
e && !e[n] ? r[n] = a : r[n] = a.optional();
|
|
7008
7050
|
}
|
|
@@ -7013,7 +7055,7 @@ class se extends V {
|
|
|
7013
7055
|
}
|
|
7014
7056
|
required(e) {
|
|
7015
7057
|
const r = {};
|
|
7016
|
-
for (const n of
|
|
7058
|
+
for (const n of W.objectKeys(this.shape))
|
|
7017
7059
|
if (e && !e[n])
|
|
7018
7060
|
r[n] = this.shape[n];
|
|
7019
7061
|
else {
|
|
@@ -7028,7 +7070,7 @@ class se extends V {
|
|
|
7028
7070
|
});
|
|
7029
7071
|
}
|
|
7030
7072
|
keyof() {
|
|
7031
|
-
return
|
|
7073
|
+
return oi(W.objectKeys(this.shape));
|
|
7032
7074
|
}
|
|
7033
7075
|
}
|
|
7034
7076
|
se.create = (t, e) => new se({
|
|
@@ -7125,8 +7167,8 @@ Zt.create = (t, e) => new Zt({
|
|
|
7125
7167
|
typeName: I.ZodUnion,
|
|
7126
7168
|
...q(e)
|
|
7127
7169
|
});
|
|
7128
|
-
const Ie = (t) => t instanceof
|
|
7129
|
-
class
|
|
7170
|
+
const Ie = (t) => t instanceof Kr ? Ie(t.schema) : t instanceof Ye ? Ie(t.innerType()) : t instanceof Wt ? [t.value] : t instanceof We ? t.options : t instanceof Jr ? W.objectValues(t.enum) : t instanceof Kt ? Ie(t._def.innerType) : t instanceof Hr ? [void 0] : t instanceof Ut ? [null] : t instanceof Fe ? [void 0, ...Ie(t.unwrap())] : t instanceof Ke ? [null, ...Ie(t.unwrap())] : t instanceof si || t instanceof Gt ? Ie(t.unwrap()) : t instanceof Jt ? Ie(t._def.innerType) : [];
|
|
7171
|
+
class an extends V {
|
|
7130
7172
|
_parse(e) {
|
|
7131
7173
|
const { ctx: r } = this._processInputParams(e);
|
|
7132
7174
|
if (r.parsedType !== T.object)
|
|
@@ -7179,7 +7221,7 @@ class nn extends V {
|
|
|
7179
7221
|
a.set(s, i);
|
|
7180
7222
|
}
|
|
7181
7223
|
}
|
|
7182
|
-
return new
|
|
7224
|
+
return new an({
|
|
7183
7225
|
typeName: I.ZodDiscriminatedUnion,
|
|
7184
7226
|
discriminator: e,
|
|
7185
7227
|
options: r,
|
|
@@ -7188,14 +7230,14 @@ class nn extends V {
|
|
|
7188
7230
|
});
|
|
7189
7231
|
}
|
|
7190
7232
|
}
|
|
7191
|
-
function
|
|
7233
|
+
function Yr(t, e) {
|
|
7192
7234
|
const r = Le(t), n = Le(e);
|
|
7193
7235
|
if (t === e)
|
|
7194
7236
|
return { valid: !0, data: t };
|
|
7195
7237
|
if (r === T.object && n === T.object) {
|
|
7196
|
-
const a =
|
|
7238
|
+
const a = W.objectKeys(e), i = W.objectKeys(t).filter((s) => a.indexOf(s) !== -1), o = { ...t, ...e };
|
|
7197
7239
|
for (const s of i) {
|
|
7198
|
-
const d =
|
|
7240
|
+
const d = Yr(t[s], e[s]);
|
|
7199
7241
|
if (!d.valid)
|
|
7200
7242
|
return { valid: !1 };
|
|
7201
7243
|
o[s] = d.data;
|
|
@@ -7206,7 +7248,7 @@ function Hr(t, e) {
|
|
|
7206
7248
|
return { valid: !1 };
|
|
7207
7249
|
const a = [];
|
|
7208
7250
|
for (let i = 0; i < t.length; i++) {
|
|
7209
|
-
const o = t[i], s = e[i], d =
|
|
7251
|
+
const o = t[i], s = e[i], d = Yr(o, s);
|
|
7210
7252
|
if (!d.valid)
|
|
7211
7253
|
return { valid: !1 };
|
|
7212
7254
|
a.push(d.data);
|
|
@@ -7217,10 +7259,10 @@ function Hr(t, e) {
|
|
|
7217
7259
|
class Vt extends V {
|
|
7218
7260
|
_parse(e) {
|
|
7219
7261
|
const { status: r, ctx: n } = this._processInputParams(e), a = (i, o) => {
|
|
7220
|
-
if (
|
|
7262
|
+
if (ia(i) || ia(o))
|
|
7221
7263
|
return P;
|
|
7222
|
-
const s =
|
|
7223
|
-
return s.valid ? ((
|
|
7264
|
+
const s = Yr(i.value, o.value);
|
|
7265
|
+
return s.valid ? ((oa(i) || oa(o)) && r.dirty(), { status: r.value, value: s.data }) : (k(n, {
|
|
7224
7266
|
code: g.invalid_intersection_types
|
|
7225
7267
|
}), P);
|
|
7226
7268
|
};
|
|
@@ -7252,7 +7294,7 @@ Vt.create = (t, e, r) => new Vt({
|
|
|
7252
7294
|
typeName: I.ZodIntersection,
|
|
7253
7295
|
...q(r)
|
|
7254
7296
|
});
|
|
7255
|
-
class
|
|
7297
|
+
class He extends V {
|
|
7256
7298
|
_parse(e) {
|
|
7257
7299
|
const { status: r, ctx: n } = this._processInputParams(e);
|
|
7258
7300
|
if (n.parsedType !== T.array)
|
|
@@ -7286,23 +7328,23 @@ class We extends V {
|
|
|
7286
7328
|
return this._def.items;
|
|
7287
7329
|
}
|
|
7288
7330
|
rest(e) {
|
|
7289
|
-
return new
|
|
7331
|
+
return new He({
|
|
7290
7332
|
...this._def,
|
|
7291
7333
|
rest: e
|
|
7292
7334
|
});
|
|
7293
7335
|
}
|
|
7294
7336
|
}
|
|
7295
|
-
|
|
7337
|
+
He.create = (t, e) => {
|
|
7296
7338
|
if (!Array.isArray(t))
|
|
7297
7339
|
throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
|
|
7298
|
-
return new
|
|
7340
|
+
return new He({
|
|
7299
7341
|
items: t,
|
|
7300
7342
|
typeName: I.ZodTuple,
|
|
7301
7343
|
rest: null,
|
|
7302
7344
|
...q(e)
|
|
7303
7345
|
});
|
|
7304
7346
|
};
|
|
7305
|
-
class
|
|
7347
|
+
class Ht extends V {
|
|
7306
7348
|
get keySchema() {
|
|
7307
7349
|
return this._def.keyType;
|
|
7308
7350
|
}
|
|
@@ -7330,12 +7372,12 @@ class Wt extends V {
|
|
|
7330
7372
|
return this._def.valueType;
|
|
7331
7373
|
}
|
|
7332
7374
|
static create(e, r, n) {
|
|
7333
|
-
return r instanceof V ? new
|
|
7375
|
+
return r instanceof V ? new Ht({
|
|
7334
7376
|
keyType: e,
|
|
7335
7377
|
valueType: r,
|
|
7336
7378
|
typeName: I.ZodRecord,
|
|
7337
7379
|
...q(n)
|
|
7338
|
-
}) : new
|
|
7380
|
+
}) : new Ht({
|
|
7339
7381
|
keyType: Ne.create(),
|
|
7340
7382
|
valueType: e,
|
|
7341
7383
|
typeName: I.ZodRecord,
|
|
@@ -7343,7 +7385,7 @@ class Wt extends V {
|
|
|
7343
7385
|
});
|
|
7344
7386
|
}
|
|
7345
7387
|
}
|
|
7346
|
-
class
|
|
7388
|
+
class pa extends V {
|
|
7347
7389
|
get keySchema() {
|
|
7348
7390
|
return this._def.keyType;
|
|
7349
7391
|
}
|
|
@@ -7385,7 +7427,7 @@ class la extends V {
|
|
|
7385
7427
|
}
|
|
7386
7428
|
}
|
|
7387
7429
|
}
|
|
7388
|
-
|
|
7430
|
+
pa.create = (t, e, r) => new pa({
|
|
7389
7431
|
valueType: e,
|
|
7390
7432
|
keyType: t,
|
|
7391
7433
|
typeName: I.ZodMap,
|
|
@@ -7455,7 +7497,7 @@ yt.create = (t, e) => new yt({
|
|
|
7455
7497
|
typeName: I.ZodSet,
|
|
7456
7498
|
...q(e)
|
|
7457
7499
|
});
|
|
7458
|
-
class
|
|
7500
|
+
class Kr extends V {
|
|
7459
7501
|
get schema() {
|
|
7460
7502
|
return this._def.getter();
|
|
7461
7503
|
}
|
|
@@ -7464,12 +7506,12 @@ class Yr extends V {
|
|
|
7464
7506
|
return this._def.getter()._parse({ data: r.data, path: r.path, parent: r });
|
|
7465
7507
|
}
|
|
7466
7508
|
}
|
|
7467
|
-
|
|
7509
|
+
Kr.create = (t, e) => new Kr({
|
|
7468
7510
|
getter: t,
|
|
7469
7511
|
typeName: I.ZodLazy,
|
|
7470
7512
|
...q(e)
|
|
7471
7513
|
});
|
|
7472
|
-
class
|
|
7514
|
+
class Wt extends V {
|
|
7473
7515
|
_parse(e) {
|
|
7474
7516
|
if (e.data !== this._def.value) {
|
|
7475
7517
|
const r = this._getOrReturnCtx(e);
|
|
@@ -7485,24 +7527,24 @@ class Ht extends V {
|
|
|
7485
7527
|
return this._def.value;
|
|
7486
7528
|
}
|
|
7487
7529
|
}
|
|
7488
|
-
|
|
7530
|
+
Wt.create = (t, e) => new Wt({
|
|
7489
7531
|
value: t,
|
|
7490
7532
|
typeName: I.ZodLiteral,
|
|
7491
7533
|
...q(e)
|
|
7492
7534
|
});
|
|
7493
|
-
function
|
|
7494
|
-
return new
|
|
7535
|
+
function oi(t, e) {
|
|
7536
|
+
return new We({
|
|
7495
7537
|
values: t,
|
|
7496
7538
|
typeName: I.ZodEnum,
|
|
7497
7539
|
...q(e)
|
|
7498
7540
|
});
|
|
7499
7541
|
}
|
|
7500
|
-
class
|
|
7542
|
+
class We extends V {
|
|
7501
7543
|
_parse(e) {
|
|
7502
7544
|
if (typeof e.data != "string") {
|
|
7503
7545
|
const r = this._getOrReturnCtx(e), n = this._def.values;
|
|
7504
7546
|
return k(r, {
|
|
7505
|
-
expected:
|
|
7547
|
+
expected: W.joinValues(n),
|
|
7506
7548
|
received: r.parsedType,
|
|
7507
7549
|
code: g.invalid_type
|
|
7508
7550
|
}), P;
|
|
@@ -7539,32 +7581,32 @@ class He extends V {
|
|
|
7539
7581
|
return e;
|
|
7540
7582
|
}
|
|
7541
7583
|
extract(e, r = this._def) {
|
|
7542
|
-
return
|
|
7584
|
+
return We.create(e, {
|
|
7543
7585
|
...this._def,
|
|
7544
7586
|
...r
|
|
7545
7587
|
});
|
|
7546
7588
|
}
|
|
7547
7589
|
exclude(e, r = this._def) {
|
|
7548
|
-
return
|
|
7590
|
+
return We.create(this.options.filter((n) => !e.includes(n)), {
|
|
7549
7591
|
...this._def,
|
|
7550
7592
|
...r
|
|
7551
7593
|
});
|
|
7552
7594
|
}
|
|
7553
7595
|
}
|
|
7554
|
-
|
|
7555
|
-
class
|
|
7596
|
+
We.create = oi;
|
|
7597
|
+
class Jr extends V {
|
|
7556
7598
|
_parse(e) {
|
|
7557
|
-
const r =
|
|
7599
|
+
const r = W.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
|
|
7558
7600
|
if (n.parsedType !== T.string && n.parsedType !== T.number) {
|
|
7559
|
-
const a =
|
|
7601
|
+
const a = W.objectValues(r);
|
|
7560
7602
|
return k(n, {
|
|
7561
|
-
expected:
|
|
7603
|
+
expected: W.joinValues(a),
|
|
7562
7604
|
received: n.parsedType,
|
|
7563
7605
|
code: g.invalid_type
|
|
7564
7606
|
}), P;
|
|
7565
7607
|
}
|
|
7566
|
-
if (this._cache || (this._cache = new Set(
|
|
7567
|
-
const a =
|
|
7608
|
+
if (this._cache || (this._cache = new Set(W.getValidEnumValues(this._def.values))), !this._cache.has(e.data)) {
|
|
7609
|
+
const a = W.objectValues(r);
|
|
7568
7610
|
return k(n, {
|
|
7569
7611
|
received: n.data,
|
|
7570
7612
|
code: g.invalid_enum_value,
|
|
@@ -7577,7 +7619,7 @@ class Kr extends V {
|
|
|
7577
7619
|
return this._def.values;
|
|
7578
7620
|
}
|
|
7579
7621
|
}
|
|
7580
|
-
|
|
7622
|
+
Jr.create = (t, e) => new Jr({
|
|
7581
7623
|
values: t,
|
|
7582
7624
|
typeName: I.ZodNativeEnum,
|
|
7583
7625
|
...q(e)
|
|
@@ -7672,18 +7714,18 @@ class Ye extends V {
|
|
|
7672
7714
|
path: n.path,
|
|
7673
7715
|
parent: n
|
|
7674
7716
|
});
|
|
7675
|
-
if (!
|
|
7717
|
+
if (!ot(o))
|
|
7676
7718
|
return P;
|
|
7677
7719
|
const s = a.transform(o.value, i);
|
|
7678
7720
|
if (s instanceof Promise)
|
|
7679
7721
|
throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
|
|
7680
7722
|
return { status: r.value, value: s };
|
|
7681
7723
|
} else
|
|
7682
|
-
return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((o) =>
|
|
7724
|
+
return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((o) => ot(o) ? Promise.resolve(a.transform(o.value, i)).then((s) => ({
|
|
7683
7725
|
status: r.value,
|
|
7684
7726
|
value: s
|
|
7685
7727
|
})) : P);
|
|
7686
|
-
|
|
7728
|
+
W.assertNever(a);
|
|
7687
7729
|
}
|
|
7688
7730
|
}
|
|
7689
7731
|
Ye.create = (t, e, r) => new Ye({
|
|
@@ -7787,7 +7829,7 @@ Jt.create = (t, e) => new Jt({
|
|
|
7787
7829
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
7788
7830
|
...q(e)
|
|
7789
7831
|
});
|
|
7790
|
-
class
|
|
7832
|
+
class fa extends V {
|
|
7791
7833
|
_parse(e) {
|
|
7792
7834
|
if (this._getType(e) !== T.nan) {
|
|
7793
7835
|
const n = this._getOrReturnCtx(e);
|
|
@@ -7800,11 +7842,11 @@ class da extends V {
|
|
|
7800
7842
|
return { status: "valid", value: e.data };
|
|
7801
7843
|
}
|
|
7802
7844
|
}
|
|
7803
|
-
|
|
7845
|
+
fa.create = (t) => new fa({
|
|
7804
7846
|
typeName: I.ZodNaN,
|
|
7805
7847
|
...q(t)
|
|
7806
7848
|
});
|
|
7807
|
-
class
|
|
7849
|
+
class si extends V {
|
|
7808
7850
|
_parse(e) {
|
|
7809
7851
|
const { ctx: r } = this._processInputParams(e), n = r.data;
|
|
7810
7852
|
return this._def.type._parse({
|
|
@@ -7817,7 +7859,7 @@ class ai extends V {
|
|
|
7817
7859
|
return this._def.type;
|
|
7818
7860
|
}
|
|
7819
7861
|
}
|
|
7820
|
-
class
|
|
7862
|
+
class on extends V {
|
|
7821
7863
|
_parse(e) {
|
|
7822
7864
|
const { status: r, ctx: n } = this._processInputParams(e);
|
|
7823
7865
|
if (n.common.async)
|
|
@@ -7850,7 +7892,7 @@ class an extends V {
|
|
|
7850
7892
|
}
|
|
7851
7893
|
}
|
|
7852
7894
|
static create(e, r) {
|
|
7853
|
-
return new
|
|
7895
|
+
return new on({
|
|
7854
7896
|
in: e,
|
|
7855
7897
|
out: r,
|
|
7856
7898
|
typeName: I.ZodPipeline
|
|
@@ -7859,7 +7901,7 @@ class an extends V {
|
|
|
7859
7901
|
}
|
|
7860
7902
|
class Gt extends V {
|
|
7861
7903
|
_parse(e) {
|
|
7862
|
-
const r = this._def.innerType._parse(e), n = (a) => (
|
|
7904
|
+
const r = this._def.innerType._parse(e), n = (a) => (ot(a) && (a.value = Object.freeze(a.value)), a);
|
|
7863
7905
|
return $t(r) ? r.then((a) => n(a)) : n(r);
|
|
7864
7906
|
}
|
|
7865
7907
|
unwrap() {
|
|
@@ -7875,12 +7917,12 @@ var I;
|
|
|
7875
7917
|
(function(t) {
|
|
7876
7918
|
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
7919
|
})(I || (I = {}));
|
|
7878
|
-
const
|
|
7920
|
+
const E = Ne.create, J = st.create, Oe = Vr.create, sn = Ut.create, kt = Wr.create;
|
|
7879
7921
|
qe.create;
|
|
7880
|
-
const Ge = De.create, te = se.create,
|
|
7922
|
+
const Ge = De.create, te = se.create, cn = Zt.create, il = an.create;
|
|
7881
7923
|
Vt.create;
|
|
7882
|
-
|
|
7883
|
-
const
|
|
7924
|
+
He.create;
|
|
7925
|
+
const St = Ht.create, ar = Wt.create, he = We.create;
|
|
7884
7926
|
Yt.create;
|
|
7885
7927
|
Fe.create;
|
|
7886
7928
|
Ke.create;
|
|
@@ -7953,7 +7995,7 @@ var rt = {
|
|
|
7953
7995
|
({
|
|
7954
7996
|
...rt.colors
|
|
7955
7997
|
});
|
|
7956
|
-
var
|
|
7998
|
+
var ol = he([
|
|
7957
7999
|
"string",
|
|
7958
8000
|
"number",
|
|
7959
8001
|
"integer",
|
|
@@ -7965,7 +8007,7 @@ var nl = he([
|
|
|
7965
8007
|
"phone",
|
|
7966
8008
|
"url",
|
|
7967
8009
|
"enum"
|
|
7968
|
-
]),
|
|
8010
|
+
]), ci = he([
|
|
7969
8011
|
"required",
|
|
7970
8012
|
"email",
|
|
7971
8013
|
"phone",
|
|
@@ -7982,12 +8024,12 @@ var nl = he([
|
|
|
7982
8024
|
"enum",
|
|
7983
8025
|
"unique",
|
|
7984
8026
|
"custom"
|
|
7985
|
-
]),
|
|
7986
|
-
type:
|
|
7987
|
-
params:
|
|
7988
|
-
message:
|
|
7989
|
-
severity:
|
|
7990
|
-
}),
|
|
8027
|
+
]), li = he(["error", "warning", "info"]), sl = te({
|
|
8028
|
+
type: ci,
|
|
8029
|
+
params: St(kt()).optional(),
|
|
8030
|
+
message: E().optional(),
|
|
8031
|
+
severity: li.optional().default("error")
|
|
8032
|
+
}), cl = he([
|
|
7991
8033
|
"trim",
|
|
7992
8034
|
"lowercase",
|
|
7993
8035
|
"uppercase",
|
|
@@ -7997,27 +8039,27 @@ var nl = he([
|
|
|
7997
8039
|
"toBoolean",
|
|
7998
8040
|
"replace",
|
|
7999
8041
|
"custom"
|
|
8000
|
-
]),
|
|
8001
|
-
type:
|
|
8002
|
-
params:
|
|
8003
|
-
}),
|
|
8004
|
-
key:
|
|
8005
|
-
label:
|
|
8006
|
-
type:
|
|
8042
|
+
]), ll = te({
|
|
8043
|
+
type: cl,
|
|
8044
|
+
params: St(kt()).optional()
|
|
8045
|
+
}), dl = te({
|
|
8046
|
+
key: E().min(1).max(100),
|
|
8047
|
+
label: E().min(1).max(200),
|
|
8048
|
+
type: ol,
|
|
8007
8049
|
required: Oe().optional().default(!1),
|
|
8008
|
-
description:
|
|
8009
|
-
validators: Ge(
|
|
8010
|
-
transform:
|
|
8011
|
-
}),
|
|
8050
|
+
description: E().max(500).optional(),
|
|
8051
|
+
validators: Ge(sl).optional(),
|
|
8052
|
+
transform: ll.optional()
|
|
8053
|
+
}), pl = te({
|
|
8012
8054
|
allowExtraColumns: Oe().optional().default(!1),
|
|
8013
8055
|
skipEmptyRows: Oe().optional().default(!0),
|
|
8014
8056
|
trimWhitespace: Oe().optional().default(!0),
|
|
8015
|
-
dateFormat:
|
|
8016
|
-
uniqueKeys: Ge(
|
|
8057
|
+
dateFormat: E().optional(),
|
|
8058
|
+
uniqueKeys: Ge(E()).optional(),
|
|
8017
8059
|
maxRows: J().int().positive().optional().default(1e5)
|
|
8018
|
-
}),
|
|
8019
|
-
columns: Ge(
|
|
8020
|
-
options:
|
|
8060
|
+
}), fl = te({
|
|
8061
|
+
columns: Ge(dl).min(1),
|
|
8062
|
+
options: pl.optional()
|
|
8021
8063
|
});
|
|
8022
8064
|
he([
|
|
8023
8065
|
"created",
|
|
@@ -8034,51 +8076,51 @@ he([
|
|
|
8034
8076
|
"cancelled"
|
|
8035
8077
|
]);
|
|
8036
8078
|
te({
|
|
8037
|
-
schema:
|
|
8038
|
-
metadata:
|
|
8079
|
+
schema: fl,
|
|
8080
|
+
metadata: St(kt()).optional()
|
|
8039
8081
|
});
|
|
8040
|
-
var
|
|
8041
|
-
sourceColumn:
|
|
8042
|
-
targetKey:
|
|
8082
|
+
var ul = te({
|
|
8083
|
+
sourceColumn: E(),
|
|
8084
|
+
targetKey: E().nullable(),
|
|
8043
8085
|
confidence: J().min(0).max(1),
|
|
8044
8086
|
isAutoMapped: Oe(),
|
|
8045
|
-
reasoning:
|
|
8087
|
+
reasoning: E().optional()
|
|
8046
8088
|
});
|
|
8047
8089
|
te({
|
|
8048
|
-
sessionId:
|
|
8049
|
-
mappings: Ge(
|
|
8090
|
+
sessionId: E().uuid(),
|
|
8091
|
+
mappings: Ge(ul)
|
|
8050
8092
|
});
|
|
8051
8093
|
te({
|
|
8052
8094
|
rowIndex: J().int().nonnegative(),
|
|
8053
|
-
columnKey:
|
|
8054
|
-
value:
|
|
8055
|
-
severity:
|
|
8056
|
-
validatorType:
|
|
8057
|
-
message:
|
|
8058
|
-
suggestion:
|
|
8095
|
+
columnKey: E(),
|
|
8096
|
+
value: cn([E(), J(), Oe(), sn()]),
|
|
8097
|
+
severity: li,
|
|
8098
|
+
validatorType: ci,
|
|
8099
|
+
message: E(),
|
|
8100
|
+
suggestion: E().optional()
|
|
8059
8101
|
});
|
|
8060
8102
|
te({
|
|
8061
|
-
sessionId:
|
|
8103
|
+
sessionId: E().uuid(),
|
|
8062
8104
|
rowIndex: J().int().nonnegative(),
|
|
8063
|
-
columnKey:
|
|
8064
|
-
value:
|
|
8105
|
+
columnKey: E(),
|
|
8106
|
+
value: cn([E(), J(), Oe(), sn()])
|
|
8065
8107
|
});
|
|
8066
8108
|
te({
|
|
8067
|
-
sessionId:
|
|
8109
|
+
sessionId: E().uuid(),
|
|
8068
8110
|
updates: Ge(
|
|
8069
8111
|
te({
|
|
8070
8112
|
rowIndex: J().int().nonnegative(),
|
|
8071
|
-
columnKey:
|
|
8072
|
-
value:
|
|
8113
|
+
columnKey: E(),
|
|
8114
|
+
value: cn([E(), J(), Oe(), sn()])
|
|
8073
8115
|
})
|
|
8074
8116
|
)
|
|
8075
8117
|
});
|
|
8076
8118
|
te({
|
|
8077
|
-
sessionId:
|
|
8119
|
+
sessionId: E().uuid(),
|
|
8078
8120
|
skipInvalidRows: Oe().optional().default(!1),
|
|
8079
8121
|
acknowledgeWarnings: Oe().optional().default(!1)
|
|
8080
8122
|
});
|
|
8081
|
-
var
|
|
8123
|
+
var ml = /^[ABCEGHJ-NPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][ ]?\d[ABCEGHJ-NPRSTV-Z]\d$/i, hl = /^[A-Z]{2}\d{6}$/, di = {
|
|
8082
8124
|
AB: {
|
|
8083
8125
|
code: "AB",
|
|
8084
8126
|
name: "Alberta",
|
|
@@ -8198,9 +8240,9 @@ var pl = /^[ABCEGHJ-NPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][ ]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,
|
|
|
8198
8240
|
}
|
|
8199
8241
|
};
|
|
8200
8242
|
Object.fromEntries(
|
|
8201
|
-
Object.entries(
|
|
8243
|
+
Object.entries(di).map(([t, e]) => [t, e.name])
|
|
8202
8244
|
);
|
|
8203
|
-
var
|
|
8245
|
+
var pi = he([
|
|
8204
8246
|
"AB",
|
|
8205
8247
|
"BC",
|
|
8206
8248
|
"MB",
|
|
@@ -8214,14 +8256,14 @@ var ci = he([
|
|
|
8214
8256
|
"QC",
|
|
8215
8257
|
"SK",
|
|
8216
8258
|
"YT"
|
|
8217
|
-
]),
|
|
8218
|
-
streetLine1:
|
|
8219
|
-
streetLine2:
|
|
8220
|
-
city:
|
|
8221
|
-
province:
|
|
8222
|
-
postalCode:
|
|
8259
|
+
]), fi = te({
|
|
8260
|
+
streetLine1: E().min(1).max(200),
|
|
8261
|
+
streetLine2: E().max(200).optional(),
|
|
8262
|
+
city: E().min(1).max(100),
|
|
8263
|
+
province: pi,
|
|
8264
|
+
postalCode: E().regex(ml, "Invalid Canadian postal code format (A1A 1A1)"),
|
|
8223
8265
|
country: ar("Canada")
|
|
8224
|
-
}),
|
|
8266
|
+
}), ln = he(["passport", "drivers_license", "proof_of_address"]), gl = he(["uploaded", "processing", "completed", "failed", "requires_review"]), vl = he(["excellent", "good", "fair", "poor"]), yl = he(["tesseract", "textract", "gpt4vision"]), ui = he(["M", "F", "X"]), bl = he([
|
|
8225
8267
|
"image_manipulation",
|
|
8226
8268
|
"poor_quality",
|
|
8227
8269
|
"inconsistent_data",
|
|
@@ -8230,13 +8272,13 @@ var ci = he([
|
|
|
8230
8272
|
"suspicious_pattern",
|
|
8231
8273
|
"missing_security_features",
|
|
8232
8274
|
"document_tampering"
|
|
8233
|
-
]),
|
|
8234
|
-
type:
|
|
8235
|
-
severity:
|
|
8236
|
-
message:
|
|
8237
|
-
field:
|
|
8238
|
-
details:
|
|
8239
|
-
}),
|
|
8275
|
+
]), xl = he(["high", "medium", "low"]), wl = te({
|
|
8276
|
+
type: bl,
|
|
8277
|
+
severity: xl,
|
|
8278
|
+
message: E(),
|
|
8279
|
+
field: E().optional(),
|
|
8280
|
+
details: St(kt()).optional()
|
|
8281
|
+
}), _l = te({
|
|
8240
8282
|
fullName: J().min(0).max(1),
|
|
8241
8283
|
passportNumber: J().min(0).max(1),
|
|
8242
8284
|
dateOfBirth: J().min(0).max(1),
|
|
@@ -8245,23 +8287,23 @@ var ci = he([
|
|
|
8245
8287
|
placeOfBirth: J().min(0).max(1),
|
|
8246
8288
|
sex: J().min(0).max(1),
|
|
8247
8289
|
nationality: J().min(0).max(1)
|
|
8248
|
-
}),
|
|
8290
|
+
}), kl = te({
|
|
8249
8291
|
documentType: ar("passport"),
|
|
8250
|
-
fullName:
|
|
8251
|
-
givenNames:
|
|
8252
|
-
surname:
|
|
8253
|
-
passportNumber:
|
|
8254
|
-
dateOfBirth:
|
|
8255
|
-
dateOfIssue:
|
|
8256
|
-
dateOfExpiry:
|
|
8257
|
-
placeOfBirth:
|
|
8258
|
-
sex:
|
|
8259
|
-
nationality:
|
|
8260
|
-
photoBase64:
|
|
8261
|
-
mrzLine1:
|
|
8262
|
-
mrzLine2:
|
|
8263
|
-
confidence:
|
|
8264
|
-
}),
|
|
8292
|
+
fullName: E().min(1),
|
|
8293
|
+
givenNames: E().min(1),
|
|
8294
|
+
surname: E().min(1),
|
|
8295
|
+
passportNumber: E().regex(hl, "Invalid Canadian passport number (format: AB123456)"),
|
|
8296
|
+
dateOfBirth: E().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
|
|
8297
|
+
dateOfIssue: E().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
|
|
8298
|
+
dateOfExpiry: E().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
|
|
8299
|
+
placeOfBirth: E().min(1),
|
|
8300
|
+
sex: ui,
|
|
8301
|
+
nationality: E().min(1),
|
|
8302
|
+
photoBase64: E().optional(),
|
|
8303
|
+
mrzLine1: E().optional(),
|
|
8304
|
+
mrzLine2: E().optional(),
|
|
8305
|
+
confidence: _l
|
|
8306
|
+
}), Sl = te({
|
|
8265
8307
|
fullName: J().min(0).max(1),
|
|
8266
8308
|
licenseNumber: J().min(0).max(1),
|
|
8267
8309
|
dateOfBirth: J().min(0).max(1),
|
|
@@ -8269,35 +8311,35 @@ var ci = he([
|
|
|
8269
8311
|
address: J().min(0).max(1),
|
|
8270
8312
|
province: J().min(0).max(1),
|
|
8271
8313
|
licenseClass: J().min(0).max(1)
|
|
8272
|
-
}),
|
|
8314
|
+
}), mi = te({
|
|
8273
8315
|
documentType: ar("drivers_license"),
|
|
8274
|
-
fullName:
|
|
8275
|
-
firstName:
|
|
8276
|
-
lastName:
|
|
8277
|
-
middleName:
|
|
8278
|
-
licenseNumber:
|
|
8279
|
-
dateOfBirth:
|
|
8280
|
-
expiryDate:
|
|
8281
|
-
issueDate:
|
|
8282
|
-
address:
|
|
8283
|
-
province:
|
|
8284
|
-
licenseClass:
|
|
8285
|
-
restrictions:
|
|
8286
|
-
endorsements:
|
|
8287
|
-
sex:
|
|
8288
|
-
height:
|
|
8289
|
-
eyeColor:
|
|
8290
|
-
photoBase64:
|
|
8291
|
-
confidence:
|
|
8316
|
+
fullName: E().min(1),
|
|
8317
|
+
firstName: E().min(1),
|
|
8318
|
+
lastName: E().min(1),
|
|
8319
|
+
middleName: E().optional(),
|
|
8320
|
+
licenseNumber: E().min(1),
|
|
8321
|
+
dateOfBirth: E().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
|
|
8322
|
+
expiryDate: E().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
|
|
8323
|
+
issueDate: E().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format").optional(),
|
|
8324
|
+
address: fi,
|
|
8325
|
+
province: pi,
|
|
8326
|
+
licenseClass: E().min(1),
|
|
8327
|
+
restrictions: E().optional(),
|
|
8328
|
+
endorsements: E().optional(),
|
|
8329
|
+
sex: ui.optional(),
|
|
8330
|
+
height: E().optional(),
|
|
8331
|
+
eyeColor: E().optional(),
|
|
8332
|
+
photoBase64: E().optional(),
|
|
8333
|
+
confidence: Sl
|
|
8292
8334
|
});
|
|
8293
|
-
|
|
8294
|
-
(t) =>
|
|
8335
|
+
mi.refine(
|
|
8336
|
+
(t) => di[t.province].licenseFormat.test(t.licenseNumber),
|
|
8295
8337
|
{
|
|
8296
8338
|
message: "License number format doesn't match the province requirements",
|
|
8297
8339
|
path: ["licenseNumber"]
|
|
8298
8340
|
}
|
|
8299
8341
|
);
|
|
8300
|
-
var
|
|
8342
|
+
var El = he([
|
|
8301
8343
|
"utility_bill",
|
|
8302
8344
|
"bank_statement",
|
|
8303
8345
|
"government_letter",
|
|
@@ -8305,28 +8347,28 @@ var _l = he([
|
|
|
8305
8347
|
"lease_agreement",
|
|
8306
8348
|
"insurance_statement",
|
|
8307
8349
|
"other"
|
|
8308
|
-
]),
|
|
8350
|
+
]), Tl = te({
|
|
8309
8351
|
fullName: J().min(0).max(1),
|
|
8310
8352
|
address: J().min(0).max(1),
|
|
8311
8353
|
documentSubType: J().min(0).max(1),
|
|
8312
8354
|
issuer: J().min(0).max(1),
|
|
8313
8355
|
documentDate: J().min(0).max(1)
|
|
8314
|
-
}),
|
|
8356
|
+
}), hi = te({
|
|
8315
8357
|
documentType: ar("proof_of_address"),
|
|
8316
|
-
fullName:
|
|
8317
|
-
address:
|
|
8318
|
-
documentSubType:
|
|
8319
|
-
issuer:
|
|
8320
|
-
documentDate:
|
|
8321
|
-
accountNumber:
|
|
8358
|
+
fullName: E().min(1),
|
|
8359
|
+
address: fi,
|
|
8360
|
+
documentSubType: El,
|
|
8361
|
+
issuer: E().min(1),
|
|
8362
|
+
documentDate: E().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be in YYYY-MM-DD format"),
|
|
8363
|
+
accountNumber: E().max(4).optional(),
|
|
8322
8364
|
// Last 4 digits only
|
|
8323
8365
|
statementPeriod: te({
|
|
8324
|
-
start:
|
|
8325
|
-
end:
|
|
8366
|
+
start: E(),
|
|
8367
|
+
end: E()
|
|
8326
8368
|
}).optional(),
|
|
8327
|
-
confidence:
|
|
8369
|
+
confidence: Tl
|
|
8328
8370
|
});
|
|
8329
|
-
|
|
8371
|
+
hi.refine(
|
|
8330
8372
|
(t) => {
|
|
8331
8373
|
const e = new Date(t.documentDate);
|
|
8332
8374
|
return ((/* @__PURE__ */ new Date()).getTime() - e.getTime()) / (1e3 * 60 * 60 * 24) <= 90;
|
|
@@ -8336,10 +8378,10 @@ fi.refine(
|
|
|
8336
8378
|
path: ["documentDate"]
|
|
8337
8379
|
}
|
|
8338
8380
|
);
|
|
8339
|
-
var
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8381
|
+
var Ol = il("documentType", [
|
|
8382
|
+
kl,
|
|
8383
|
+
mi,
|
|
8384
|
+
hi
|
|
8343
8385
|
]);
|
|
8344
8386
|
he([
|
|
8345
8387
|
"created",
|
|
@@ -8351,37 +8393,37 @@ he([
|
|
|
8351
8393
|
"cancelled"
|
|
8352
8394
|
]);
|
|
8353
8395
|
te({
|
|
8354
|
-
requiredDocuments: Ge(
|
|
8355
|
-
metadata:
|
|
8396
|
+
requiredDocuments: Ge(ln).min(1),
|
|
8397
|
+
metadata: St(kt()).optional()
|
|
8356
8398
|
});
|
|
8357
8399
|
te({
|
|
8358
|
-
sessionId:
|
|
8359
|
-
documentType:
|
|
8400
|
+
sessionId: E().uuid(),
|
|
8401
|
+
documentType: ln
|
|
8360
8402
|
});
|
|
8361
8403
|
te({
|
|
8362
|
-
id:
|
|
8363
|
-
sessionId:
|
|
8364
|
-
type:
|
|
8365
|
-
status:
|
|
8366
|
-
uploadedAt:
|
|
8367
|
-
processedAt:
|
|
8368
|
-
originalFilename:
|
|
8404
|
+
id: E().uuid(),
|
|
8405
|
+
sessionId: E().uuid(),
|
|
8406
|
+
type: ln,
|
|
8407
|
+
status: gl,
|
|
8408
|
+
uploadedAt: E().datetime(),
|
|
8409
|
+
processedAt: E().datetime().optional(),
|
|
8410
|
+
originalFilename: E(),
|
|
8369
8411
|
fileSize: J().int().positive(),
|
|
8370
|
-
mimeType:
|
|
8371
|
-
s3Key:
|
|
8372
|
-
extractedData:
|
|
8412
|
+
mimeType: E(),
|
|
8413
|
+
s3Key: E(),
|
|
8414
|
+
extractedData: Ol.optional(),
|
|
8373
8415
|
confidence: J().min(0).max(1),
|
|
8374
|
-
ocrQuality:
|
|
8375
|
-
fraudFlags: Ge(
|
|
8416
|
+
ocrQuality: vl,
|
|
8417
|
+
fraudFlags: Ge(wl),
|
|
8376
8418
|
processingTimeMs: J().int().optional(),
|
|
8377
|
-
ocrProvider:
|
|
8378
|
-
aiModel:
|
|
8419
|
+
ocrProvider: yl.optional(),
|
|
8420
|
+
aiModel: E().optional()
|
|
8379
8421
|
});
|
|
8380
8422
|
te({
|
|
8381
|
-
sessionId:
|
|
8423
|
+
sessionId: E().uuid(),
|
|
8382
8424
|
acceptWarnings: Oe().optional().default(!1)
|
|
8383
8425
|
});
|
|
8384
|
-
var
|
|
8426
|
+
var ua = ["payment", "payout", "subscription"], Xt = [
|
|
8385
8427
|
"credit_card",
|
|
8386
8428
|
"digital_cheque",
|
|
8387
8429
|
"etransfer_request_money",
|
|
@@ -8399,7 +8441,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
|
|
|
8399
8441
|
"rtp_payout",
|
|
8400
8442
|
"ach_payout",
|
|
8401
8443
|
"wire_transfer"
|
|
8402
|
-
],
|
|
8444
|
+
], ma = ["digital", "physical"], ha = ["daily", "weekly", "monthly", "yearly"], gi = [
|
|
8403
8445
|
{
|
|
8404
8446
|
key: "sid",
|
|
8405
8447
|
label: "Site ID",
|
|
@@ -8422,8 +8464,8 @@ var pa = ["payment", "payout", "subscription"], Xt = [
|
|
|
8422
8464
|
{ type: "required", message: "Transaction type is required" },
|
|
8423
8465
|
{
|
|
8424
8466
|
type: "enum",
|
|
8425
|
-
params: { values:
|
|
8426
|
-
message: `Transaction type must be one of: ${
|
|
8467
|
+
params: { values: ua },
|
|
8468
|
+
message: `Transaction type must be one of: ${ua.join(", ")}`
|
|
8427
8469
|
}
|
|
8428
8470
|
],
|
|
8429
8471
|
transform: { type: "lowercase" }
|
|
@@ -8512,8 +8554,8 @@ var pa = ["payment", "payout", "subscription"], Xt = [
|
|
|
8512
8554
|
{ type: "required", message: "Item type is required" },
|
|
8513
8555
|
{
|
|
8514
8556
|
type: "enum",
|
|
8515
|
-
params: { values:
|
|
8516
|
-
message: `Item type must be one of: ${
|
|
8557
|
+
params: { values: ma },
|
|
8558
|
+
message: `Item type must be one of: ${ma.join(", ")}`
|
|
8517
8559
|
}
|
|
8518
8560
|
],
|
|
8519
8561
|
transform: { type: "lowercase" }
|
|
@@ -8530,7 +8572,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
|
|
|
8530
8572
|
],
|
|
8531
8573
|
transform: { type: "trim" }
|
|
8532
8574
|
}
|
|
8533
|
-
],
|
|
8575
|
+
], Cl = [
|
|
8534
8576
|
{
|
|
8535
8577
|
key: "preferred_method",
|
|
8536
8578
|
label: "Preferred Payment Method",
|
|
@@ -8546,7 +8588,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
|
|
|
8546
8588
|
],
|
|
8547
8589
|
transform: { type: "lowercase" }
|
|
8548
8590
|
}
|
|
8549
|
-
],
|
|
8591
|
+
], Al = [
|
|
8550
8592
|
{
|
|
8551
8593
|
key: "phone",
|
|
8552
8594
|
label: "Phone Number",
|
|
@@ -8657,7 +8699,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
|
|
|
8657
8699
|
],
|
|
8658
8700
|
transform: { type: "trim" }
|
|
8659
8701
|
}
|
|
8660
|
-
],
|
|
8702
|
+
], Rl = [
|
|
8661
8703
|
{
|
|
8662
8704
|
key: "shipping_first_name",
|
|
8663
8705
|
label: "Shipping First Name",
|
|
@@ -8722,7 +8764,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
|
|
|
8722
8764
|
description: "Shipping postal or ZIP code",
|
|
8723
8765
|
transform: { type: "trim" }
|
|
8724
8766
|
}
|
|
8725
|
-
],
|
|
8767
|
+
], jl = [
|
|
8726
8768
|
{
|
|
8727
8769
|
key: "item_description",
|
|
8728
8770
|
label: "Item Description",
|
|
@@ -8764,7 +8806,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
|
|
|
8764
8806
|
description: "Additional items in JSON format",
|
|
8765
8807
|
transform: { type: "trim" }
|
|
8766
8808
|
}
|
|
8767
|
-
],
|
|
8809
|
+
], Dl = [
|
|
8768
8810
|
{
|
|
8769
8811
|
key: "email_recipients",
|
|
8770
8812
|
label: "Email Recipients",
|
|
@@ -8797,7 +8839,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
|
|
|
8797
8839
|
description: "Additional notification information",
|
|
8798
8840
|
transform: { type: "trim" }
|
|
8799
8841
|
}
|
|
8800
|
-
],
|
|
8842
|
+
], Pl = [
|
|
8801
8843
|
{
|
|
8802
8844
|
key: "subscription_amount",
|
|
8803
8845
|
label: "Subscription Amount",
|
|
@@ -8818,8 +8860,8 @@ var pa = ["payment", "payout", "subscription"], Xt = [
|
|
|
8818
8860
|
validators: [
|
|
8819
8861
|
{
|
|
8820
8862
|
type: "enum",
|
|
8821
|
-
params: { values:
|
|
8822
|
-
message: `Billing interval must be one of: ${
|
|
8863
|
+
params: { values: ha },
|
|
8864
|
+
message: `Billing interval must be one of: ${ha.join(", ")}`
|
|
8823
8865
|
}
|
|
8824
8866
|
],
|
|
8825
8867
|
transform: { type: "lowercase" }
|
|
@@ -8906,7 +8948,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
|
|
|
8906
8948
|
{ type: "date", message: "Must be a valid date/time" }
|
|
8907
8949
|
]
|
|
8908
8950
|
}
|
|
8909
|
-
],
|
|
8951
|
+
], Il = [
|
|
8910
8952
|
{
|
|
8911
8953
|
key: "return_url",
|
|
8912
8954
|
label: "Return URL",
|
|
@@ -8940,7 +8982,7 @@ var pa = ["payment", "payout", "subscription"], Xt = [
|
|
|
8940
8982
|
],
|
|
8941
8983
|
transform: { type: "trim" }
|
|
8942
8984
|
}
|
|
8943
|
-
],
|
|
8985
|
+
], Nl = [
|
|
8944
8986
|
{
|
|
8945
8987
|
key: "convinience_fee",
|
|
8946
8988
|
label: "Convenience Fee",
|
|
@@ -8974,17 +9016,17 @@ var pa = ["payment", "payout", "subscription"], Xt = [
|
|
|
8974
9016
|
],
|
|
8975
9017
|
transform: { type: "trim" }
|
|
8976
9018
|
}
|
|
8977
|
-
],
|
|
9019
|
+
], vi = {
|
|
8978
9020
|
columns: [
|
|
8979
|
-
...
|
|
8980
|
-
...Sl,
|
|
8981
|
-
...Tl,
|
|
8982
|
-
...Ol,
|
|
9021
|
+
...gi,
|
|
8983
9022
|
...Cl,
|
|
8984
9023
|
...Al,
|
|
8985
9024
|
...Rl,
|
|
8986
9025
|
...jl,
|
|
8987
|
-
...Dl
|
|
9026
|
+
...Dl,
|
|
9027
|
+
...Pl,
|
|
9028
|
+
...Il,
|
|
9029
|
+
...Nl
|
|
8988
9030
|
],
|
|
8989
9031
|
options: {
|
|
8990
9032
|
allowExtraColumns: !0,
|
|
@@ -8993,9 +9035,9 @@ var pa = ["payment", "payout", "subscription"], Xt = [
|
|
|
8993
9035
|
uniqueKeys: ["email"]
|
|
8994
9036
|
}
|
|
8995
9037
|
};
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
var
|
|
9038
|
+
gi.map((t) => t.key);
|
|
9039
|
+
vi.columns.map((t) => t.key);
|
|
9040
|
+
var Fl = {
|
|
8999
9041
|
columns: [
|
|
9000
9042
|
{
|
|
9001
9043
|
key: "email",
|
|
@@ -9063,13 +9105,13 @@ var Pl = {
|
|
|
9063
9105
|
skipEmptyRows: !0,
|
|
9064
9106
|
trimWhitespace: !0
|
|
9065
9107
|
}
|
|
9066
|
-
},
|
|
9108
|
+
}, Et = {
|
|
9067
9109
|
"sample-contact": {
|
|
9068
9110
|
id: "sample-contact",
|
|
9069
9111
|
name: "Sample Contact Import",
|
|
9070
9112
|
description: "Basic contact information import (email, name, phone, company)",
|
|
9071
9113
|
category: "general",
|
|
9072
|
-
schema:
|
|
9114
|
+
schema: Fl,
|
|
9073
9115
|
version: "1.0.0",
|
|
9074
9116
|
sampleFile: "sample-contact-template.csv"
|
|
9075
9117
|
},
|
|
@@ -9078,31 +9120,31 @@ var Pl = {
|
|
|
9078
9120
|
name: "PaySpace Batch Upload",
|
|
9079
9121
|
description: "Payment session bulk upload with full validation for PaySpace integration",
|
|
9080
9122
|
category: "payments",
|
|
9081
|
-
schema:
|
|
9123
|
+
schema: vi,
|
|
9082
9124
|
version: "1.0.0",
|
|
9083
9125
|
sampleFile: "payspace-batch-valid.csv"
|
|
9084
9126
|
}
|
|
9085
9127
|
};
|
|
9086
|
-
function
|
|
9087
|
-
return
|
|
9128
|
+
function zl(t) {
|
|
9129
|
+
return Et[t] || null;
|
|
9088
9130
|
}
|
|
9089
|
-
function
|
|
9090
|
-
const e =
|
|
9131
|
+
function xd(t) {
|
|
9132
|
+
const e = zl(t);
|
|
9091
9133
|
return (e == null ? void 0 : e.schema) || null;
|
|
9092
9134
|
}
|
|
9093
|
-
function
|
|
9094
|
-
return Object.keys(
|
|
9135
|
+
function wd() {
|
|
9136
|
+
return Object.keys(Et);
|
|
9095
9137
|
}
|
|
9096
|
-
function
|
|
9097
|
-
return Object.values(
|
|
9138
|
+
function Ll() {
|
|
9139
|
+
return Object.values(Et);
|
|
9098
9140
|
}
|
|
9099
|
-
function
|
|
9100
|
-
return
|
|
9141
|
+
function _d(t) {
|
|
9142
|
+
return Ll().filter((e) => e.category === t);
|
|
9101
9143
|
}
|
|
9102
|
-
function
|
|
9103
|
-
return t in
|
|
9144
|
+
function kd(t) {
|
|
9145
|
+
return t in Et;
|
|
9104
9146
|
}
|
|
9105
|
-
var
|
|
9147
|
+
var Sd = Object.keys(Et), Ed = {
|
|
9106
9148
|
passport: {
|
|
9107
9149
|
type: "passport",
|
|
9108
9150
|
label: "Canadian Passport",
|
|
@@ -9152,34 +9194,34 @@ var xd = Object.keys(St), wd = {
|
|
|
9152
9194
|
}
|
|
9153
9195
|
};
|
|
9154
9196
|
export {
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
|
|
9161
|
-
|
|
9162
|
-
|
|
9163
|
-
|
|
9164
|
-
|
|
9165
|
-
|
|
9166
|
-
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
|
|
9170
|
-
|
|
9171
|
-
|
|
9197
|
+
di as C,
|
|
9198
|
+
Ed as D,
|
|
9199
|
+
as as F,
|
|
9200
|
+
Et as I,
|
|
9201
|
+
md as L,
|
|
9202
|
+
Bl as S,
|
|
9203
|
+
hd as T,
|
|
9204
|
+
gd as U,
|
|
9205
|
+
Sd as V,
|
|
9206
|
+
vd as X,
|
|
9207
|
+
cd as a,
|
|
9208
|
+
is as b,
|
|
9209
|
+
zl as c,
|
|
9210
|
+
xd as d,
|
|
9211
|
+
wd as e,
|
|
9212
|
+
_d as f,
|
|
9213
|
+
ld as g,
|
|
9172
9214
|
Me as h,
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
|
|
9215
|
+
Dr as i,
|
|
9216
|
+
bd as j,
|
|
9217
|
+
sc as k,
|
|
9218
|
+
Ll as l,
|
|
9219
|
+
yd as m,
|
|
9220
|
+
pd as n,
|
|
9221
|
+
ud as o,
|
|
9222
|
+
fd as p,
|
|
9223
|
+
dd as q,
|
|
9224
|
+
kd as t,
|
|
9225
|
+
Ul as u
|
|
9184
9226
|
};
|
|
9185
|
-
//# sourceMappingURL=index-
|
|
9227
|
+
//# sourceMappingURL=index-BNtIB3cM.mjs.map
|