PageSourceSearch

https://veegen.ai/_next/static/chunks/477.411aeb15afd8c381.js

js veegen.ai collected 2026-10-05 13:11:01 UTC 8,700 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[477,2397],{20477:(t,e,i)=>{i.r(e),i.d(e,{YouTubeProvider:()=>A});var s=i(46298),a=i(37454),n=i(24057),o=i(72247),l=i(91207),r=i(66734),h=i(39715),u=i(28421),c=i(82397);i(49666);let d={Ended:0,Playing:1,Paused:2,Buffering:3,Cued:5};var _=new WeakMap,f=new WeakMap,p=new WeakMap,v=new WeakMap,y=new WeakMap,g=new WeakMap,w=new WeakMap,b=new WeakSet,k=new WeakSet,m=new WeakSet,S=new WeakSet,W=new WeakSet,M=new WeakSet,P=new WeakSet,T=new WeakSet,$=new WeakSet,E=new WeakSet,V=new WeakSet,N=new WeakSet,O=new WeakSet,R=new WeakSet;class A extends u.h{get currentSrc(){return(0,s._)(this,v)}get type(){return"youtube"}get videoId(){return(0,s._)(this,f).call(this)}preconnect(){(0,h.TB)(this.getOrigin())}setup(){super.setup(),(0,r.effect)((0,o._)(this,m,B).bind(this)),(0,s._)(this,_).notify("provider-setup",this)}destroy(){for(let t of((0,o._)(this,N,z).call(this),(0,s._)(this,w).values()))for(let{reject:e}of t)e("provider destroyed");(0,s._)(this,w).clear()}async play(){return(0,o._)(this,S,Y).call(this,"playVideo")}async pause(){return(0,o._)(this,S,Y).call(this,"pauseVideo")}setMuted(t){t?(0,o._)(this,S,Y).call(this,"mute"):(0,o._)(this,S,Y).call(this,"unMute")}setCurrentTime(t){(0,o._)(this,S,Y).call(this,"seekTo",t),(0,s._)(this,_).notify("seeking",t)}setVolume(t){(0,o._)(this,S,Y).call(this,"setVolume",100*t)}setPlaybackRate(t){(0,o._)(this,S,Y).call(this,"setPlaybackRate",t)}async loadSource(t){if(!(0,r.isString)(t.src)){(0,n._)(this,v,null),(0,s._)(this,f).set("");return}let e=(0,c.resolveYouTubeVideoId)(t.src);(0,s._)(this,f).set(null!=e?e:""),(0,n._)(this,v,t)}getOrigin(){return this.cookies?"https://www.youtube.com":"https://www.youtube-nocookie.com"}buildParams(){let{keyDisabled:t}=(0,s._)(this,_).$props,{muted:e,playsInline:i,nativeControls:a}=(0,s._)(this,_).$state,n=a();return{rel:0,autoplay:0,cc_lang_pref:this.language,cc_load_policy:n?1:void 0,color:this.color,controls:+!!n,disablekb:!n||t()?1:0,enablejsapi:1,fs:1,hl:this.language,iv_load_policy:n?1:3,mute:+!!e(),playsinline:+!!i()}}onLoad(){window.setTimeout(()=>this.postMessage({event:"listening"}),100)}onMessage(t,e){let{info:i}=t;if(!i)return;let{title:a,intrinsicDuration:n,playbackRate:l}=(0,s._)(this,_).$state;if((0,r.isObject)(i.videoData)&&i.videoData.title!==a()&&(0,s._)(this,_).notify("title-change",i.videoData.title,e),(0,r.isNumber)(i.duration)&&i.duration!==n()){if((0,r.isNumber)(i.videoLoadedFraction)){var u,c;let t=null!=(c=null==(u=i.progressState)?void 0:u.loaded)?c:i.videoLoadedFraction*i.duration,s=new h.zJ(0,i.duration);(0,o._)(this,T,I).call(this,t,s,e)}(0,s._)(this,_).notify("duration-change",i.duration,e)}if((0,r.isNumber)(i.playbackRate)&&i.playbackRate!==l()&&(0,s._)(this,_).notify("rate-change",i.playbackRate,e),i.progressState){let{current:t,seekableStart:a,seekableEnd:l,loaded:r,duration:u}=i.progressState;(0,o._)(this,P,D).call(this,t,e),(0,o._)(this,T,I).call(this,r,new h.zJ(a,l),e),u!==n()&&(0,s._)(this,_).notify("duration-change",u,e)}if((0,r.isNumber)(i.volume)&&(0,r.isBoolean)(i.muted)&&!(0,s._)(this,g)){let t={muted:i.muted,volume:i.volume/100};(0,s._)(this,_).notify("volume-change",t,e)}(0,r.isNumber)(i.playerState)&&i.playerState!==(0,s._)(this,p)&&(0,o._)(this,V,x).call(this,i.playerState,e)}constructor(t,e){super(t),(0,l._)(this,b),(0,l._)(this,k),(0,l._)(this,m),(0,l._)(this,S),(0,l._)(this,W),(0,l._)(this,M),(0,l._)(this,P),(0,l._)(this,T),(0,l._)(this,$),(0,l._)(this,E),(0,l._)(this,V),(0,l._)(this,N),(0,l._)(this,O),(0,l._)(this,R),(0,a._)(this,_,{writable:!0,value:void 0}),(0,a._)(this,f,{writable:!0,value:void 0}),(0,a._)(this,p,{writable:!0,value:void 0}),(0,a._)(this,v,{writable:!0,value:void 0}),(0,a._)(this,y,{writable:!0,value:void 0}),(0,a._)(this,g,{writable:!0,value:void 0}),(0,a._)(this,w,{writable:!0,value:void 0}),this.$$PROVIDER_TYPE="YOUTUBE",this.scope=(0,r.createScope)(),(0,n._)(this,f,(0,r.signal)("")),(0,n._)(this,p,-1),(0,n._)(this,v,null),(0,n._)(this,y,-1),(0,n._)(this,g,!1),(0,n._)(this,w,new Map),this.language="en",this.color="red",this.cookies=!1,(0,n._)(this,_,e)}}function B(){(0,o._)(this,N,z).call(this);let t=(0,s._)(this,f).call(this);if(!t)return void this.src.set("");this.src.set("".concat(this.getOrigin(),"/embed/").concat(t)),(0,s._)(this,_).notify("load-start")}function Y(t,e){let i=(0,r.deferredPromise)(),a=(0,s._)(this,w).get(t);return a||(0,s._)(this,w).set(t,a=[]),a.push(i),this.postMessage({event:"command",func:t,args:e?[e]:void 0}),i.promise}function C(t){(0,s._)(this,_).notify("loaded-metadata"),(0,s._)(this,_).notify("loaded-data"),(0,s._)(this,_).delegate.ready(void 0,t)}function J(t){var e;null==(e=(0,o._)(this,O,F).call(this,"pauseVideo"))||e.resolve(),(0,s._)(this,_).notify("pause",void 0,t)}function D(t,e){let{duration:i,realCurrentTime:a}=(0,s._)(this,_).$state,n=(0,s._)(this,p)===d.Ended,o=n?i():t;(0,s._)(this,_).notify("time-change",o,e),!n&&Math.abs(o-a())>1&&(0,s._)(this,_).notify("seeking",o,e)}function I(t,e,i){let a={buffered:new h.zJ(0,t),seekable:e};(0,s._)(this,_).notify("progress",a,i);let{seeking:n,realCurrentTime:l}=(0,s._)(this,_).$state;n()&&t>l()&&(0,o._)(this,$,L).call(this,i)}function L(t){let{paused:e,realCurrentTime:i}=(0,s._)(this,_).$state;window.clearTimeout((0,s._)(this,y)),(0,n._)(this,y,window.setTimeout(()=>{(0,s._)(this,_).notify("seeked",i(),t),(0,n._)(this,y,-1)},100*!!e()))}function j(t){let{seeking:e}=(0,s._)(this,_).$state;e()&&(0,o._)(this,$,L).call(this,t),(0,s._)(this,_).notify("pause",void 0,t),(0,s._)(this,_).notify("end",void 0,t)}function x(t,e){let{paused:i,seeking:a}=(0,s._)(this,_).$state,l=t===d.Playing,r=t===d.Buffering,h=(0,o._)(this,R,U).call(this,"playVideo"),u=i()&&(r||l);if(r&&(0,s._)(this,_).notify("waiting",void 0,e),a()&&l&&(0,o._)(this,$,L).call(this,e),(0,s._)(this,g)&&l){this.pause(),(0,n._)(this,g,!1),this.setMuted((0,s._)(this,_).$state.muted());return}if(!h&&u){(0,n._)(this,g,!0),this.setMuted(!0);return}if(u){var c;null==(c=(0,o._)(this,O,F).call(this,"playVideo"))||c.resolve(),(0,s._)(this,_).notify("play",void 0,e)}switch(t){case d.Cued:(0,o._)(this,W,C).call(this,e);break;case d.Playing:(0,s._)(this,_).notify("playing",void 0,e);break;case d.Paused:(0,o._)(this,M,J).call(this,e);break;case d.Ended:(0,o._)(this,E,j).call(this,e)}(0,n._)(this,p,t)}function z(){(0,n._)(this,p,-1),(0,n._)(this,y,-1),(0,n._)(this,g,!1)}function F(t){var e;return null==(e=(0,s._)(this,w).get(t))?void 0:e.shift()}function U(t){var e;return!!(null==(e=(0,s._)(this,w).get(t))?void 0:e.length)}},28421:(t,e,i)=>{i.d(e,{h:()=>_});var s=i(46298),a=i(37454),n=i(24057),o=i(72247),l=i(91207),r=i(39715),h=i(66734),u=new WeakMap,c=new WeakSet,d=new WeakSet;class _{get iframe(){return(0,s._)(this,u)}setup(){(0,h.listenEvent)(window,"message",(0,o._)(this,d,p).bind(this)),(0,h.listenEvent)((0,s._)(this,u),"load",this.onLoad.bind(this)),(0,h.effect)((0,o._)(this,c,f).bind(this))}postMessage(t,e){var i;r.X3||null==(i=(0,s._)(this,u).contentWindow)||i.postMessage(JSON.stringify(t),null!=e?e:"*")}constructor(t){(0,l._)(this,c),(0,l._)(this,d),(0,a._)(this,u,{writable:!0,value:void 0}),this.src=(0,h.signal)(""),this.referrerPolicy=null,(0,n._)(this,u,t),t.setAttribute("frameBorder","0"),t.setAttribute("aria-hidden","true"),t.setAttribute("allow","autoplay; fullscreen; encrypted-media; picture-in-picture; accelerometer; gyroscope"),null!==this.referrerPolicy&&t.setAttribute("referrerpolicy",this.referrerPolicy)}}function f(){let t=this.src();if(!t.length)return void(0,s._)(this,u).setAttribute("src","");let e=(0,h.peek)(()=>this.buildParams());(0,s._)(this,u).setAttribute("src",(0,r.xF)(t,e))}function p(t){var e;let i=this.getOrigin();if((null===t.source||t.source===(null==(e=(0,s._)(this,u))?void 0:e.contentWindow))&&(!(0,h.isString)(i)||i===t.origin)){try{let e=JSON.parse(t.data);e&&this.onMessage(e,t);return}catch(t){}t.data&&this.onMessage(t.data,t)}}},82397:(t,e,i)=>{i.d(e,{findYouTubePoster:()=>l,resolveYouTubeVideoId:()=>o});let s=/(?:youtu\.be|youtube|youtube\.com|youtube-nocookie\.com)(?:\/shorts)?\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|)((?:\w|-){11}
1)/,a=new Map,n=new Map;function o(t){var e;return null==(e=t.match(s))?void 0:e[1]}async function l(t,e){if(a.has(t))return a.get(t);if(n.has(t))return n.get(t);let i=new Promise(async i=>{for(let l of["maxresdefault","sddefault","hqdefault"])for(let r of[!0,!1]){var s,n,o;let h=(s=t,n=l,o=r,"https://i.ytimg.com/".concat(o?"vi_webp":"vi","/").concat(s,"/").concat(n,".").concat(o?"webp":"jpg"));if((await fetch(h,{mode:"no-cors",signal:e.signal})).status<400){a.set(t,h),i(h);return}}}).catch(()=>"").finally(()=>n.delete(t));return n.set(t,i),i}}}]);

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.