tweb/public/292.b0df81d2ca1cbd0b7402.chunk.js
Eduard Kuzmenko d4350a8e56 Build
2022-08-28 18:50:45 +02:00

2 lines
21 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(this.webpackChunktweb=this.webpackChunktweb||[]).push([[292],{4421:(e,t,s)=>{s.d(t,{Z:()=>r});var n=s(1655),i=s(6724),o=s(5003);class r{constructor(e=8){this.parallelLimit=e,this.queueId=0,this.queue=[],this.inProcess=new Set,this.lockPromise=null,this.unlockResolve=null,this.log=(0,o.kg)("LL",o.v9.Error),this.processQueue=(0,i.Z)((()=>this._processQueue()),20,!1)}clear(){this.inProcess.clear(),this.queue.length=0}lock(){this.lockPromise||(this.lockPromise=new Promise(((e,t)=>{this.unlockResolve=e})))}unlock(){this.unlockResolve&&(this.unlockResolve(),this.unlockResolve=this.lockPromise=null,this.processQueue())}processItem(e){return t=this,s=void 0,i=function*(){if(!this.lockPromise){this.inProcess.add(e);try{yield this.loadItem(e)}catch(e){new Set(["NO_ENTRY_FOUND","STORAGE_OFFLINE"]).has(null==e?void 0:e.type)||this.log.error("loadMediaQueue error:",e)}this.inProcess.delete(e),this.processQueue()}},new((n=void 0)||(n=Promise))((function(e,o){function r(e){try{c(i.next(e))}catch(e){o(e)}}function l(e){try{c(i.throw(e))}catch(e){o(e)}}function c(t){var s;t.done?e(t.value):(s=t.value,s instanceof n?s:new n((function(e){e(s)}))).then(r,l)}c((i=i.apply(t,s||[])).next())}));var t,s,n,i}loadItem(e){return e.load()}getItem(){return this.queue.shift()}addElement(e,t){this.queue[e](t),this.processQueue()}_processQueue(e){if(!(!this.queue.length||this.lockPromise||this.parallelLimit>0&&this.inProcess.size>=this.parallelLimit))do{if(e?(0,n.Z)(this.queue,e):e=this.getItem(),!e)break;this.processItem(e),e=null}while(this.inProcess.size<this.parallelLimit&&this.queue.length)}push(e){this.addElement("push",e)}unshift(e){this.addElement("unshift",e)}}},5813:(e,t,s)=>{s.d(t,{Z:()=>n});const n={Á:"A",Ă:"A",:"A",:"A",:"A",:"A",:"A",Ǎ:"A",Â:"A",:"A",:"A",:"A",:"A",:"A",Ä:"A",Ǟ:"A",Ȧ:"A",Ǡ:"A",:"A",Ȁ:"A",À:"A",:"A",Ȃ:"A",Ā:"A",Ą:"A",Å:"A",Ǻ:"A",:"A",Ⱥ:"A",Ã:"A",:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",:"AO",:"AU",:"AV",:"AV",:"AY",:"B",:"B",Ɓ:"B",:"B",Ƀ:"B",Ƃ:"B",Ć:"C",Č:"C",Ç:"C",:"C",Ĉ:"C",Ċ:"C",Ƈ:"C",Ȼ:"C",Ď:"D",:"D",:"D",:"D",:"D",Ɗ:"D",:"D",Dz:"D",Dž:"D",Đ:"D",Ƌ:"D",DZ:"DZ",DŽ:"DZ",É:"E",Ĕ:"E",Ě:"E",Ȩ:"E",:"E",Ê:"E",:"E",:"E",:"E",:"E",:"E",:"E",Ë:"E",Ė:"E",:"E",Ȅ:"E",È:"E",:"E",Ȇ:"E",Ē:"E",:"E",:"E",Ę:"E",Ɇ:"E",:"E",:"E",:"ET",:"F",Ƒ:"F",Ǵ:"G",Ğ:"G",Ǧ:"G",Ģ:"G",Ĝ:"G",Ġ:"G",Ɠ:"G",:"G",Ǥ:"G",:"H",Ȟ:"H",:"H",Ĥ:"H",:"H",:"H",:"H",:"H",Ħ:"H",Í:"I",Ĭ:"I",Ǐ:"I",Î:"I",Ï:"I",:"I",İ:"I",:"I",Ȉ:"I",Ì:"I",:"I",Ȋ:"I",Ī:"I",Į:"I",Ɨ:"I",Ĩ:"I",:"I",:"D",:"F",:"G",:"R",:"S",:"T",:"IS",Ĵ:"J",Ɉ:"J",:"K",Ǩ:"K",Ķ:"K",:"K",:"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",н:"n",г:"g",ш:"sh",щ:"sch",з:"z",х:"h",ъ:"",Ф:"F",Ы:"I",В:"V",А:"A",П:"P",Р:"R",О:"O",Л:"L",Д:"D",Ж:"ZH",Э:"E",ф:"f",ы:"i",в:"v",а:"a",п:"p",р:"r",о:"o",л:"l",д:"d",ж:"zh",э:"e",Я:"Ya",Ч:"CH",С:"S",М:"M",И:"I",Т:"T",Ь:"",Б:"B",Ю:"YU",я:"ya",ч:"ch",с:"s",м:"m",и:"i",т:"t",ь:"",б:"b",ю:"yu"}},6690:(e,t,s)=>{function n(e){return[...new Set(e)]}s.d(t,{Z:()=>n})},6519:(e,t,s)=>{function n(e,t,s,n){if("function"!=typeof s){const e=s;s=t=>t[e]}const i=s(t);if(void 0===n&&-1!==(n=e.indexOf(t))){const t=e[n-1],o=e[n+1];if((!t||s(t)>=i)&&(!o||s(o)<=i))return n;e.splice(n,1)}const o=e.length;if(!o||i<=s(e[o-1]))return e.push(t)-1;if(i>=s(e[0]))return e.unshift(t),0;for(let n=0;n<o;n++)if(i>s(e[n]))return e.splice(n,0,t),n;return console.error("wtf",e,t),e.indexOf(t)}s.d(t,{Z:()=>n})},8938:(e,t,s)=>{function n(e){}s.d(t,{Z:()=>n})},4484:(e,t,s)=>{function n(e,t){const s=e.length;if(s!==t.length)return!1;for(let n=0;n<s;++n)if(e[n]!==t[n])return!1;return!0}s.d(t,{Z:()=>n})},3306:(e,t,s)=>{function n(e){const t=e.length,s=new Uint8Array(Math.ceil(t/2));let n=0;t%2&&(s[n++]=parseInt(e.charAt(0),16));for(let i=n;i<t;i+=2)s[n++]=parseInt(e.substr(i,2),16);return s}s.d(t,{Z:()=>n})},3692:(e,t,s)=>{function n(e){return e instanceof Uint8Array?e:"string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}s.d(t,{Z:()=>n})},6654:(e,t,s)=>{function n(e,t){return e instanceof Promise?e.then(t):t(e)}s.d(t,{Z:()=>n})},3624:(e,t,s)=>{s.d(t,{k:()=>n});const n=()=>{let e={cleaned:!1};return{clean:()=>{e.cleaned=!0,e={cleaned:!1}},get:t=>{const s=e;return()=>!s.cleaned&&(!t||t())}}}},7401:(e,t,s)=>{function n(e,t="asc"){if(!e)return[];const s=e instanceof Map?[...e.keys()]:Object.keys(e).map((e=>+e));return"asc"===t?s.sort(((e,t)=>e-t)):s.sort(((e,t)=>t-e))}s.d(t,{Z:()=>n})},5701:(e,t,s)=>{s.d(t,{Z:()=>o});var n=s(6761),i=s(319);function o(e,t,s=!0,o=!0){let r,l,c,u,a=!1;const h=t=>{const s=c,n=u;try{s(e.apply(null,t))}catch(e){console.error("debounce error",e),n(e)}},d=(...e)=>{l||(l=new Promise(((e,t)=>(c=e,u=t)))),r?(clearTimeout(r),a=!0,u(),l=new Promise(((e,t)=>(c=e,u=t)))):s&&(h(e),a=!1);const d=n.Z.setTimeout((()=>{!o||s&&!a||h(e),r===d&&(r=l=c=u=void 0,a=!1)}),t);return r=d,l.catch(i.Z),l};return d.clearTimeout=()=>{r&&(n.Z.clearTimeout(r),u(),r=l=c=u=void 0,a=!1)},d}},252:(e,t,s)=>{s.d(t,{D:()=>n,Z:()=>l});var n,i=s(410),o=s(1655);function r(e,t){if(e.toExponential){const s=e-t;return s<0?-1:s>0?1:0}return function(e,t){const s=e.length;if(s!==t.length){const e=s-t.length;return e<0?-1:e>0?1:0}for(let n=0;n<s;n+=15){const s=+e.slice(n,n+15)-+t.slice(n,n+15);if(s)return s}return 0}(e,t)}!function(e){e[e.None=0]="None",e[e.Top=1]="Top",e[e.Bottom=2]="Bottom",e[e.Both=3]="Both"}(n||(n={}));class l{constructor(){this.sliceConstructor=l.getSliceConstructor(this);const e=this.constructSlice();this.slices=[e]}static getSliceConstructor(e){return class extends Array{constructor(){super(...arguments),this.end=n.None}isEnd(t){if((this.end&t)===t)return!0;let s=!1;if(t===n.Top){const n=e.last;s=!!(n.end&t)&&this.includes(n[n.length-1])}else if(t===n.Bottom){const n=e.first;s=!!(n.end&t)&&this.includes(n[0])}else if(t===n.Both)return this.isEnd(n.Top)&&this.isEnd(n.Bottom);return s&&this.setEnd(t),s}getEnds(){return{top:this.isEnd(n.Top),bottom:this.isEnd(n.Bottom),both:this.isEnd(n.Both)}}setEnd(e){this.end|=e}unsetEnd(e){this.end&=~e}splice(t,s,...i){const o=super.splice(t,s,...i);if(!this.length){const t=e.slices,s=t.indexOf(this);-1!==s&&(1===t.length?this.unsetEnd(n.Both):t.splice(s,1))}return o}}}constructSlice(...e){const t=new this.sliceConstructor(e.length);for(let s=0,n=e.length;s<n;++s)t[s]=e[s];return t}insertSlice(e,t=!0){if(!e.length)return;const s=this.slices[0];if(!s.length)return s.push(...e),s;const n=e[e.length-1],i=e[0];let o,l=-1,c=-1,u=0;for(;u<this.slices.length&&(o=this.slices[u],l=o.indexOf(n),c=o.indexOf(i),-1===c||-1===l)&&-1===c&&-1===l;++u);if(-1!==c&&-1!==l);else if(-1!==c){const t=e.slice(o.length-c);o.push(...t)}else if(-1!==l){const t=e.slice(0,e.length-l-1);o.unshift(...t)}else{let t=0;for(const s=this.slices.length;t<s;++t){const s=this.slices[t];if(1===r(e[0],s[0]))break}this.slices.splice(t,0,this.constructSlice(...e)),u=t}return t?this.flatten(u):void 0}flatten(e){if(this.slices.length>=2)for(let t=0,s=this.slices.length;t<s-1;++t){const n=this.slices[t],i=this.slices[t+1];-1!==n.indexOf(i[0])&&(n.setEnd(i.end),this.slices.splice(t+1,1),t<e&&--e,--s,--t,this.insertSlice(i,!1))}return this.slices[e]}get first(){return this.slices[0]}get last(){return this.slices[this.slices.length-1]}get slice(){return this.first}get length(){return this.slice.length}findSlice(e){for(let t=0,s=this.slices.length;t<s;++t){const s=this.slices[t],n=s.indexOf(e);if(-1!==n)return{slice:s,index:n}}}findSliceOffset(e){let t;for(let s=0;s<this.slices.length;++s){let n=0;if(t=this.slices[s],!(t.length<2))for(;n<t.length;++n)if(r(e,t[n])>=0)return{slice:t,offset:e===t[n]?n:n-1}}if(t&&t.isEnd(n.Top))return{slice:t,offset:t.length}}sliceMe(e,t,s){let i=this.slice,o=0,r=0;if(e){const t=this.findSliceOffset(e);if(!t)return;i=t.slice,o=r=t.offset,i.includes(e)&&(r+=1)}const l=Math.max(r+t,0),c=r+t+s,u=i.slice(l,c),a=t<0?s+t:s,h=Math.abs(t),d=i.length-r>=a||!!i.isEnd(n.Top)&&(u.setEnd(n.Top),!0),f=r-h>=0||!!i.isEnd(n.Bottom)&&(u.setEnd(n.Bottom),!0);return{slice:u,offsetIdOffset:o,fulfilled:n.None|(d&&f?n.Both:(d?n.Top:n.None)|(f?n.Bottom:n.None))}}unshift(...e){let t=this.first;t.length?t.isEnd(n.Bottom)||(t=this.constructSlice(),t.setEnd(n.Bottom),this.slices.unshift(t)):t.setEnd(n.Bottom),t.unshift(...e)}push(...e){let t=this.last;t.length?t.isEnd(n.Top)||(t=this.constructSlice(),t.setEnd(n.Top),this.slices.push(t)):t.setEnd(n.Top),t.push(...e)}delete(e){const t=this.findSlice(e);return!!t&&(t.slice.splice(t.index,1),!0)}deleteSlice(e){(0,o.Z)(this.slices,e)}toJSON(){const e={slices:this.slices.map((e=>({values:e.slice(),isEnd:e.getEnds()})))};return JSON.stringify(e)}static fromJSON(e){const t=JSON.parse(e),s=new l;return t.slices.forEach((e=>{const t=s.insertSlice(e.values)||s.first;e.isEnd.top&&t.setEnd(n.Top),e.isEnd.bottom&&t.setEnd(n.Bottom)})),s}}i.GO&&(i.GO.SlicedArray=l)},2566:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(2946);function i(e){return e.peer?(0,n.Z)(e.peer):e.user_id.toPeerId()}},7120:(e,t,s)=>{function n(e,t,s,n){if("chatEmpty"===e._)return!1;if(e.pFlags.deactivated&&"view_messages"!==t)return!1;const i=void 0===s;if(e.pFlags.creator&&i)return!0;if("chatForbidden"===e._||"channelForbidden"===e._||e.pFlags.left&&!e.pFlags.megagroup)return!1;if(!s&&!(s=e.admin_rights||e.banned_rights||e.default_banned_rights))return!1;let o={};switch(s&&(o=s.pFlags),t){case"embed_links":case"send_games":case"send_gifs":case"send_inline":case"send_media":case"send_messages":case"send_polls":case"send_stickers":if(!n&&e.pFlags.left)return!1;if("chatBannedRights"===s._&&o[t])return!1;if("channel"===e._&&!e.pFlags.megagroup&&!o.post_messages)return!1;break;case"delete_messages":case"manage_call":return!!o[t];case"pin_messages":return"chatAdminRights"===s._?o[t]||!!o.post_messages:!o[t];case"change_info":case"invite_users":return"chatAdminRights"===s._?o[t]:!o[t];case"change_type":case"delete_chat":return!1;case"ban_users":case"change_permissions":return"chatAdminRights"===s._&&!!o.ban_users;case"view_participants":return!("chat"!==e._&&e.pFlags.broadcast&&!e.pFlags.creator&&!e.admin_rights)}return!0}s.d(t,{Z:()=>n})},8050:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(3385);function i(e,t=(0,n.Z)(e.folder_id)){return null==e?void 0:e[t]}},3385:(e,t,s)=>{function n(e){return`index_${e}`}s.d(t,{Z:()=>n})},515:(e,t,s)=>{function n(e,t){return e+"_"+t}s.d(t,{Z:()=>n})},6566:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(2342);function i(e,t,s){if("inputMessagesFilterEmpty"===e)return t;const i=[];if(!t.length)return i;let o=!0;const r={},l=[],c=[];switch(e){case"inputMessagesFilterPhotos":r.messageMediaPhoto=!0;break;case"inputMessagesFilterPhotoVideo":r.messageMediaPhoto=!0,r.messageMediaDocument=!0,l.push("video");break;case"inputMessagesFilterVideo":r.messageMediaDocument=!0,l.push("video");break;case"inputMessagesFilterDocument":r.messageMediaDocument=!0,l.push(void 0,"photo","pdf");break;case"inputMessagesFilterVoice":r.messageMediaDocument=!0,l.push("voice");break;case"inputMessagesFilterRoundVoice":r.messageMediaDocument=!0,l.push("round","voice");break;case"inputMessagesFilterRoundVideo":r.messageMediaDocument=!0,l.push("round");break;case"inputMessagesFilterMusic":r.messageMediaDocument=!0,l.push("audio");break;case"inputMessagesFilterUrl":r.url=!0;break;case"inputMessagesFilterChatPhotos":r.avatar=!0;break;default:o=!1}if(!o)return i;for(let e=0,o=t.length;e<o;++e){const o=t[e];if(!o)continue;let u=!1;if("message"===o._){if(o.media&&r[o.media._]){const e=o.media.document;if(e&&(l.length&&!l.includes(e.type)||c.includes(e.type)))continue;u=!0}else if(r.url&&o.message){const e=["messageEntityTextUrl","messageEntityUrl"];(o.totalEntities.find((t=>e.includes(t._)))||(0,n.Z)(o.message))&&(u=!0)}}else r.avatar&&o.action&&["messageActionChannelEditPhoto","messageActionChatEditPhoto","messageActionChannelEditVideo","messageActionChatEditVideo"].includes(o.action._)&&(u=!0);if(u&&(i.push(o),i.length>=s))break}return i}},2381:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(8938);function i(e){let t,s,i,o=0;for(const r of e)if((0,n.Z)(r),r.message){if(++o>1)break;t=r.message,s=r.totalEntities,i=r.entities}return o>1&&(t=void 0,s=void 0,i=void 0),{message:t,entities:i,totalEntities:s}}},2946:(e,t,s)=>{s.d(t,{Z:()=>o});var n=s(5880),i=s(1507);function o(e){if(void 0!==e&&e.isPeerId&&e.isPeerId())return e;if((0,n.Z)(e)){const t=e.user_id;if(void 0!==t)return t.toPeerId(!1);const s=e.channel_id||e.chat_id;return void 0!==s?s.toPeerId(!0):i.NM}if(!e)return i.NM;const t="u"===e.charAt(0),s=e.substr(1).split("_");return t?s[0].toPeerId():(s[0]||"").toPeerId(!0)}},13:(e,t,s)=>{function n(e){var t;return null===(t=e.video_thumbs)||void 0===t?void 0:t[0]}s.d(t,{Z:()=>n})},8493:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(1507);function i(e){return!e.pFlags.deleted&&e.id.toPeerId()!==n.hj}},9174:(e,t,s)=>{var n;s.d(t,{Q:()=>n}),function(e){e[e.Connected=0]="Connected",e[e.Connecting=1]="Connecting",e[e.Closed=2]="Closed",e[e.TimedOut=3]="TimedOut"}(n||(n={}))},7746:(e,t,s)=>{function n(e,t){return e.replace(/[\u2640\u2642\u2764](?!\ufe0f)/g,((e,s,n)=>{if(t){const n=e.length;s+=n,t.forEach((e=>{const t=e.offset+e.length;t===s?e.length+=n:t>s&&(e.offset+=n)}))}return e+""}))}s.d(t,{Z:()=>n})},2342:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(2423);function i(e){return e?e.match(n.it):null}},2821:(e,t,s)=>{s.d(t,{Z:()=>l});var n=s(2423),i=s(6875),o=s(8859),r=s(6241);function l(e,t,s){const l=[];let c=!1;const u=e=>(0,o.Z)(t,e)?c=!1:(l.push(e),c=!0),a=[];let h,d=0;for(;h=e.match(n.QB);){const t=d+h.index;a.push(e.substr(0,h.index));const s=h[3]||h[8]||h[11]||h[13];let i;if(d-=s.length,d+=s.length,c=!1,s.match(/^`*$/))a.push(h[0]);else if(h[3])i={_:"messageEntityPre",language:"",offset:t+h[1].length,length:s.length},u(i)&&("\n"===h[5]&&(h[5]="",d-=1),a.push(h[1]+s+h[5]),d-=h[2].length+h[4].length);else if(h[7]){const e=""===h[6];i={_:n.SC[h[7]],offset:t+(e?0:h[6].length),length:s.length},u(i)&&(e?a.push(s):a.push(h[6]+s+h[9]),d-=2*h[7].length+(e?2:0))}else h[11]?(i={_:"messageEntityMentionName",user_id:h[10].toUserId(),offset:t,length:s.length},u(i)&&(a.push(s),d-=h[0].length-s.length)):h[12]&&(i={_:"messageEntityTextUrl",url:h[14],offset:t,length:s.length},u(i)&&(a.push(s),d-=h[12].length-s.length));c||a.push(h[0]),e=e.substr(h.index+h[0].length),d+=h.index+h[0].length}a.push(e);let f=a.join("");f.replace(/\s+/g,"").length||(f=e,l.splice(0,l.length)),(0,r.Z)(t,l),(0,i.Z)(t);let g=f.length;if(!s){f=f.replace(/^\s*/,"");let e=g-f.length;e&&t.forEach((t=>{t.offset=Math.max(0,t.offset-e)})),f=f.replace(/\s*$/,""),e=g-f.length,g=f.length,e&&t.forEach((e=>{e.offset+e.length>g&&(e.length=g-e.offset)}))}return f}},2491:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(1379);function i(e,t=[]){return t.forEach((t=>{"messageEntitySpoiler"===t._&&(e=(0,n.Z)(e,t).text)})),e}},5082:(e,t,s)=>{s.d(t,{Z:()=>i});var n=s(467);class i{constructor(e,t=0){this.options=e,this.minChars=t,this.fullTexts=new Map}indexObject(e,t){if(this.options&&t.trim()&&(t=(0,n.gV)(t,this.options)),!t)return this.fullTexts.delete(e),!1;this.fullTexts.set(e,t)}_search(e){const t=[],s=this.fullTexts,n=e.split(" "),i=n.length;return s.forEach(((e,s)=>{let o=!0,r=0;for(let t=0;t<i;++t){const s=n[t],i=e.indexOf(s);if(-1===i||0!==i&&" "!==e[i-1]){o=!1;break}r+=s.length}if(o){r+=i-1;const n=e.length;(this.minChars<=r||n<=r)&&t.push({fullText:e,fullTextLength:n,what:s,foundChars:r})}})),t}search(e){this.options&&(e=(0,n.gV)(e,this.options));const t=e.split("").map((e=>this._search(e))).reduce(((e,t)=>(e.push(...t),e)),[]);return t.sort(((e,t)=>e.fullTextLength-t.fullTextLength||t.foundChars-e.foundChars)),new Set(t.map((e=>e.what)))}}}}]);
//# sourceMappingURL=292.b0df81d2ca1cbd0b7402.chunk.js.map