"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1503],{81503:(e,t,i)=>{i.r(t),i.d(t,{default:()=>l});let a=async e=>{let t=await e.getFile();return t.handle=e,t};var l=async(e=[{}])=>{Array.isArray(e)||(e=[e]);let t=[];e.forEach((e,i)=>{t[i]={description:e.description||"",accept:{}},e.mimeTypes?e.mimeTypes.map(a=>{t[i].accept[a]=e.extensions||[]}):t[i].accept["*/*"]=e.extensions||[]});let i=await window.showOpenFilePicker({id:e[0].id,startIn:e[0].startIn,types:t,multiple:e[0].multiple||!1,excludeAcceptAllOption:e[0].excludeAcceptAllOption||!1}),l=await Promise.all(i.map(a));return e[0].multiple?l:l[0]}}}]);