"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[251],{40251:(e,r,t)=>{function n(e){function r(e){if(Object(e)!==e)return Promise.reject(TypeError(e+" is not an object."));var r=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:r}})}return(n=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return r(this.n.apply(this.s,arguments))},return:function(e){var t=this.s.return;return void 0===t?Promise.resolve({value:e,done:!0}):r(t.apply(this.s,arguments))},throw:function(e){var t=this.s.return;return void 0===t?Promise.reject(e):r(t.apply(this.s,arguments))}},new n(e)}t.r(r),t.d(r,{default:()=>a});let i=async(e,r,t=e.name,a)=>{let o=[],l=[];var u,s=!1,c=!1;try{for(var f,y=function(e){var r,t,i,a=2;for("u">typeof Symbol&&(t=Symbol.asyncIterator,i=Symbol.iterator);a--;){if(t&&null!=(r=e[t]))return r.call(e);if(i&&null!=(r=e[i]))return new n(r.call(e));t="@@asyncIterator",i="@@iterator"}throw TypeError("Object is not async iterable")}(e.values());s=!(f=await y.next()).done;s=!1){let n=f.value,u=`${t}/${n.name}`;"file"===n.kind?l.push(n.getFile().then(r=>(r.directoryHandle=e,r.handle=n,Object.defineProperty(r,"webkitRelativePath",{configurable:!0,enumerable:!0,get:()=>u})))):"directory"!==n.kind||!r||a&&a(n)||o.push(i(n,r,u,a))}}catch(e){c=!0,u=e}finally{try{s&&null!=y.return&&await y.return()}finally{if(c)throw u}}return[...(await Promise.all(o)).flat(),...await Promise.all(l)]};var a=async(e={})=>(e.recursive=e.recursive||!1,i(await window.showDirectoryPicker({id:e.id,startIn:e.startIn}),e.recursive,void 0,e.skipDirectory))}}]);