import{g as re,f as _e}from"./router-zNjPR4CY.js";import"./charts-C6WIfXk3.js";import"./radix-C-ZuImoP.js";const Ks=/^data:([^/]+\/[^,;]+(?:[^,]*?))(;base64)?,([\s\S]*)$/;function Xs(i,e,t){const s=Ks.exec(i),n=e.mimeType??s?.[1]??"plain/text";let r;if(s?.[2]!=null){const a=atob(decodeURIComponent(s[3])),o=new Uint8Array(a.length);for(let u=0;u(e+=`-${Qs(t)}`,"/"))+e}function Js(i,e){let t=e||"uppy";return typeof i.name=="string"&&(t+=`-${Jt(i.name.toLowerCase())}`),i.type!==void 0&&(t+=`-${i.type}`),i.meta&&typeof i.meta.relativePath=="string"&&(t+=`-${Jt(i.meta.relativePath.toLowerCase())}`),i.data?.size!==void 0&&(t+=`-${i.data.size}`),i.data.lastModified!==void 0&&(t+=`-${i.data.lastModified}`),t}function Zs(i){return!i.isRemote||!i.remote?!1:new Set(["box","dropbox","drive","facebook","unsplash"]).has(i.remote.provider)}function en(i,e){if(Zs(i))return i.id;const t=as(i);return Js({...i,type:t},e)}const ue=Array.from;function tn(i){const e=ue(i.files);return Promise.resolve(e)}function os(i,e,t,{onSuccess:s}){i.readEntries(n=>{const r=[...e,...n];n.length?queueMicrotask(()=>{os(i,r,t,{onSuccess:s})}):s(r)},n=>{t(n),s(e)})}function ls(i,e){return i==null?i:{kind:i.isFile?"file":i.isDirectory?"directory":void 0,name:i.name,getFile(){return new Promise((t,s)=>i.file(t,s))},async*values(){const t=i.createReader();yield*await new Promise(n=>{os(t,[],e,{onSuccess:r=>n(r.map(a=>ls(a,e)))})})},isSameEntry:void 0}}async function*ds(i,e,t=void 0){const s=()=>`${e}/${i.name}`;if(i.kind==="file"){const n=await i.getFile();n!=null?(n.relativePath=e?s():null,yield n):t!=null&&(yield t)}else if(i.kind==="directory")for await(const n of i.values())yield*ds(n,e?s():i.name);else t!=null&&(yield t)}async function*sn(i,e){const t=await Promise.all(Array.from(i.items,async s=>{let n;return n??=ls(typeof s.getAsEntry=="function"?s.getAsEntry():s.webkitGetAsEntry(),e),{fileSystemHandle:n,lastResortFile:s.getAsFile()}}));for(const{lastResortFile:s,fileSystemHandle:n}of t)if(n!=null)try{yield*ds(n,"",s)}catch(r){s!=null?yield s:e(r)}else s!=null&&(yield s)}async function nn(i,e){const t=e?.logDropError??Function.prototype;try{const s=[];for await(const n of sn(i,t))s.push(n);return s}catch{return tn(i)}}function rn(i){for(;i&&!i.dir;)i=i.parentNode;return i?.dir}function $e(i){return i<10?`0${i}`:i.toString()}function Ue(){const i=new Date,e=$e(i.getHours()),t=$e(i.getMinutes()),s=$e(i.getSeconds());return`${e}:${t}:${s}`}function an(){if(typeof window>"u")return!1;const i=document.body;return!(i==null||window==null||!("draggable"in i)||!("ondragstart"in i)||!("ondrop"in i)||!("FormData"in window)||!("FileReader"in window))}function Zt(i){return i.startsWith("blob:")}function ei(i){return i?/^[^/]+\/(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(i):!1}function on(i){const e=Math.floor(i/3600)%24,t=Math.floor(i/60)%60,s=Math.floor(i%60);return{hours:e,minutes:t,seconds:s}}function ln(i){const e=on(i),t=e.hours===0?"":`${e.hours}h`,s=e.minutes===0?"":`${e.hours===0?e.minutes:` ${e.minutes.toString(10).padStart(2,"0")}`}m`,n=e.hours!==0?"":`${e.minutes===0?e.seconds:` ${e.seconds.toString(10).padStart(2,"0")}`}s`;return`${t}${s}${n}`}function dn(i,e,t){const s=[];return i.forEach(n=>typeof n!="string"?s.push(n):e[Symbol.split](n).forEach((r,a,o)=>{r!==""&&s.push(r),a{throw new Error(`missing string: ${i}`)};class us{locale;constructor(e,{onMissingKey:t=un}={}){this.locale={strings:{},pluralize(s){return s===1?0:1}},Array.isArray(e)?e.forEach(this.#t,this):this.#t(e),this.#e=t}#e;#t(e){if(!e?.strings)return;const t=this.locale;Object.assign(this.locale,{strings:{...t.strings,...e.strings},pluralize:e.pluralize||t.pluralize})}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){let s=this.locale.strings[e];if(s==null&&(this.#e(e),s=e),typeof s=="object"){if(t&&typeof t.smart_count<"u"){const r=this.locale.pluralize(t.smart_count);return ti(s[r],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if(typeof s!="string")throw new Error("string was not a string");return ti(s,t)}}const ze="...";function hs(i,e){if(e===0)return"";if(i.length<=e)return i;if(e<=ze.length+1)return`${i.slice(0,e-1)}…`;const t=e-ze.length,s=Math.ceil(t/2),n=Math.floor(t/2);return i.slice(0,s)+ze+i.slice(-n)}var ye,S,cs,K,ii,ps,fs,qe,Ne,he,ms,Et,vt,_t,De={},xe=[],hn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,be=Array.isArray;function j(i,e){for(var t in e)i[t]=e[t];return i}function At(i){i&&i.parentNode&&i.parentNode.removeChild(i)}function Ot(i,e,t){var s,n,r,a={};for(r in e)r=="key"?s=e[r]:r=="ref"?n=e[r]:a[r]=e[r];if(arguments.length>2&&(a.children=arguments.length>3?ye.call(arguments,2):t),typeof i=="function"&&i.defaultProps!=null)for(r in i.defaultProps)a[r]===void 0&&(a[r]=i.defaultProps[r]);return ce(i,a,s,n,null)}function ce(i,e,t,s,n){var r={type:i,props:e,key:t,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:n??++cs,__i:-1,__u:0};return n==null&&S.vnode!=null&&S.vnode(r),r}function cn(){return{current:null}}function W(i){return i.children}function H(i,e){this.props=i,this.context=e}function se(i,e){if(e==null)return i.__?se(i.__,i.__i+1):null;for(var t;ee&&K.sort(fs),i=K.shift(),e=K.length,pn(i)}finally{K.length=Be.__r=0}}function ys(i,e,t,s,n,r,a,o,u,d,c){var h,p,f,m,y,v,b,g=s&&s.__k||xe,_=e.length;for(u=fn(t,e,g,u,_),h=0;h<_;h++)(f=t.__k[h])!=null&&(p=f.__i!=-1&&g[f.__i]||De,f.__i=h,v=Ut(i,f,p,n,r,a,o,u,d,c),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Nt(p.ref,null,f),c.push(f.ref,f.__c||m,f)),y==null&&m!=null&&(y=m),(b=!!(4&f.__u))||p.__k===f.__k?(u=bs(f,u,i,b),b&&p.__e&&(p.__e=null)):typeof f.type=="function"&&v!==void 0?u=v:m&&(u=m.nextSibling),f.__u&=-7);return t.__e=y,u}function fn(i,e,t,s,n){var r,a,o,u,d,c=t.length,h=c,p=0;for(i.__k=new Array(n),r=0;r0?a=i.__k[r]=ce(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):i.__k[r]=a,u=r+p,a.__=i,a.__b=i.__b+1,o=null,(d=a.__i=mn(a,t,u,h))!=-1&&(h--,(o=t[d])&&(o.__u|=2)),o==null||o.__v==null?(d==-1&&(n>c?p--:nu?p--:p++,a.__u|=4))):i.__k[r]=null;if(h)for(r=0;r(c?1:0)){for(n=t-1,r=t+1;n>=0||r=0?n--:r++])!=null&&(2&d.__u)==0&&o==d.key&&u==d.type)return a}return-1}function ni(i,e,t){e[0]=="-"?i.setProperty(e,t??""):i[e]=t==null?"":typeof t!="number"||hn.test(e)?t:t+"px"}function we(i,e,t,s,n){var r,a;e:if(e=="style")if(typeof t=="string")i.style.cssText=t;else{if(typeof s=="string"&&(i.style.cssText=s=""),s)for(e in s)t&&e in t||ni(i.style,e,"");if(t)for(e in t)s&&t[e]==s[e]||ni(i.style,e,t[e])}else if(e[0]=="o"&&e[1]=="n")r=e!=(e=e.replace(ms,"$1")),a=e.toLowerCase(),e=a in i||e=="onFocusOut"||e=="onFocusIn"?a.slice(2):e.slice(2),i.l||(i.l={}),i.l[e+r]=t,t?s?t[he]=s[he]:(t[he]=Et,i.addEventListener(e,r?_t:vt,r)):i.removeEventListener(e,r?_t:vt,r);else{if(n=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in i)try{i[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!="-"?i.removeAttribute(e):i.setAttribute(e,e=="popover"&&t==1?"":t))}}function ri(i){return function(e){if(this.l){var t=this.l[e.type+i];if(e[Ne]==null)e[Ne]=Et++;else if(e[Ne]0?i:be(i)?i.map(_s):j({},i)}function gn(i,e,t,s,n,r,a,o,u){var d,c,h,p,f,m,y,v=t.props||De,b=e.props,g=e.type;if(g=="svg"?n="http://www.w3.org/2000/svg":g=="math"?n="http://www.w3.org/1998/Math/MathML":n||(n="http://www.w3.org/1999/xhtml"),r!=null){for(d=0;d2&&(o.children=arguments.length>3?ye.call(arguments,2):t),ce(i.type,o,s||i.key,n||i.ref,null)}ye=xe.slice,S={__e:function(i,e,t,s){for(var n,r,a;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(i)),a=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(i,s||{}),a=n.__d),a)return n.__E=n}catch(o){i=o}throw i}},cs=0,H.prototype.setState=function(i,e){var t;t=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=j({},this.state),typeof i=="function"&&(i=i(j({},t),this.props)),i&&j(t,i),i!=null&&this.__v&&(e&&this._sb.push(e),si(this))},H.prototype.forceUpdate=function(i){this.__v&&(this.__e=!0,i&&this.__h.push(i),si(this))},H.prototype.render=W,K=[],ps=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,fs=function(i,e){return i.__v.__b-e.__v.__b},Be.__r=0,qe=Math.random().toString(8),Ne="__d"+qe,he="__a"+qe,ms=/(PointerCapture)$|Capture$/i,Et=0,vt=ri(!1),_t=ri(!0);var bn=0;function l(i,e,t,s,n,r){e||(e={});var a,o,u=e;if("ref"in u)for(o in u={},e)o=="ref"?a=e[o]:u[o]=e[o];var d={type:i,props:u,key:t,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--bn,__i:-1,__u:0,__source:n,__self:r};if(typeof i=="function"&&(a=i.defaultProps))for(o in a)u[o]===void 0&&(u[o]=a[o]);return S.vnode&&S.vnode(d),d}var pe,E,je,oi,fe=0,Ss=[],O=S,li=O.__b,di=O.__r,ui=O.diffed,hi=O.__c,ci=O.unmount,pi=O.__;function It(i,e){O.__h&&O.__h(E,i,fe||e),fe=0;var t=E.__H||(E.__H={__:[],__h:[]});return i>=t.__.length&&t.__.push({}),t.__[i]}function ne(i){return fe=1,vn(Ps,i)}function vn(i,e,t){var s=It(pe++,2);if(s.t=i,!s.__c&&(s.__=[Ps(void 0,e),function(o){var u=s.__N?s.__N[0]:s.__[0],d=s.t(u,o);u!==d&&(s.__N=[d,s.__[1]],s.__c.setState({}))}],s.__c=E,!E.__f)){var n=function(o,u,d){if(!s.__c.__H)return!0;var c=s.__c.__H.__.filter(function(p){return p.__c});if(c.every(function(p){return!p.__N}))return!r||r.call(this,o,u,d);var h=s.__c.props!==o;return c.some(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(h=!0)}}),r&&r.call(this,o,u,d)||h};E.__f=!0;var r=E.shouldComponentUpdate,a=E.componentWillUpdate;E.componentWillUpdate=function(o,u,d){if(this.__e){var c=r;r=void 0,n(o,u,d),r=c}a&&a.call(this,o,u,d)},E.shouldComponentUpdate=n}return s.__N||s.__}function Re(i,e){var t=It(pe++,3);!O.__s&&Ts(t.__H,e)&&(t.__=i,t.u=e,E.__H.__h.push(t))}function ie(i){return fe=5,Dt(function(){return{current:i}},[])}function Dt(i,e){var t=It(pe++,7);return Ts(t.__H,e)&&(t.__=i(),t.__H=e,t.__h=i),t.__}function Me(i,e){return fe=8,Dt(function(){return i},e)}function _n(){for(var i;i=Ss.shift();){var e=i.__H;if(i.__P&&e)try{e.__h.some(Ie),e.__h.some(Ft),e.__h=[]}catch(t){e.__h=[],O.__e(t,i.__v)}}}O.__b=function(i){E=null,li&&li(i)},O.__=function(i,e){i&&e.__k&&e.__k.__m&&(i.__m=e.__k.__m),pi&&pi(i,e)},O.__r=function(i){di&&di(i),pe=0;var e=(E=i.__c).__H;e&&(je===E?(e.__h=[],E.__h=[],e.__.some(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(e.__h.some(Ie),e.__h.some(Ft),e.__h=[],pe=0)),je=E},O.diffed=function(i){ui&&ui(i);var e=i.__c;e&&e.__H&&(e.__H.__h.length&&(Ss.push(e)!==1&&oi===O.requestAnimationFrame||((oi=O.requestAnimationFrame)||wn)(_n)),e.__H.__.some(function(t){t.u&&(t.__H=t.u),t.u=void 0})),je=E=null},O.__c=function(i,e){e.some(function(t){try{t.__h.some(Ie),t.__h=t.__h.filter(function(s){return!s.__||Ft(s)})}catch(s){e.some(function(n){n.__h&&(n.__h=[])}),e=[],O.__e(s,t.__v)}}),hi&&hi(i,e)},O.unmount=function(i){ci&&ci(i);var e,t=i.__c;t&&t.__H&&(t.__H.__.some(function(s){try{Ie(s)}catch(n){e=n}}),t.__H=void 0,e&&O.__e(e,t.__v))};var fi=typeof requestAnimationFrame=="function";function wn(i){var e,t=function(){clearTimeout(s),fi&&cancelAnimationFrame(e),setTimeout(i)},s=setTimeout(t,35);fi&&(e=requestAnimationFrame(t))}function Ie(i){var e=E,t=i.__c;typeof t=="function"&&(i.__c=void 0,t()),E=e}function Ft(i){var e=E;i.__c=i.__(),E=e}function Ts(i,e){return!i||i.length!==e.length||e.some(function(t,s){return t!==i[s]})}function Ps(i,e){return typeof e=="function"?e(i):e}const Fn={position:"relative",width:"100%",minHeight:"100%"},Sn={position:"absolute",top:0,left:0,width:"100%",overflow:"visible"};function Tn({data:i,rowHeight:e,renderRow:t,overscanCount:s=10,padding:n=4,...r}){const a=ie(null),[o,u]=ne(0),[d,c]=ne(0);Re(()=>{function g(){a.current!=null&&d!==a.current.offsetHeight&&c(a.current.offsetHeight)}return g(),window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}},[d]);const h=Me(()=>{a.current&&u(a.current.scrollTop)},[]);let p=Math.floor(o/e),f=Math.floor(d/e);s&&(p=Math.max(0,p-p%s),f+=s);const m=p+f+n,y=i.slice(p,m),v={...Fn,height:i.length*e},b={...Sn,top:p*e};return l("div",{onScroll:h,ref:a,...r,children:l("div",{role:"presentation",style:v,children:l("div",{role:"presentation",style:b,children:y.map(t)})})})}class Pn{uppy;opts;id;defaultLocale;i18n;i18nArray;type;VERSION;constructor(e,t){this.uppy=e,this.opts=t??{}}getPluginState(){const{plugins:e}=this.uppy.getState();return e?.[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(void 0),this.i18nInit()}i18nInit(){const e=new us([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState(void 0)}addTarget(e){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}update(e){}afterUpdate(){}}const Cn={debug:()=>{},warn:()=>{},error:(...i)=>console.error(`[Uppy] [${Ue()}]`,...i)},kn={debug:(...i)=>console.debug(`[Uppy] [${Ue()}]`,...i),warn:(...i)=>console.warn(`[Uppy] [${Ue()}]`,...i),error:(...i)=>console.error(`[Uppy] [${Ue()}]`,...i)};var He,mi;function En(){return mi||(mi=1,He=function(e){if(typeof e!="number"||Number.isNaN(e))throw new TypeError(`Expected a number, got ${typeof e}`);const t=e<0;let s=Math.abs(e);if(t&&(s=-s),s===0)return"0 B";const n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],r=Math.min(Math.floor(Math.log(s)/Math.log(1024)),n.length-1),a=Number(s/1024**r),o=n[r];return`${a>=10||a%1===0?Math.round(a):a.toFixed(1)} ${o}`}),He}var An=En();const J=re(An);var Ve,gi;function On(){if(gi)return Ve;gi=1;function i(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}return i.prototype.match=function(e){var t=!0,s=this.parts,n,r=s.length,a;if(typeof e=="string"||e instanceof String)if(!this.hasWild&&this.text!=e)t=!1;else{for(a=(e||"").split(this.separator),n=0;t&&n=2}return s?n(s.split(";")[0]):n},We}var Nn=Un();const In=re(Nn),Dn={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class B extends Error{isUserFacing;file;constructor(e,t){super(e),this.isUserFacing=t?.isUserFacing??!0,t?.file&&(this.file=t.file)}isRestriction=!0}class xn{getI18n;getOpts;constructor(e,t){this.getI18n=t,this.getOpts=()=>{const s=e();if(s.restrictions?.allowedFileTypes!=null&&!Array.isArray(s.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return s}}validateAggregateRestrictions(e,t){const{maxTotalFileSize:s,maxNumberOfFiles:n}=this.getOpts().restrictions;if(n&&e.filter(a=>!a.isGhost).length+t.length>n)throw new B(`${this.getI18n()("youCanOnlyUploadX",{smart_count:n})}`);if(s){const r=[...e,...t].reduce((a,o)=>a+(o.size??0),0);if(r>s)throw new B(this.getI18n()("aggregateExceedsSize",{sizeAllowed:J(s),size:J(r)}))}}validateSingleFile(e){const{maxFileSize:t,minFileSize:s,allowedFileTypes:n}=this.getOpts().restrictions;if(n&&!n.some(a=>a.includes("/")?e.type?In(e.type.replace(/;.*?$/,""),a):!1:a[0]==="."&&e.extension?e.extension.toLowerCase()===a.slice(1).toLowerCase():!1)){const a=n.join(", ");throw new B(this.getI18n()("youCanOnlyUploadFileTypes",{types:a}),{file:e})}if(t&&e.size!=null&&e.size>t)throw new B(this.getI18n()("exceedsSize",{size:J(t),file:e.name??this.getI18n()("unnamed")}),{file:e});if(s&&e.size!=null&&e.size{this.validateSingleFile(s)}),this.validateAggregateRestrictions(e,t)}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(t&&Object.keys(e).length(t=s,e||(e=Promise.resolve().then(()=>(e=null,i(...t)))),e)}class me extends Pn{#e;isTargetDOMEl;el;parent;title;getTargetPlugin(e){let t;if(typeof e?.addTarget=="function")t=e,t instanceof me||console.warn(new Error("The provided plugin is not an instance of UIPlugin. This is an indication of a bug with the way Uppy is bundled.",{cause:{targetPlugin:t,UIPlugin:me}}));else if(typeof e=="function"){const s=e;this.uppy.iteratePlugins(n=>{n instanceof s&&(t=n)})}return t}mount(e,t){const s=t.id,n=Ys(e);if(n){this.isTargetDOMEl=!0;const o=document.createElement("div");return o.classList.add("uppy-Root"),this.#e=Bn(u=>{this.uppy.getPlugin(this.id)&&(ai(this.render(u,o),o),this.afterUpdate())}),this.uppy.log(`Installing ${s} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(n.innerHTML=""),ai(this.render(this.uppy.getState(),o),o),this.el=o,n.appendChild(o),o.dir=this.opts.direction||rn(o)||"ltr",this.onMount(),this.el}const r=this.getTargetPlugin(e);if(r)return this.uppy.log(`Installing ${s} to ${r.id}`),this.parent=r,this.el=r.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${s}`);let a=`Invalid target option given to ${s}.`;throw typeof e=="function"?a+=" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":a+="If you meant to target an HTML element, please make sure that the element exists. Check that the