"use strict";(self.webpackChunktelegram_t=self.webpackChunktelegram_t||[]).push([[3345],{31481(e,a,n){n.d(a,{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,a,n){n.d(a,{C:()=>c});var t=n(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 a(a){e.delete(a)}return{runCallbacks:function(...a){e.forEach(e=>{e(...a)})},addCallback:function(n){return e.add(n),()=>{a(n)}},removeCallback:a,hasCallbacks:function(){return Boolean(e.size)}}}();function c(e,a){let n=[],s=[];const c=function(e){let t,o=!1;return(...r)=>{t=r,o||(o=!0,e(()=>{o=!1,(()=>{const e={channel:a,payloads:n},t=s;n=[],s=[],t.length?postMessage(e,t):postMessage(e)})(...t)}))}}(o);function d(e,a){n.push(e),a&&s.push(...a),c()}!function(e){self.onerror=a=>{console.error(a),e({type:"unhandledError",error:{message:a.error.message||"Uncaught exception in worker"}})},self.addEventListener("unhandledrejection",a=>{console.error(a),e({type:"unhandledError",error:{message:a.reason.message||"Uncaught rejection in worker"}})})}(d),i.addCallback(n=>{n.data?.channel===a&&function(e,a,n,s){s||(s=e=>{n({type:"update",update:e})}),a.payloads.forEach(async a=>{switch(a.type){case"init":{const{args:n}=a;"function"==typeof e?await e("init",s,...n):await(e.init?.(s,...n));break}case"callMethod":{const{messageId:s,name:o,args:i,withCallback:c}=a;try{if("function"!=typeof e&&!e[o])return;if(s&&c){const e=(...e)=>{const a=e[e.length-1];var t;n({type:"methodCallback",messageId:s,callbackArgs:e},(t=a)instanceof ArrayBuffer||t instanceof ImageBitmap?[a]:void 0)};r.set(s,e),i.push(e)}const a="function"==typeof e?await e(o,...i):await e[o](...i),{arrayBuffer:t}="object"==typeof a&&"arrayBuffer"in a&&a||{};s&&n({type:"methodResponse",messageId:s,response:a},t?[t]:void 0)}catch(e){t.Oig&&console.error(e),s&&n({type:"methodResponse",messageId:s,error:{message:e.message}})}s&&r.delete(s);break}case"cancelProgress":{const e=r.get(a.messageId);e&&(e.isCanceled=!0);break}}})}(e,n.data,d)})}onmessage=i.runCallbacks}}]); //# sourceMappingURL=3345.cd1ad0bc5ff734a05c3b.js.map