PageSourceSearch

https://haal.ir/pwa/_next/static/chunks/6128.6138e98b000f5c3f.js

js haal.ir collected 2026-10-08 02:41:51 UTC 16,050 bytes, 7 lines download raw bytes

vendor: 4,463 bytes, line 1
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6128],{36128:function(e,t,o){o.r(t),o.d(t,{i:function(){return G}}),o(83454),function(e){var t=function(e){var t,o=Object.prototype,l=o.hasOwnProperty,c="function"==typeof Symbol?Symbol:{},f=c.iterator||"@@iterator",m=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function w(e,t,o){return Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{w({},"")}catch{w=function(e,t,o){return e[t]=o}}function C(e,o,l,c){var f,m=Object.create((o&&o.prototype instanceof O?o:O).prototype),d=new u(c||[]);return m._invoke=(f=y,function(o,c){if(f===b)throw Error("Generator is already running");if(f===E){if("throw"===o)throw c;return g()}for(d.method=o,d.arg=c;;){var m=d.delegate;if(m){var j=function q(e,o){var l=e.iterator[o.method];if(l===t){if(o.delegate=null,"throw"===o.method){if(e.iterator.return&&(o.method="return",o.arg=t,q(e,o),"throw"===o.method))return _;o.method="throw",o.arg=TypeError("The iterator does not provide a 'throw' method")}return _}var c=N(l,e.iterator,o.arg);if("throw"===c.type)return o.method="throw",o.arg=c.arg,o.delegate=null,_;var f=c.arg;return f?f.done?(o[e.resultName]=f.value,o.next=e.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,_):f:(o.method="throw",o.arg=TypeError("iterator result is not an object"),o.delegate=null,_)}(m,d);if(j){if(j===_)continue;return j}}if("next"===d.method)d.sent=d._sent=d.arg;else if("throw"===d.method){if(f===y)throw f=E,d.arg;d.dispatchException(d.arg)}else"return"===d.method&&d.abrupt("return",d.arg);f=b;var P=N(e,l,d);if("normal"===P.type){if(f=d.done?E:"suspendedYield",P.arg===_)continue;return{value:P.arg,done:d.done}}"throw"===P.type&&(f=E,d.method="throw",d.arg=P.arg)}}),m}function N(e,t,o){try{return{type:"normal",arg:e.call(t,o)}}catch(e){return{type:"throw",arg:e}}}e.wrap=C;var y="suspendedStart",b="executing",E="completed",_={};function O(){}function T(){}function k(){}var j={};w(j,f,function(){return this});var P=Object.getPrototypeOf,S=P&&P(P(h([])));S&&S!==o&&l.call(S,f)&&(j=S);var R=k.prototype=O.prototype=Object.create(j);function Y(e){["next","throw","return"].forEach(function(t){w(e,t,function(e){return this._invoke(t,e)})})}function I(e,t){var o;this._invoke=function(c,f){function F(){return new t(function(o,m){!function r(o,c,f,m){var d=N(e[o],e,c);if("throw"===d.type)m(d.arg);else{var y=d.arg,b=y.value;return b&&"object"==typeof b&&l.call(b,"__await")?t.resolve(b.__await).then(function(e){r("next",e,f,m)},function(e){r("throw",e,f,m)}):t.resolve(b).then(function(e){y.value=e,f(y)},function(e){return r("throw",e,f,m)})}}(c,f,o,m)})}return o=o?o.then(F,F):F()}}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function a(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function u(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function h(e){if(e){var o=e[f];if(o)return o.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var c=-1,i=function n(){for(;++c<e.length;)if(l.call(e,c))return n.value=e[c],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:g}}function g(){return{value:t,done:!0}}return T.prototype=k,w(R,"constructor",k),w(k,"constructor",T),T.displayName=w(k,d,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===T||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,w(e,d,"GeneratorFunction")),e.prototype=Object.create(R),e},e.awrap=function(e){return{__await:e}},Y(I.prototype),w(I.prototype,m,function(){return this}),e.AsyncIterator=I,e.async=function(t,o,l,c,f){void 0===f&&(f=Promise);var m=new I(C(t,o,l,c),f);return e.isGeneratorFunction(o)?m:m.next().then(function(e){return e.done?e.value:m.next()})},Y(R),w(R,d,"Generator"),w(R,f,function(){return this}),w(R,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=[];for(var o in e)t.push(o);return t.reverse(),function i(){for(;t.length;){var o=t.pop();if(o in e)return i.value=o,i.done=!1,i}return i.done=!0,i}},e.values=h,u.prototype={constructor:u,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
1h(a),!e)for(var o in this)"t"===o.charAt(0)&&l.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var o=this;function r(l,c){return m.type="throw",m.arg=e,o.next=l,c&&(o.method="next",o.arg=t),!!c}for(var c=this.tryEntries.length-1;c>=0;--c){var f=this.tryEntries[c],m=f.completion;if("root"===f.tryLoc)return r("end");if(f.tryLoc<=this.prev){var d=l.call(f,"catchLoc"),y=l.call(f,"finallyLoc");if(d&&y){if(this.prev<f.catchLoc)return r(f.catchLoc,!0);if(this.prev<f.finallyLoc)return r(f.finallyLoc)}else if(d){if(this.prev<f.catchLoc)return r(f.catchLoc,!0)}else if(y){if(this.prev<f.finallyLoc)return r(f.finallyLoc)}else throw Error("try statement without catch or finally")}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&l.call(c,"finallyLoc")&&this.prev<c.finallyLoc){var f=c;break}}f&&("break"===e||"continue"===e)&&f.tryLoc<=t&&t<=f.finallyLoc&&(f=null);var m=f?f.completion:{};return m.type=e,m.arg=t,f?(this.method="next",this.next=f.finallyLoc,_):this.complete(m)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),_},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),a(o),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var l=o.completion;if("throw"===l.type){var c=l.arg;a(o)}return c}}throw Error("illegal catch attempt")},delegateYield:function(e,o,l){return this.delegate={iterator:h(e),resultName:o,nextLoc:l},"next"===this.method&&(this.arg=t),_}},e}(e.exports);try{regeneratorRuntime=t}catch{"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});let l={name:"@ffmpeg/ffmpeg",version:"0.11.6",description:"FFmpeg WebAssembly version",main:"src/index.js",types:"src/index.d.ts",directories:{example:"examples"},scripts:{start:"node scripts/server.js","start:worker":"node scripts/worker-server.js",build:"rimraf dist && webpack --config scripts/webpack.config.prod.js","build:worker":"rimraf dist && webpack --config scripts/webpack.config.worker.prod.js",prepublishOnly:"npm run build",lint:"eslint src",wait:"rimraf dist && wait-on http://localhost:3000/dist/ffmpeg.dev.js",test:"npm-run-all -p -r start test:all","test:all":"npm-run-all wait test:browser:ffmpeg test:node:all","test:node":"node node_modules/mocha/bin/_mocha --exit --bail --require ./scripts/test-helper.js","test:node:all":"npm run test:node -- ./tests/*.test.js","test:browser":"mocha-headless-chrome -a allow-file-access-from-files -a incognito -a no-sandbox -a disable-setuid-sandbox -a disable-logging -t 300000","test:browser:ffmpeg":"npm run test:browser -- -f ./tests/ffmpeg.test.html"},browser:{"./src/node/index.js":"./src/browser/index.js"},repository:{type:"git",url:"git+https://github.com/ffmpegwasm/ffmpeg.wasm.git"},keywords:["ffmpeg","WebAssembly","video"],author:"Jerome Wu <[email protected]>",license:"MIT",bugs:{url:"https://github.com/ffmpegwasm/ffmpeg.wasm/issues"},engines:{node:">=12.16.1"},homepage:"https://github.com/ffmpegwasm/ffmpeg.wasm#readme",dependencies:{"is-url":"^1.2.4","node-fetch":"^2.6.1","regenerator-runtime":"^0.13.7","resolve-url":"^0.2.1"},devDependencies:{"@babel/core":"^7.12.3","@babel/preset-env":"^7.12.1","@ffmpeg/core":"^0.11.0","@types/emscripten":"^1.39.4","babel-eslint":"^10.1.0","babel-loader":"^8.1.0",chai:"^4.2.0",cors:"^2.8.5",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.1.0","eslint-plugin-import":"^2.22.1",express:"^4.17.1",mocha:"^8.2.1","mocha-headless-chrome":"^2.0.3","npm-run-all":"^4.1.5","wait-on":"^5.3.0",webpack:"^5.3.2","webpack-cli":"^4.1.0","webpack-dev-middleware":"^4.0.0"}},c=`https://unpkg.com/@ffmpeg/core@${l.devDependencies["@ffmpeg/core"].substring(1)}/dist/ffmpeg-core.js`,f=!1,X=()=>{};var m={logging:!1,setLogging:e=>{f=e},setCustomLogger:e=>{X=e},log:(e,t)=>
1{X({type:e,message:t}),f&&console.log(`[${e}] ${t}`)}},d={CREATE_FFMPEG_CORE_IS_NOT_DEFINED:e=>`
2createFFmpegCore is not defined. ffmpeg.wasm is unable to find createFFmpegCore after loading ffmpeg-core.js from ${e}. Use another URL when calling createFFmpeg():
3
4const ffmpeg = createFFmpeg({
5  corePath: 'http://localhost:3000/ffmpeg-core.js',
6});
7`};let W=async(e,t)=>{m.log("info",`fetch ${e}`);let o=await (await fetch(e)).arrayBuffer();m.log("info",`${e} file size = ${o.byteLength} bytes`);let l=new Blob([o],{type:t}),c=URL.createObjectURL(l);return m.log("info",`${e} blob URL = ${c}`),c},Ce=async({corePath:e,workerPath:t,wasmPath:o})=>{if("u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){if("string"!=typeof e)throw Error("corePath should be a string!");let l=new URL(e,"file:///opt/haal-userpanel-pwa/node_modules/react-audio-voice-recorder/dist/index-1c988149.js").href,c=await W(l,"application/javascript"),f=await W(void 0!==o?o:l.replace("ffmpeg-core.js","ffmpeg-core.wasm"),"application/wasm"),y=await W(void 0!==t?t:l.replace("ffmpeg-core.js","ffmpeg-core.worker.js"),"application/javascript");return typeof createFFmpegCore>"u"?new Promise(e=>{if(globalThis.importScripts(c),typeof createFFmpegCore>"u")throw Error(d.CREATE_FFMPEG_CORE_IS_NOT_DEFINED(l));m.log("info","ffmpeg-core.js script loaded"),e({createFFmpegCore,corePath:c,wasmPath:f,workerPath:y})}):(m.log("info","ffmpeg-core.js script is loaded already"),Promise.resolve({createFFmpegCore,corePath:c,wasmPath:f,workerPath:y}))}if("string"!=typeof e)throw Error("corePath should be a string!");let l=new URL(e,"file:///opt/haal-userpanel-pwa/node_modules/react-audio-voice-recorder/dist/index-1c988149.js").href,c=await W(l,"application/javascript"),f=await W(void 0!==o?o:l.replace("ffmpeg-core.js","ffmpeg-core.wasm"),"application/wasm"),y=await W(void 0!==t?t:l.replace("ffmpeg-core.js","ffmpeg-core.worker.js"),"application/javascript");return typeof createFFmpegCore>"u"?new Promise(e=>{let t=document.createElement("script"),v=()=>{if(t.removeEventListener("load",v),typeof createFFmpegCore>"u")throw Error(d.CREATE_FFMPEG_CORE_IS_NOT_DEFINED(l));m.log("info","ffmpeg-core.js script loaded"),e({createFFmpegCore,corePath:c,wasmPath:f,workerPath:y})};t.src=c,t.type="text/javascript",t.addEventListener("load",v),document.getElementsByTagName("head")[0].appendChild(t)}):(m.log("info","ffmpeg-core.js script is loaded already"),Promise.resolve({createFFmpegCore,corePath:c,wasmPath:f,workerPath:y}))},Te=e=>new Promise((t,o)=>{let l=new FileReader;l.onload=()=>{t(l.result)},l.onerror=({target:{error:{code:e}}})=>{o(Error(`File could not be read! Code=${e}`))},l.readAsArrayBuffer(e)}),Re=async e=>{let t=e;return typeof e>"u"?new Uint8Array:("string"==typeof e?t=/data:_data\/([a-zA-Z]*);base64,([^"]*)/.test(e)?atob(e.split(",")[1]).split("").map(e=>e.charCodeAt(0)):await (await fetch(new URL(e,"file:///opt/haal-userpanel-pwa/node_modules/react-audio-voice-recorder/dist/index-1c988149.js").href)).arrayBuffer():(e instanceof File||e instanceof Blob)&&(t=await Te(e)),new Uint8Array(t))},y=Object.freeze(Object.defineProperty({__proto__:null,defaultOptions:{corePath:c},fetchFile:Re,getCreateFFmpegCore:Ce},Symbol.toStringTag,{value:"Module"})),b=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var s=function p(){if(this instanceof p){var e=[null];return e.push.apply(e,arguments),new(Function.bind.apply(t,e))}return t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),s}(y),{defaultArgs:E,baseOptions:_}={defaultArgs:["./ffmpeg","-nostdin","-y"],baseOptions:{log:!1,logger:()=>{},progress:()=>{},corePath:""}},Ue=(e,t)=>{let o=e._malloc(t.length*Uint32Array.BYTES_PER_ELEMENT);return t.forEach((t,l)=>{let c=e.lengthBytesUTF8(t)+1,f=e._malloc(c);e.stringToUTF8(t,f,c),e.setValue(o+Uint32Array.BYTES_PER_ELEMENT*l,f,"i32")}),[t.length,o]},{defaultOptions:j,getCreateFFmpegCore:P}=b,{version:S}=l,R=Error("ffmpeg.wasm is not ready, make sure you have completed load()."),{fetchFile:A}=b;var $={createFFmpeg:(e={})=>{let{log:t,logger:o,progress:l,...c}={..._,...j,...e},f=null,m=null,d=null,y=null,b=!1,w=()=>{},A=t,$=l,U=0,G=0,M=!1,z=0,L=e=>{"FFMPEG_END"===e&&null!==d&&(d(),d=null,y=null,b=!1)},O=(e,t)=>{w({type:e,message:t}),A&&console.log(`[${e}] ${t}`)},T=e=>{let[t,o,l]=e.split(":");return 3600*parseFloat(t)+60*parseFloat(o)+parseFloat(l)},k=(e,t)=>{if("string"==typeof e){if(e.startsWith("  Duration")){let o=e.split(", ")[0].split(": ")[1],l=T(o);t({duration:l,ratio:z}),(0===U||U>l)&&(U=l,M=!0)}else if(M&&e.startsWith("    Stream")){let t=e.match(/([\d.]+) fps/);if(t){let e=parseFloat(t[1]);G=U*e}else G=0;M=!1}else if(e.startsWith("frame")||e.startsWith("size")){let o=e.split("time=")[1].split(" ")[0],l=T(o),c=e.match(/frame=\s*(\d+)/);if(G&&c){let e=parseFloat(c[1]);z=Math.min(e/G,1)}else z=l/U;t({ratio:z,time:l})}else e.startsWith("video:")&&(t({ratio:1}),U=0)}},D=({type:e,message:t})=>{O(e,t),k(t,$),L(t)},B=async()=>
7{if(O("info","load ffmpeg-core"),null===f){O("info","loading ffmpeg-core");let{createFFmpegCore:e,corePath:t,workerPath:o,wasmPath:l}=await P(c);m=(f=await e({mainScriptUrlOrBlob:t,printErr:e=>D({type:"fferr",message:e}),print:e=>D({type:"ffout",message:e}),locateFile:(e,t)=>{if("u">typeof window||"u">typeof WorkerGlobalScope){if("u">typeof l&&e.endsWith("ffmpeg-core.wasm"))return l;if("u">typeof o&&e.endsWith("ffmpeg-core.worker.js"))return o}return t+e}})).cwrap(c.mainName||"proxy_main","number",["number","number"]),O("info","ffmpeg-core loaded")}else throw Error("ffmpeg.wasm was loaded, you should not load it again, use ffmpeg.isLoaded() to check next time.")};return O("info",`use ffmpeg.wasm v${S}`),{setProgress:e=>{$=e},setLogger:e=>{w=e},setLogging:e=>{A=e},load:B,isLoaded:()=>null!==f,run:(...e)=>{if(O("info",`run ffmpeg command: ${e.join(" ")}`),null===f)throw R;if(b)throw Error("ffmpeg.wasm can only run one command at a time");return b=!0,new Promise((t,o)=>{let l=[...E,...e].filter(e=>0!==e.length);d=t,y=o,m(...Ue(f,l))})},exit:()=>{if(null===f)throw R;y&&y("ffmpeg has exited"),b=!1;try{f.exit(1)}catch(e){O(e.message),y&&y(e)}finally{f=null,m=null,d=null,y=null}},FS:(e,...t)=>{if(O("info",`run FS.${e} ${t.map(e=>"string"==typeof e?e:`<${e.length} bytes binary file>`).join(" ")}`),null===f)throw R;{let o=null;try{o=f.FS[e](...t)}catch{throw Error("readdir"===e?`ffmpeg.FS('readdir', '${t[0]}') error. Check if the path exists, ex: ffmpeg.FS('readdir', '/')`:"readFile"===e?`ffmpeg.FS('readFile', '${t[0]}') error. Check if the path exists`:"Oops, something went wrong in FS operation.")}return o}}}},fetchFile:A};let U=$&&$.__esModule&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$,G=function(e,t){for(var o=0;o<t.length;o++){let l=t[o];if("string"!=typeof l&&!Array.isArray(l)){for(let t in l)if("default"!==t&&!(t in e)){let o=Object.getOwnPropertyDescriptor(l,t);o&&Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>l[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:U},[$])}}]);

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.