1"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[474,9758],{60474:(e,t,r)=>{r.r(t),r.d(t,{FileHandle:()=>h});var n=r(69758),a=r(60643);const{WritableStream:s,TransformStream:i,DOMException:o,Blob:l}=a.Z,{GONE:c}=n.errors,d=/constructor/i.test(window.HTMLElement)||window.safari||window.WebKitPoint;class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unkown";this.name=e,this.kind="file"}async getFile(){throw new o(...c)}async isSameEntry(e){return this===e}async createWritable(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=await(null===(e=navigator.serviceWorker)||void 0===e?void 0:e.getRegistration()),n=document.createElement("a"),a=new i,o=a.writable;if(n.download=this.name,d||!r){let e=[];a.readable.pipeTo(new s({write(t){e.push(new l([t]))},close(){const t=new l(e,{type:"application/octet-stream; charset=utf-8"});e=[],n.href=URL.createObjectURL(t),n.click(),setTimeout((()=>URL.revokeObjectURL(n.href)),1e4)}}))}else{const{writable:e,readablePort:n}=new m(s),o=encodeURIComponent(this.name).replace(/['()]/g,escape).replace(/\*/g,"%2A"),l={"content-disposition":"attachment; filename*=UTF-8''"+o,"content-type":"application/octet-stream; charset=utf-8",...t.size?{"content-length":t.size}:{}},c=setTimeout((()=>r.active.postMessage(0)),1e4);a.readable.pipeThrough(new i({transform(e,t){if(e instanceof Uint8Array)return t.enqueue(e);const r=new Response(e).body.getReader(),n=e=>r.read().then((e=>e.done?0:n(t.enqueue(e.value))));return n()}})).pipeTo(e).finally((()=>{clearInterval(c)})),r.active.postMessage({url:r.scope+o,headers:l,readablePort:n},[n]);const d=document.createElement("iframe");d.hidden=!0,d.src=r.scope+o,document.body.appendChild(d)}return o.getWriter()}}class p{constructor(e){e.onmessage=e=>this._onMessage(e.data),this._port=e,this._resetReady()}start(e){return this._controller=e,this._readyPromise}write(e){const t={type:0,chunk:e};return this._port.postMessage(t,[e.buffer]),this._resetReady(),this._readyPromise}close(){this._port.postMessage({type:2}),this._port.close()}abort(e){this._port.postMessage({type:1,reason:e}),this._port.close()}_onMessage(e){0===e.type&&this._resolveReady(),1===e.type&&this._onError(e.reason)}_onError(e){this._controller.error(e),this._rejectReady(e),this._port.close()}_resetReady(){this._readyPromise=new Promise(((e,t)=>{this._readyResolve=e,this._readyReject=t})),this._readyPending=!0}_resolveReady(){this._readyResolve(),this._readyPending=!1}_rejectReady(e){this._readyPending||this._resetReady(),this._readyPromise.catch((()=>{})),this._readyReject(e),this._readyPending=!1}}class m{constructor(e){const t=new MessageChannel;this.readablePort=t.port1,this.writable=new e(new p(t.port2))}}},69758:(e,t,r)=>{r.r(t),r.d(t,{config:()=>a,errors:()=>n,fromDataTransfer:()=>s,getDirHandlesFromInput:()=>i,getFileHandlesFromInput:()=>o});const n={INVALID:["seeking position failed.","InvalidStateError"],GONE:["A requested file or directory could not be found at the time an operation was processed.","NotFoundError"],MISMATCH:["The path supplied exists, but was not an entry of requested type.","TypeMismatchError"],MOD_ERR:["The object can not be modified in this way.","InvalidModificationError"],SYNTAX:e=>["Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. ".concat(e),"SyntaxError"],SECURITY:["It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources.","SecurityError"],DISALLOWED:["The request is not allowed by the user agent or the platform in the current context.","NotAllowedError"]},a={writable:globalThis.WritableStream};async function s(e){console.warn("deprecated fromDataTransfer - use `dt.items[0].getAsFileSystemHandle()` instead");const[t,n,a]=await Promise.all([r.e(8005).then(r.bind(r,28005)),r.e(3053).then(r.bind(r,13053)),Promise.resolve().then(r.bind(r,46979))]),s=new t.FolderHandle("",!1);return s._entries=e.map((e=>e.isFile?new n.FileHandle(e,!1):new n.FolderHandle(e,!1))),new a.FileSystemDirectoryHandle(s)}async function i(e){const{FolderHandle:t,FileHandle:n}=await r.e(8005).then(r.bind(r,28005)),{FileSystemDirectoryHandle:a}=await Promise.resolve().then(r.bind(r,46979)),s=Array.from(e.files),i=s[0].webkitRelativePath.split("/",1)[0],o=new t(i,!1);
vendor: 427 bytes, line 1
1return s.forEach((e=>{const r=e.webkitRelativePath.split("/");r.shift();const a=r.pop();r.reduce(((e,r)=>(e._entries[r]||(e._entries[r]=new t(r,!1)),e._entries[r])),o)._entries[a]=new n(e.name,e,!1)})),new a(o)}async function o(e){const{FileHandle:t}=await r.e(8005).then(r.bind(r,28005)),{FileSystemFileHandle:n}=await Promise.resolve().then(r.bind(r,8192));return Array.from(e.files).map((e=>new n(new t(e.name,e,!1))))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.