PageSourceSearch

https://opengvlab-videochat2.hf.space/static/js/3631.98c9f1e0.chunk.js

js opengvlab-videochat2.hf.space collected 2026-10-03 10:21:39 UTC 8,339 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[3631,9758,3053],{13053:function(e,t,r){r.r(t),r.d(t,{FileHandle:function(){return w},FolderHandle:function(){return h}});var n=r(60726),i=r(19113),a=r(649),o=r(11092),s=r(27791),u=r(22951),c=r(91976),l=r(38692),f=r(22265),d=r(69758).errors.DISALLOWED,p=function(){function e(t,r){(0,u.Z)(this,e),this.writer=t,this.fileEntry=r}return(0,c.Z)(e,[{key:"write",value:function(){var e=(0,s.Z)((0,o.Z)().mark((function e(t){var r=this;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("object"!==typeof t){e.next=26;break}if("write"!==t.type){e.next=13;break}if(!(Number.isInteger(t.position)&&t.position>=0)){e.next=8;break}if(this.writer.seek(t.position),this.writer.position===t.position){e.next=8;break}return e.next=7,new Promise((function(e,n){r.writer.onwriteend=e,r.writer.onerror=n,r.writer.truncate(t.position)}));case 7:this.writer.seek(t.position);case 8:if("data"in t){e.next=10;break}throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. write requires a data argument","SyntaxError");case 10:t=t.data,e.next=26;break;case 13:if("seek"!==t.type){e.next=24;break}if(!(Number.isInteger(t.position)&&t.position>=0)){e.next=21;break}if(this.writer.seek(t.position),this.writer.position===t.position){e.next=18;break}throw new DOMException("seeking position failed","InvalidStateError");case 18:return e.abrupt("return");case 21:throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. seek requires a position argument","SyntaxError");case 22:e.next=26;break;case 24:if("truncate"!==t.type){e.next=26;break}return e.abrupt("return",new Promise((function(e){if(!(Number.isInteger(t.size)&&t.size>=0))throw new DOMException("Failed to execute 'write' on 'UnderlyingSinkBase': Invalid params passed. truncate requires a size argument","SyntaxError");r.writer.onwriteend=function(t){return e()},r.writer.truncate(t.size)})));case 26:return e.next=28,new Promise((function(e,n){r.writer.onwriteend=e,r.writer.onerror=n,r.writer.write(new Blob([t]))}));case 28:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"close",value:function(){return new Promise(this.fileEntry.file.bind(this.fileEntry))}}]),e}(),w=function(){function e(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,u.Z)(this,e),this.file=t,this.kind="file",this.writable=r,this.readable=!0}return(0,c.Z)(e,[{key:"name",get:function(){return this.file.name}},{key:"isSameEntry",value:function(e){return this.file.toURL()===e.file.toURL()}},{key:"getFile",value:function(){return new Promise(this.file.file.bind(this.file))}},{key:"createWritable",value:function(e){var t=this;if(!this.writable)throw(0,i.Z)(DOMException,(0,a.Z)(d));return new Promise((function(r,n){return t.file.createWriter((function(n){!1===e.keepExistingData?(n.onwriteend=function(e){return r(new p(n,t.file))},n.truncate(0)):r(new p(n,t.file))}),n)}))}}]),e}(),h=function(){function e(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,u.Z)(this,e),this.dir=t,this.writable=r,this.readable=!0,this.kind="directory",this.name=t.name}return(0,c.Z)(e,[{key:"isSameEntry",value:function(e){return this.dir.fullPath===e.dir.fullPath}},{key:"entries",value:function(){var t=this;return(0,f.Z)((0,o.Z)().mark((function r(){var i,a,s,u,c;return(0,o.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=t.dir.createReader(),r.next=3,(0,l.Z)(new Promise(i.readEntries.bind(i)));case 3:a=r.sent,s=(0,n.Z)(a),r.prev=5,s.s();case 7:if((u=s.n()).done){r.next=13;break}return c=u.value,r.next=11,[c.name,c.isFile?new w(c,t.writable):new e(c,t.writable)];case 11:r.next=7;break;case 13:r.next=18;break;case 15:r.prev=15,r.t0=r.catch(5),s.e(r.t0);case 18:return r.prev=18,s.f(),r.finish(18);case 21:case"end":return r.stop()}}),r,null,[[5,15,18,21]])})))()}},{key:"getDirectoryHandle",value:function(t,r){var n=this;return new Promise((function(i,a){n.dir.getDirectory(t,r,(function(t){i(new e(t))}),a)}))}},{key:"getFileHandle",value:function(e,t){var r=this;return new Promise((function(n,i){return r.dir.getFile(e,t,(function(e){return n(new w(e))}),i)}))}},{key:"removeEntry",value:function(){var t=(0,s.Z)((0,o.Z)().mark((function t(r,n){var i,a=this;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getDirectoryHandle(r,{create:!1}
1).catch((function(e){return"TypeMismatchError"===e.name?a.getFileHandle(r,{create:!1}):e}));case 2:if(!((i=t.sent)instanceof Error)){t.next=5;break}throw i;case 5:return t.abrupt("return",new Promise((function(t,r){i instanceof e?n.recursive?i.dir.removeRecursively((function(){return t()}),r):i.dir.remove((function(){return t()}),r):i.file&&i.file.remove((function(){return t()}),r)})));case 6:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()}]),e}();t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(t,r){return window.webkitRequestFileSystem(e._persistent,0,(function(e){return t(new h(e.root))}),r)}))}},69758:function(e,t,r){r.r(t),r.d(t,{config:function(){return s},errors:function(){return o},fromDataTransfer:function(){return u},getDirHandlesFromInput:function(){return l},getFileHandlesFromInput:function(){return d}});var n=r(11092),i=r(11026),a=r(27791),o={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:function(e){return["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"]},s={writable:globalThis.WritableStream};function u(e){return c.apply(this,arguments)}function c(){return(c=(0,a.Z)((0,n.Z)().mark((function e(t){var a,o,s,u,c,l;return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.warn("deprecated fromDataTransfer - use `dt.items[0].getAsFileSystemHandle()` instead"),e.next=3,Promise.all([r.e(8724).then(r.bind(r,88724)),r.e(3053).then(r.bind(r,13053)),Promise.resolve().then(r.bind(r,46979))]);case 3:return a=e.sent,o=(0,i.Z)(a,3),s=o[0],u=o[1],c=o[2],(l=new s.FolderHandle("",!1))._entries=t.map((function(e){return e.isFile?new u.FileHandle(e,!1):new u.FolderHandle(e,!1)})),e.abrupt("return",new c.FileSystemDirectoryHandle(l));case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e){return f.apply(this,arguments)}function f(){return(f=(0,a.Z)((0,n.Z)().mark((function e(t){var i,a,o,s,u,c,l,f;return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(8724).then(r.bind(r,88724));case 2:return i=e.sent,a=i.FolderHandle,o=i.FileHandle,e.next=7,Promise.resolve().then(r.bind(r,46979));case 7:return s=e.sent,u=s.FileSystemDirectoryHandle,c=Array.from(t.files),l=c[0].webkitRelativePath.split("/",1)[0],f=new a(l,!1),c.forEach((function(e){var t=e.webkitRelativePath.split("/");t.shift();var r=t.pop();t.reduce((function(e,t){return e._entries[t]||(e._entries[t]=new a(t,!1)),e._entries[t]}),f)._entries[r]=new o(e.name,e,!1)})),e.abrupt("return",new u(f));case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e){return p.apply(this,arguments)}function p(){return(p=(0,a.Z)((0,n.Z)().mark((function e(t){var i,a,o,s;return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(8724).then(r.bind(r,88724));case 2:return i=e.sent,a=i.FileHandle,e.next=6,Promise.resolve().then(r.bind(r,8192));case 6:return o=e.sent,s=o.FileSystemFileHandle,e.abrupt("return",Array.from(t.files).map((function(e){return new s(new a(e.name,e,!1))})));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}}]);

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.