PageSourceSearch

https://www.framecompose.com/_next/static/chunks/8316.5b1fb9c6fd605ebd.js

js framecompose.com collected 2026-09-24 14:45:29 UTC 8,156 bytes, 1 lines download raw bytes

1!function(){try{var t="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="05688795-bece-4f17-8554-c9bea6381166",t._sentryDebugIdIdentifier="sentry-dbid-05688795-bece-4f17-8554-c9bea6381166")}catch(t){}}(),(()=>{var t,e,r,n,o,a,i={},l={};function s(t){var e=l[t];if(void 0!==e)return e.exports;var r=l[t]={exports:{}},n=!0;try{i[t](r,r.exports,s),n=!1}finally{n&&delete l[t]}return r.exports}s.m=i,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,s.t=function(r,n){if(1&n&&(r=this(r)),8&n||"object"==typeof r&&r&&(4&n&&r.__esModule||16&n&&"function"==typeof r.then))return r;var o=Object.create(null);s.r(o);var a={};t=t||[null,e({}),e([]),e(e)];for(var i=2&n&&r;"object"==typeof i&&!~t.indexOf(i);i=e(i))Object.getOwnPropertyNames(i).forEach(t=>a[t]=()=>r[t]);return a.default=()=>r,s.d(o,a),o},s.d=(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce((e,r)=>(s.f[r](t,e),e),[])),s.u=t=>"static/chunks/"+(4803===t?"adda3502":t)+"."+({2893:"bd02837f9c3ffd36",4803:"c912b0910ac856ed",6669:"2b4d838017813fe0"})[t]+".js",s.miniCssF=t=>{},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.tt=()=>(void 0===r&&(r={createScriptURL:t=>t},"u">typeof trustedTypes&&trustedTypes.createPolicy&&(r=trustedTypes.createPolicy("nextjs#bundler",r))),r),s.tu=t=>s.tt().createScriptURL(t),s.p="/_next/",n={8316:1},s.f.i=(t,e)=>{n[t]||importScripts(s.tu(s.p+s.u(t)))},a=(o=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push.bind(o),o.push=t=>{var[e,r,o]=t;for(var i in r)s.o(r,i)&&(s.m[i]=r[i]);for(o&&o(s);e.length;)n[e.pop()]=1;a(t)},(()=>{"use strict";let t=self,e="https://cdn.jsdelivr.net/npm/[email protected]/dist/",r=`${e}ort.all.min.js`,n=["Xenova/whisper-tiny.en","onnx-community/whisper-tiny"],o=null,a=n[n.length-1];function i(t){let e=t.toLowerCase().split(/\s+/).filter(t=>t.length>0);if(e.length<4)return!1;for(let t=2;t<=4;t+=1){let r={};for(let n=0;n<=e.length-t;n+=1){let o=e.slice(n,n+t).join(" ");r[o]=(r[o]||0)+1}for(let t of Object.values(r))if(t>3)return!0}let r={};for(let t of e)r[t]=(r[t]||0)+1;for(let t of Object.values(r))if(t>.5*e.length&&t>4)return!0;return!1}function l(t){return t.replace(/\s+/g," ").trim()}function c(t){return t.map(t=>l(t.word)).filter(t=>t.length>0).join(" ").replace(/\s+([,.!?;:])/g,"$1").trim()}function u(t){return"number"==typeof t&&Number.isFinite(t)?t:null}function f(t,e,r){return null==t?null:t>r+1&&t>=e?t-e:t}async function p(t,e,r,n){let o=Math.max(1,Math.floor(30*r)),a=e.length,s=Math.max(1,Math.ceil(a/o)),c=[],p=[],h="word";for(let m=0;m<s;m+=1){let g,y=m*o,b=Math.min(y+o,a),w=e.slice(y,b),_=y/r,x=w.length/r,M=5+m/s*90;d(n,"transcribing",`Transcribing segment ${m+1}/${s} in browser...`,Math.round(M));let v=t=>({sampling_rate:r,return_timestamps:t,chunk_length_s:30,stride_length_s:5,no_repeat_ngram_size:3,condition_on_previous_text:!1,compression_ratio_threshold:2.4,logprob_threshold:-1});try{g=await t(w,v(h))}catch(e){if("word"===h)h=!0,g=await t(w,v(h));else throw e}let j=function(t,e,r){let n=[];for(let o of Array.isArray(t?.chunks)?t.chunks:[]){let t=l("string"==typeof o?.text?o.text:"");if(!t||i(t))continue;let a=Array.isArray(o?.timestamp)?o.timestamp:[],s=f(u(a[0]),e,r),c=f(u(a[1]),e,r),p=Math.max(.35,.24*t.split(/\s+/).filter(Boolean).length),d=s??0,h=c??d+p,m=Math.max(0,e+d),g=Math.max(m+.35,e+h),y=t.split(/\s+/).filter(Boolean);if(0===y.length)continue;let b="number"==typeof o?.score?o.score:"number"==typeof o?.probability?o.probability:void 0;if(1===y.length){n.push({word:y[0],start:m,end:g,probability:b});continue}let w=Math.max(.35,g-m)/y.length;for(let t=0;t<y.length;t+=1){let e=m+t*w,r=m+(t+1)*w;n.push({word:y[t],start:e,end:Math.max(e+.01,r),probability:b})}}if(n.length>0)return n;let o=l("string"==typeof t?.text?t.text:"");if(!o||i(o))return[];
1let a=o.split(/\s+/).filter(Boolean);if(0===a.length)return[];let s=Math.max(.35,r>0?r:.35)/a.length;return a.map((t,r)=>{let n=e+r*s;return{word:t,start:n,end:Math.max(n+.01,e+(r+1)*s)}})}(g,_,x);c.push(...j);let O=l("string"==typeof g?.text?g.text:"");O&&p.push(O)}return d(n,"transcribing","Finalizing browser transcript...",98),{words:c,text:p.join(" ").trim()}}function d(e,r,n,o){t.postMessage({type:"TRANSCRIBE_PROGRESS",requestId:e,stage:r,detail:n,progress:o})}async function h(){if(t.ort)return;if("function"==typeof t.importScripts)t.importScripts(r);else{let t=await fetch(r);if(!t.ok)throw Error(`Failed to load ONNX runtime (${t.status})`);(0,eval)(await t.text())}if(!t.ort)throw Error("ONNX runtime did not initialize in worker.");let n=t.ort.env;if(!n||"object"!=typeof n)throw Error("ONNX runtime env is not accessible in worker.");let o="object"==typeof n.wasm&&null!==n.wasm?n.wasm:{};if(n.wasm!==o)try{n.wasm=o}catch{}try{o.wasmPaths=e}catch{}try{o.numThreads=1}catch{}try{o.proxy=!1}catch{}}async function m(t){return o||(o=(async()=>{d(t,"loading_runtime","Loading ONNX runtime..."),await h();let r=await Promise.all([s.e(4803),s.e(6669),s.e(2893)]).then(s.bind(s,49868)),o=r.env||r.default?.env;o?.backends?.onnx?.wasm&&(o.backends.onnx.wasm.wasmPaths=e,o.backends.onnx.wasm.numThreads=1,o.backends.onnx.wasm.proxy=!1),"boolean"==typeof o?.allowLocalModels&&(o.allowLocalModels=!1),"boolean"==typeof o?.allowRemoteModels&&(o.allowRemoteModels=!0);let i=r.pipeline||r.default?.pipeline;if("function"!=typeof i)throw Error("Transformers pipeline factory unavailable in worker.");let l="u">typeof navigator&&"gpu"in navigator,c=l?"webgpu":"wasm",u=l?"fp16":"q8",f=null;for(let e of n){d(t,"loading_model",`Loading ${e} (${c})...`);try{let r=await i("automatic-speech-recognition",e,{device:c,dtype:u,progress_callback:r=>{let n=function(t){if("number"==typeof t&&Number.isFinite(t))return Math.max(0,Math.min(100,Math.round(t<=1?100*t:t)))}(r?.progress);d(t,"loading_model","string"==typeof r?.status?`${r.status} (${e})`:`Loading model files (${e})...`,n)}});return a=e,r}catch(r){f=r,d(t,"loading_model",`Model ${e} failed to load. Trying fallback...`)}}throw Error(f instanceof Error?`Could not load local transcription model: ${f.message}`:"Could not load local transcription model.")})().catch(t=>{throw o=null,t}))}t.onmessage=async e=>{let r=e.data;if(!r||"TRANSCRIBE_LOCAL_AUDIO"!==r.type)return;let{requestId:n,audioData:o,sampleRate:s}=r;try{let e=await m(n);d(n,"transcribing","Transcribing in browser...",5);let r=o.length/s,u=await p(e,o,s,n),f=u.words.map(t=>{let e=Number.isFinite(t.start)?Math.max(0,t.start):0,n=Number.isFinite(t.end)?Math.max(e+.01,t.end):e+.35;return{...t,start:e,end:Math.min(r,n)}}).filter(t=>t.end>t.start+.005).sort((t,e)=>t.start-e.start),h=function(t,e){if(0===t.length)return[];let r=[...t].sort((t,e)=>t.start-e.start),n=[],o=[],a=()=>{if(0===o.length)return;let t=o[0].start,e=Math.max(o[o.length-1].end,t+.35),r=c(o);r.length>0&&!i(r)&&n.push({start:t,end:e,text:r,words:o.map(t=>({...t}))}),o=[]};for(let t of r){if(0===o.length){o.push(t);continue}let e=o[o.length-1],r=Math.max(0,t.start-e.end),n=o[0].start,i=t.end-n,s=l(e.word);(r>.7||o.length>=7||i>=3.2||/[.!?]$/.test(s))&&a(),o.push(t)}if(a(),n.length>0)return n;let s=c(r);return s?[{start:0,end:Number.isFinite(e)&&e>.35?e:Math.max(r[r.length-1].end,.35),text:s,words:r.map(t=>({...t}))}]:[]}(f,r);if(0===h.length)throw Error("Local model returned an empty transcript. Try a shorter clip or use Pro cloud transcription.");let g={type:"TRANSCRIBE_SUCCESS",requestId:n,modelId:a,segments:h,text:u.text||c(f)};t.postMessage(g)}catch(r){let e={type:"TRANSCRIBE_ERROR",requestId:n,error:r instanceof Error?r.message:"Local browser transcription failed"};t.postMessage(e)}}})(),_N_E={}})();

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.