montana/Russian/Site/messenger/dist/3345.55fdfb89c613f49da6bc.js
2026-05-18 18:05:32 +03:00

2 lines
2.8 KiB
JavaScript

"use strict";(self.webpackChunkmontana_messenger=self.webpackChunkmontana_messenger||[]).push([[3345],{31481(e,n,a){a.d(n,{Oig:()=>t});const t=!1,s=("undefined"!=typeof window&&window.innerHeight,Math.round(450),new Set(["newMessage","newScheduledMessage","deleteMessages","deleteScheduledMessages","deleteHistory","deleteParticipantHistory"]),new Set(["svg","svgz"]),new Set(["image/png","image/jpeg","image/gif"])),o=new Set(["video/mp4","video/quicktime"]);new Set(["audio/mp3","audio/ogg","audio/wav","audio/mpeg","audio/flac","audio/aac","audio/m4a","audio/mp4","audio/x-m4a"]),new Set([...s,...o]),new Set(["USERNAME_PURCHASE_AVAILABLE","USERNAME_INVALID"]),new Set(["t.me","web.t.me","a.t.me","k.t.me","z.t.me"]),new Set(["AU","BD","CA","CO","EG","HN","IE","IN","JO","MX","MY","NI","NZ","PH","PK","SA","SV","US"]),(-(10n**12n)-777n).toString(),new Set(["USER_CANCELED"])},33345(e,n,a){a.d(n,{C:()=>c});var t=a(31481);let s;function o(e){s?s.push(e):(s=[e],Promise.resolve().then(()=>{const e=s;s=void 0,e.forEach(e=>e())}))}const r=new Map,i=function(){const e=new Set;function n(n){e.delete(n)}return{runCallbacks:function(...n){e.forEach(e=>{e(...n)})},addCallback:function(a){return e.add(a),()=>{n(a)}},removeCallback:n,hasCallbacks:function(){return Boolean(e.size)}}}();function c(e,n){let a=[],s=[];const c=function(e){let t,o=!1;return(...r)=>{t=r,o||(o=!0,e(()=>{o=!1,(()=>{const e={channel:n,payloads:a},t=s;a=[],s=[],t.length?postMessage(e,t):postMessage(e)})(...t)}))}}(o);function d(e,n){a.push(e),n&&s.push(...n),c()}!function(e){self.onerror=n=>{console.error(n),e({type:"unhandledError",error:{message:n.error.message||"Uncaught exception in worker"}})},self.addEventListener("unhandledrejection",n=>{console.error(n),e({type:"unhandledError",error:{message:n.reason.message||"Uncaught rejection in worker"}})})}(d),i.addCallback(a=>{a.data?.channel===n&&function(e,n,a,s){s||(s=e=>{a({type:"update",update:e})}),n.payloads.forEach(async n=>{switch(n.type){case"init":{const{args:a}=n;"function"==typeof e?await e("init",s,...a):await(e.init?.(s,...a));break}case"callMethod":{const{messageId:s,name:o,args:i,withCallback:c}=n;try{if("function"!=typeof e&&!e[o])return;if(s&&c){const e=(...e)=>{const n=e[e.length-1];var t;a({type:"methodCallback",messageId:s,callbackArgs:e},(t=n)instanceof ArrayBuffer||t instanceof ImageBitmap?[n]:void 0)};r.set(s,e),i.push(e)}const n="function"==typeof e?await e(o,...i):await e[o](...i),{arrayBuffer:t}="object"==typeof n&&"arrayBuffer"in n&&n||{};s&&a({type:"methodResponse",messageId:s,response:n},t?[t]:void 0)}catch(e){t.Oig&&console.error(e),s&&a({type:"methodResponse",messageId:s,error:{message:e.message}})}s&&r.delete(s);break}case"cancelProgress":{const e=r.get(n.messageId);e&&(e.isCanceled=!0);break}}})}(e,a.data,d)})}onmessage=i.runCallbacks}}]);
//# sourceMappingURL=3345.55fdfb89c613f49da6bc.js.map