UNPKG

@ckeditor/ckeditor5-real-time-collaboration

Version:

A set of CKEditor 5 features enabling real-time collaboration within the editor using CKEditor Cloud Services.

24 lines • 37.3 kB
/* * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0x5d62(_0x3499c1,_0x13a46d){const _0x3e0fd3=_0x3e0f();return _0x5d62=function(_0x5d62f9,_0xe40c3c){_0x5d62f9=_0x5d62f9-0x147;let _0x134a0b=_0x3e0fd3[_0x5d62f9];return _0x134a0b;},_0x5d62(_0x3499c1,_0x13a46d);}const _0x42231a=_0x5d62;(function(_0x2d4ce3,_0x32eae7){const _0x46a10a=_0x5d62,_0x366b75=_0x2d4ce3();while(!![]){try{const _0x483a1f=parseInt(_0x46a10a(0x1b2))/0x1*(-parseInt(_0x46a10a(0x1af))/0x2)+parseInt(_0x46a10a(0x198))/0x3+parseInt(_0x46a10a(0x184))/0x4+parseInt(_0x46a10a(0x179))/0x5*(-parseInt(_0x46a10a(0x176))/0x6)+parseInt(_0x46a10a(0x1f3))/0x7+parseInt(_0x46a10a(0x225))/0x8+-parseInt(_0x46a10a(0x23b))/0x9;if(_0x483a1f===_0x32eae7)break;else _0x366b75['push'](_0x366b75['shift']());}catch(_0x44588d){_0x366b75['push'](_0x366b75['shift']());}}}(_0x3e0f,0xd9d75));import{Plugin as _0x3134c0,PendingActions as _0x4bd464}from'ckeditor5/src/core.js';import{CKEditorError as _0x2c870b,version as _0x1cff5b,uid as _0x585be3}from'ckeditor5/src/utils.js';import{Notification as _0x4cfb02}from'ckeditor5/src/ui.js';import{transformOperationSets as _0x1e0f51,NoOperation as _0x256757,InsertOperation as _0x41d737,MarkerOperation as _0x2f2e78,RootAttributeOperation as _0x4bb47a,OperationFactory as _0x495498,History as _0x36b72c}from'ckeditor5/src/engine.js';function _0x3e0f(){const _0x4e367e=['fromJSON','_bufferRootLoad','locale','toJSON','getOperationAuthor','unregister','lastDocumentSession','_channelId','then','compress','setIdForTheLastOperation','getConnectedSessions','reconnect','suppressErrorInCollaboration','isEnabled','history','_lastSyncedOperationId','real-time-collaboration','length','targetPosition','channelSessions','2542792TrPtyf','string','apply','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','$root','isDocumentOperation','batch','sendOperations','end','define','Synchronization\x20issue','addRoot','version','mySessionId','_isPendingUpdate','isOfficialPlugin','CommentsOnly','connect','root','multi-root-editor-root-attributes-no-root','_isAttached','isUndoneOperation','_connectService','realtimecollaborationclient-init-service-internal-error','_decompressOperations','listenTo','_knownRootNames','createRange','addOperation','realtimecollaborationclient-handleserverresponse','_authorId','_handleReconnectionResponse','_currentBufferDelay','wereChangesApplied','_handleSendingSelectionMarkers','getMany','realtimecollaborationclient-init-service-incorrect-server-operation','realtimecollaborationclient-init-non-existent-root','connected','change:_isEditingAllowed','cloud-services-internal-error:\x20Not\x20connected.','disconnected','createPositionAt','realtimecollaborationclient','realtimecollaborationclient-sendbufferedoperations','cloudServices.bundleVersion','showWarning','pluginName','currentDocumentSession','message','8949168NQZjAC','keys','_sendBufferedOperations','collaboration-missing-channelid','finally','cloud-services-internal-error:\x20Request\x20timeout.','_refreshUserSelectionMarkers','map','type','_getOperationsFromInitData','start','metadata','bind','createRoot','size','createdAt','_updateServerHistory','collaboration.channelId','ready','operationsReceived','round','setPermissions','17319960uuPvDQ','entries','_handleExternalOperations','_applyOperationsSet','plugins','_sendBufferedOperationsDelayed','_isEditingAllowed','slice','differ','rtc-offline','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','push','get','realtimecollaborationclient-init-connection-failed','disconnect','remove','applyOperation','_loadRoot','init','config','_hasSynchronizationProblem','enqueueChange','sessionId','change:_isPendingUpdate','editor','getOperations','position','realtimecollaborationclient-init-document-already-initialized','Notification','_bufferedOperations','from','serverHistory','offset','disableReadOnlyMode','add','rootsAttributes','requires','InsertOperation','destroy','collaboration','marker','_isInit','RealTimeCollaborationClient','code','connection','_waitUntilSynced','addUser','_offset','insert','change:range','_handleServerResponse','error','_addKnownRoot','change:hasDomSelection','model','getDocumentDetails','_hasSelectionChanged','set','state','fire','data','409','parse','loadRoot','18HJZcsW','getIdOfTheLastOperation','404','1003285FoWOcU','affectedSelectable','rtc-destroyed','_isLoaded','off','baseVersion','_clearPendingAction','document:write','getRoot','_lastServerVersion','removeFromReconnectionStack','4485712EtQxAK','enableReadOnlyMode','filter','roots','reconnection:\x20flushed\x20session','createUserMarkerOperations','startsWith','Permissions','includes','_pendingAction','_handleReconnectionError','_handleReceivedOperations','_handleInitialConnectionData','lastOperationId','permissions','_setPendingAction','newRange','getUser','sessionAdd:','PENDING_ACTION_SENDING_DATA','4573995yaZQOF','_isConnected','affectsData','selection','realtimecollaborationclient-error','createPositionFromPath','_connectAfterSessionHasBeenFlushed','_compressOperations','_shouldSendUpdate','The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_disconnectionOperations','_saveOperationInBuffer','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','forEach','move','addToReconnectionStack','userId','stopListening','_service','decompress','isReadOnly','directChange','_ignoredOperations','2SPJXGh','_isDisconnection','_fetchMissingUsers','709307xIjErz','catch','_disconnectService','lastSyncVersion','initData','sessionCreatedAt','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','return','__className','_operationToId','_baseBufferDelay','view','register','high','_setUpDataInit','stop','has','isPremiumPlugin','_operationIdentifier','editing','_shouldSendSelectionUpdate','_initSessionsHandling','_document','_initThrowingOnDataSet','rootName','_knownOperations','The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_compressor','clone','lastOperationAcceptedAt','_sendBufferedOperationsDelayId','wasUndone','cs:removeUser','document','_getAffectedRoot','attributes','reset','_crash','path','addRootAttribute','cloudDocumentVersion','markers','CollaborativeEditingService','realtimecollaborationclient-init-session-connection-error'];_0x3e0f=function(){return _0x4e367e;};return _0x3e0f();}import{WebSocketGateway as _0x1a8d74}from'./websocketgateway.js';import{Sessions as _0x9eb648}from'./sessions.js';import{UserMarkers as _0x2a1ed3}from'./usermarkers.js';import{getTranslation as _0x21bf21}from'../common-translations.js';import{Compressor as _0x413d4c}from'@ckeditor/ckeditor5-operations-compressor';import{Users as _0x1cc2b3}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x3058f7,CollaborativeEditingService as _0x18e5ee}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let K=0x1;export class RealTimeCollaborationClient extends _0x3134c0{static [_0x42231a(0x1dc)]=/* #__PURE__ -- @preserve */ ((()=>_0x18e5ee)());[_0x42231a(0x165)];[_0x42231a(0x14c)];[_0x42231a(0x155)];[_0x42231a(0x1e5)];[_0x42231a(0x1aa)];[_0x42231a(0x1c8)];[_0x42231a(0x1cd)];[_0x42231a(0x153)];[_0x42231a(0x1cb)];[_0x42231a(0x20d)];[_0x42231a(0x18d)];[_0x42231a(0x16e)];[_0x42231a(0x1d0)];[_0x42231a(0x1bc)];[_0x42231a(0x213)];[_0x42231a(0x1ee)];[_0x42231a(0x1a2)];[_0x42231a(0x1c4)];static get[_0x42231a(0x15a)](){return[_0x1a8d74,_0x9eb648,_0x2a1ed3,_0x4bd464,_0x1cc2b3,_0x4cfb02];}static get[_0x42231a(0x222)](){const _0x1abf03=_0x42231a;return _0x1abf03(0x160);}static get[_0x42231a(0x202)](){return!0x0;}static get[_0x42231a(0x1c3)](){return!0x0;}get[_0x42231a(0x1da)](){const _0x215071=_0x42231a;return this[_0x215071(0x182)]+this[_0x215071(0x165)];}get[_0x42231a(0x182)](){const _0x227c99=_0x42231a;return this[_0x227c99(0x155)][_0x227c99(0x1ff)]-this[_0x227c99(0x165)];}get[_0x42231a(0x1b5)](){const _0x36d11f=_0x42231a,_0x593709=this[_0x36d11f(0x155)][_0x36d11f(0x14f)]();for(let _0x4c47bf=_0x593709[_0x36d11f(0x1f0)]-0x1;_0x4c47bf>=0x0;_0x4c47bf--){const _0x43783d=_0x593709[_0x4c47bf];if(!this[_0x36d11f(0x1a2)][_0x36d11f(0x1c2)](_0x43783d))return _0x43783d[_0x36d11f(0x17e)]+0x1-this[_0x36d11f(0x165)];}return 0x0;}constructor(_0x1b2b6d){const _0x49ee0f=_0x42231a;if(super(_0x1b2b6d),this[_0x49ee0f(0x165)]=0x0,this[_0x49ee0f(0x14c)]=null,this[_0x49ee0f(0x155)]=new _0x36b72c(),this[_0x49ee0f(0x14e)][_0x49ee0f(0x149)][_0x49ee0f(0x1fc)](_0x49ee0f(0x15d),{}),this[_0x49ee0f(0x1e5)]=this[_0x49ee0f(0x14e)][_0x49ee0f(0x149)][_0x49ee0f(0x247)](_0x49ee0f(0x236)),!this[_0x49ee0f(0x1e5)])throw new _0x2c870b(_0x49ee0f(0x228),this);const _0x3ce55c=_0x1b2b6d[_0x49ee0f(0x149)][_0x49ee0f(0x247)](_0x49ee0f(0x220))||_0x1cff5b;this[_0x49ee0f(0x1aa)]=new RealTimeCollaborationClient[(_0x49ee0f(0x1dc))](_0x3ce55c,this[_0x49ee0f(0x1e5)]),this[_0x49ee0f(0x1c8)]=this[_0x49ee0f(0x14e)][_0x49ee0f(0x16c)][_0x49ee0f(0x1d3)],this[_0x49ee0f(0x1cd)]=new _0x413d4c(),this[_0x49ee0f(0x153)]=[],this[_0x49ee0f(0x1cb)]=new WeakSet(),this[_0x49ee0f(0x20d)]=new Set(),this[_0x49ee0f(0x16f)](_0x49ee0f(0x201),!0x1),this[_0x49ee0f(0x16f)](_0x49ee0f(0x14a),!0x1),this[_0x49ee0f(0x18d)]=null,this[_0x49ee0f(0x16e)]=!0x1,this[_0x49ee0f(0x1d0)]=null,this[_0x49ee0f(0x1bc)]=0x12c,this[_0x49ee0f(0x213)]=this[_0x49ee0f(0x1bc)],this[_0x49ee0f(0x1ee)]=null,this[_0x49ee0f(0x1a2)]=new WeakSet(),this[_0x49ee0f(0x1c4)]=new X(this[_0x49ee0f(0x1a2)]);}[_0x42231a(0x148)](){const _0x4d89a3=_0x42231a,_0x5f2fbb=this[_0x4d89a3(0x14e)],_0x1bd7c6=_0x5f2fbb[_0x4d89a3(0x23f)][_0x4d89a3(0x247)](_0x1cc2b3),_0x48b0df=_0x5f2fbb[_0x4d89a3(0x23f)][_0x4d89a3(0x247)](_0x1a8d74);this[_0x4d89a3(0x20c)](_0x1bd7c6,_0x4d89a3(0x1e2),(_0x4d9fb3,_0x44cf02)=>{const _0xfffc0=_0x4d89a3,_0x1d92cd=_0x44cf02[0x0];_0x1d92cd[_0xfffc0(0x211)]&&(_0x4d9fb3[_0xfffc0(0x1b9)]=_0x1bd7c6[_0xfffc0(0x195)](_0x1d92cd[_0xfffc0(0x211)]),_0x4d9fb3[_0xfffc0(0x1c1)]()),null===_0x1d92cd[_0xfffc0(0x211)]&&(_0x4d9fb3[_0xfffc0(0x1b9)]=null,_0x4d9fb3[_0xfffc0(0x1c1)]());},{'priority':_0x4d89a3(0x1bf)}),this[_0x4d89a3(0x20c)](_0x5f2fbb[_0x4d89a3(0x16c)][_0x4d89a3(0x1d3)][_0x4d89a3(0x19b)],_0x4d89a3(0x167),(_0xfd79bc,_0x3f9f71)=>{const _0x16ea97=_0x4d89a3;_0x3f9f71[_0x16ea97(0x1ad)]&&this[_0x16ea97(0x22b)]();}),this[_0x4d89a3(0x20c)](_0x5f2fbb[_0x4d89a3(0x1c5)][_0x4d89a3(0x1bd)],_0x4d89a3(0x16b),()=>{const _0x4db3a9=_0x4d89a3;this[_0x4db3a9(0x22b)]();}),this[_0x4d89a3(0x1c9)](),_0x5f2fbb[_0x4d89a3(0x16c)]['on'](_0x4d89a3(0x24b),(_0xfca395,_0x31899b)=>{const _0x3ff826=_0x4d89a3,_0x44c615=_0x31899b[0x0];_0x44c615[_0x3ff826(0x1f8)]&&(this[_0x3ff826(0x1a3)](_0x44c615),this[_0x3ff826(0x1a0)]()&&this[_0x3ff826(0x240)]());}),this[_0x4d89a3(0x1c0)](),this[_0x4d89a3(0x231)](_0x4d89a3(0x241))['to'](_0x48b0df,_0x4d89a3(0x170),this,_0x4d89a3(0x14a),(_0x4195b0,_0x4ed38c)=>_0x4d89a3(0x219)===_0x4195b0&&!_0x4ed38c),this['on'](_0x4d89a3(0x21a),()=>{const _0x46ffbb=_0x4d89a3;this[_0x46ffbb(0x241)]?_0x5f2fbb[_0x46ffbb(0x157)](_0x46ffbb(0x244)):_0x5f2fbb[_0x46ffbb(0x185)](_0x46ffbb(0x244));}),this[_0x4d89a3(0x241)]?_0x5f2fbb[_0x4d89a3(0x157)](_0x4d89a3(0x244)):_0x5f2fbb[_0x4d89a3(0x185)](_0x4d89a3(0x244)),this[_0x4d89a3(0x16f)](_0x4d89a3(0x199),!0x1);}async[_0x42231a(0x1ea)](){const _0x181a88=_0x42231a,_0x172de0=this[_0x181a88(0x14e)][_0x181a88(0x23f)][_0x181a88(0x247)](_0x9eb648),_0x2e9502=this[_0x181a88(0x14e)][_0x181a88(0x23f)][_0x181a88(0x247)](_0x1a8d74);try{this[_0x181a88(0x201)]=!0x0,_0x172de0[_0x181a88(0x1e3)](this[_0x181a88(0x1e5)]);const _0x419abb=await this[_0x181a88(0x1aa)][_0x181a88(0x1ea)](_0x2e9502[_0x181a88(0x162)],this[_0x181a88(0x1b5)]);await this[_0x181a88(0x212)](_0x419abb)&&(this[_0x181a88(0x201)]=!0x1,this[_0x181a88(0x17f)]());const _0x5693db=await this[_0x181a88(0x1aa)][_0x181a88(0x1e9)]();_0x172de0[_0x181a88(0x1be)](this[_0x181a88(0x1e5)],_0x5693db),this[_0x181a88(0x215)](),this[_0x181a88(0x199)]=!0x0;}catch(_0x2a23b1){if(function(_0x47c01c){const _0x273f3e=_0x181a88;return _0x273f3e(0x178)===_0x47c01c[_0x273f3e(0x161)];}(_0x2a23b1)&&this[_0x181a88(0x14c)])await this[_0x181a88(0x19e)]();else{if(function(_0x3d03c8){const _0x37239e=_0x181a88;return _0x37239e(0x173)===_0x3d03c8[_0x37239e(0x161)];}(_0x2a23b1)){const _0x98ec08=_0x21bf21(this[_0x181a88(0x14e)][_0x181a88(0x1e0)],_0x181a88(0x245));this[_0x181a88(0x18e)](_0x98ec08);}else{if(!(_0x2a23b1 instanceof J))throw _0x2a23b1;this[_0x181a88(0x18e)]();}}}}[_0x42231a(0x15c)](){const _0x507293=_0x42231a,_0x3dd62c=this[_0x507293(0x14e)][_0x507293(0x23f)][_0x507293(0x247)](_0x1a8d74),_0x4b5616=this[_0x507293(0x14e)][_0x507293(0x23f)][_0x507293(0x247)](_0x9eb648);this[_0x507293(0x14e)][_0x507293(0x185)](_0x507293(0x17b)),_0x4b5616[_0x507293(0x1f2)][_0x507293(0x1c2)](this[_0x507293(0x1e5)])&&_0x4b5616[_0x507293(0x1e3)](this[_0x507293(0x1e5)]),_0x3dd62c[_0x507293(0x183)](this),this[_0x507293(0x1b4)](),super[_0x507293(0x15c)]();}async[_0x42231a(0x212)](_0x185bd1){const _0x38b6af=_0x42231a;if(this[_0x38b6af(0x14c)]!==_0x185bd1[_0x38b6af(0x14c)]&&this[_0x38b6af(0x1ee)]!==_0x185bd1[_0x38b6af(0x191)])throw new J();return this[_0x38b6af(0x14c)]=_0x185bd1[_0x38b6af(0x14c)],this[_0x38b6af(0x168)]([],{..._0x185bd1,'wereChangesApplied':!0x1,'data':_0x185bd1[_0x38b6af(0x172)]},_0x38b6af(0x1ea));}async[_0x42231a(0x209)](_0x8eba47,_0x7de281=!0x1){const _0x4d50c9=_0x42231a,{connection:_0x4b17b1}=this[_0x4d50c9(0x14e)][_0x4d50c9(0x23f)][_0x4d50c9(0x247)](_0x1a8d74);RealTimeCollaborationClient[_0x4d50c9(0x1dc)][_0x4d50c9(0x1e9)](_0x4b17b1,this[_0x4d50c9(0x1e5)])[_0x4d50c9(0x1e6)](_0x2ef889=>this[_0x4d50c9(0x1c7)](_0x2ef889))[_0x4d50c9(0x1b3)](_0x1228f0=>{const _0x56c906=_0x4d50c9;this[_0x56c906(0x1d7)](_0x56c906(0x1dd),_0x1228f0);}),this[_0x4d50c9(0x20c)](this[_0x4d50c9(0x1aa)],_0x4d50c9(0x238),this[_0x4d50c9(0x18f)][_0x4d50c9(0x231)](this)),this[_0x4d50c9(0x20c)](this[_0x4d50c9(0x1aa)],_0x4d50c9(0x169),(_0x3049bc,_0x1910da)=>{const _0x3748ea=_0x4d50c9;this[_0x3748ea(0x1d7)](_0x3748ea(0x20a),_0x1910da);}),this[_0x4d50c9(0x20c)](this[_0x4d50c9(0x1aa)],_0x4d50c9(0x21c),()=>{const _0x4781a2=_0x4d50c9;this[_0x4781a2(0x199)]=!0x1;});const _0x3f9f0f=this[_0x4d50c9(0x1c4)][_0x4d50c9(0x177)](_0x8eba47);this[_0x4d50c9(0x201)]=!0x0;const _0x141a21=await this[_0x4d50c9(0x1aa)][_0x4d50c9(0x204)](_0x4b17b1,this[_0x4d50c9(0x19f)](_0x8eba47),_0x3f9f0f);if(this[_0x4d50c9(0x14c)]=_0x141a21[_0x4d50c9(0x14c)],_0x7de281){if(!_0x141a21[_0x4d50c9(0x214)])return void this[_0x4d50c9(0x18e)]();this[_0x4d50c9(0x201)]=!0x1,this[_0x4d50c9(0x17f)](),this[_0x4d50c9(0x155)][_0x4d50c9(0x1d6)](),this[_0x4d50c9(0x165)]=_0x141a21[_0x4d50c9(0x156)],this[_0x4d50c9(0x155)][_0x4d50c9(0x1ff)]=this[_0x4d50c9(0x165)],await this[_0x4d50c9(0x168)](_0x8eba47,_0x141a21,_0x4d50c9(0x188));}else await this[_0x4d50c9(0x190)](_0x141a21,_0x8eba47);this[_0x4d50c9(0x215)](),this[_0x4d50c9(0x199)]=!0x0;}[_0x42231a(0x215)](){const _0x593e87=_0x42231a,_0x1984d5=this[_0x593e87(0x14e)][_0x593e87(0x23f)][_0x593e87(0x247)](_0x9eb648),_0x209a5f=this[_0x593e87(0x14e)][_0x593e87(0x23f)][_0x593e87(0x247)](_0x2a1ed3),_0x23da99=_0x1984d5[_0x593e87(0x1f2)][_0x593e87(0x247)](this[_0x593e87(0x1e5)]);_0x23da99&&_0x23da99[_0x593e87(0x1f0)]>0x1?_0x209a5f[_0x593e87(0x189)]():this[_0x593e87(0x20c)](_0x1984d5,_0x593e87(0x196)+this[_0x593e87(0x1e5)],()=>{const _0x5a5cc8=_0x593e87;0x2===_0x1984d5[_0x5a5cc8(0x1f2)][_0x5a5cc8(0x247)](this[_0x5a5cc8(0x1e5)])[_0x5a5cc8(0x1f0)]&&_0x209a5f[_0x5a5cc8(0x189)]();});}async[_0x42231a(0x18f)](_0xc77258,_0x3f7b49,_0x2a5049,_0x53ea63){const _0x582ed4=_0x42231a;if(!this[_0x582ed4(0x201)]&&this[_0x582ed4(0x1c8)][_0x582ed4(0x1ff)]==_0x3f7b49){const _0x2d3847=this[_0x582ed4(0x20b)](_0x2a5049,_0x53ea63);await this[_0x582ed4(0x1b1)](_0x2d3847),this[_0x582ed4(0x23d)](_0x2d3847,_0x3f7b49,_0x2a5049[_0x582ed4(0x191)])||this[_0x582ed4(0x1d7)](_0x582ed4(0x217));}}async[_0x42231a(0x19e)](){const _0x33676d=_0x42231a;this[_0x33676d(0x1b4)]();const {locale:_0x55b57a}=this[_0x33676d(0x14e)];let _0x1489b3;try{_0x1489b3=await this[_0x33676d(0x1aa)][_0x33676d(0x16d)]();}catch{const _0x5dbd2e=_0x21bf21(_0x55b57a,_0x33676d(0x1a4));return void this[_0x33676d(0x18e)](_0x5dbd2e);}const _0x39b356=_0x1489b3[_0x33676d(0x223)]||_0x1489b3[_0x33676d(0x1e4)];if(this[_0x33676d(0x1ee)]!==_0x39b356[_0x33676d(0x191)]){const _0x148444=_0x21bf21(_0x55b57a,_0x33676d(0x1a1));return void this[_0x33676d(0x18e)](_0x148444);}await this[_0x33676d(0x209)](this[_0x33676d(0x14e)][_0x33676d(0x16c)][_0x33676d(0x1d3)][_0x33676d(0x1ed)][_0x33676d(0x14f)](),!0x0);}[_0x42231a(0x1b4)](){const _0x1896a3=_0x42231a;this[_0x1896a3(0x1aa)][_0x1896a3(0x249)](),this[_0x1896a3(0x153)]=[],clearTimeout(this[_0x1896a3(0x1d0)]),this[_0x1896a3(0x1a9)](this[_0x1896a3(0x1aa)]);}[_0x42231a(0x1c7)](_0x3629d6){const _0x34ff85=_0x42231a,_0x23adcb=this[_0x34ff85(0x14e)][_0x34ff85(0x23f)][_0x34ff85(0x247)](_0x9eb648);this[_0x34ff85(0x20c)](_0x23adcb,_0x34ff85(0x196)+this[_0x34ff85(0x1e5)],(_0x12fdfd,{session:_0x16866f})=>{const _0x3df4ae=_0x34ff85;if(_0x16866f['id']===_0x23adcb[_0x3df4ae(0x200)]){_0x12fdfd[_0x3df4ae(0x17d)]();const _0x33b2b7=this[_0x3df4ae(0x14e)][_0x3df4ae(0x23f)][_0x3df4ae(0x1c2)](_0x3df4ae(0x203))&&this[_0x3df4ae(0x14e)][_0x3df4ae(0x23f)][_0x3df4ae(0x247)](_0x3df4ae(0x203));let _0x538514=_0x16866f[_0x3df4ae(0x192)];_0x33b2b7&&_0x33b2b7[_0x3df4ae(0x1ec)]&&(_0x538514=_0x538514[_0x3df4ae(0x186)](_0x345388=>_0x3df4ae(0x180)!==_0x345388)),this[_0x3df4ae(0x14e)][_0x3df4ae(0x23f)][_0x3df4ae(0x247)](_0x3df4ae(0x18b))[_0x3df4ae(0x23a)](_0x538514,this[_0x3df4ae(0x1e5)]);}}),_0x23adcb[_0x34ff85(0x1be)](this[_0x34ff85(0x1e5)],_0x3629d6);}[_0x42231a(0x1c9)](){const _0x42f567=_0x42231a,_0x70f9a8=this[_0x42f567(0x14e)][_0x42f567(0x172)][_0x42f567(0x16f)];this[_0x42f567(0x14e)][_0x42f567(0x172)][_0x42f567(0x16f)]=(..._0x4c4189)=>{const _0x1a2e63=_0x42f567;if(!_0x4c4189[_0x4c4189[_0x1a2e63(0x1f0)]-0x1][_0x1a2e63(0x1eb)])throw new _0x2c870b(_0x1a2e63(0x1f6),this);_0x70f9a8[_0x1a2e63(0x1f5)](this[_0x1a2e63(0x14e)][_0x1a2e63(0x172)],_0x4c4189);};}[_0x42231a(0x1c0)](){const _0x1d2a18=_0x42231a;this[_0x1d2a18(0x14e)][_0x1d2a18(0x172)]['on'](_0x1d2a18(0x148),(_0x595e03,[_0x3452d6])=>{const _0x540790=_0x1d2a18;if(this[_0x540790(0x1c8)][_0x540790(0x1ff)])throw new _0x2c870b(_0x540790(0x151),this);_0x595e03[_0x540790(0x1c1)](),this[_0x540790(0x193)]();const _0xb2cad0=this[_0x540790(0x14e)][_0x540790(0x149)][_0x540790(0x247)](_0x540790(0x159)),_0xc72ddd=this[_0x540790(0x22e)](_0x3452d6,_0xb2cad0);0x0==_0xc72ddd[_0x540790(0x1f0)]&&_0xc72ddd[_0x540790(0x246)](new _0x256757(0x0)),_0x595e03[_0x540790(0x1b9)]=this[_0x540790(0x209)](_0xc72ddd)[_0x540790(0x1e6)](()=>{const _0x828a97=_0x540790;this[_0x828a97(0x14e)][_0x828a97(0x23f)][_0x828a97(0x247)](_0x1a8d74)[_0x828a97(0x1a7)](this),this[_0x828a97(0x14e)][_0x828a97(0x172)][_0x828a97(0x171)](_0x828a97(0x237));})[_0x540790(0x1b3)](_0x314c51=>this[_0x540790(0x1d7)](_0x540790(0x248),_0x314c51))[_0x540790(0x229)](()=>this[_0x540790(0x17f)]());},{'priority':_0x1d2a18(0x1bf)}),this[_0x1d2a18(0x14e)]['on'](_0x1d2a18(0x175),async(_0x2097e3,[_0x4e977f,_0x5b5f37])=>{const _0x3db0a9=_0x1d2a18;_0x2097e3[_0x3db0a9(0x1c1)]();const _0xc8f40=this[_0x3db0a9(0x14e)][_0x3db0a9(0x16c)][_0x3db0a9(0x1d3)][_0x3db0a9(0x181)](_0x4e977f);if(!this[_0x3db0a9(0x20d)][_0x3db0a9(0x1c2)](_0x4e977f)){const _0x2d36d5=_0x5b5f37&&_0x5b5f37[_0x3db0a9(0x172)]?_0x5b5f37[_0x3db0a9(0x172)]:'',_0x4df377=_0x5b5f37&&_0x5b5f37[_0x3db0a9(0x1d5)]?_0x5b5f37[_0x3db0a9(0x1d5)]:{};await this[_0x3db0a9(0x147)](_0x4e977f,_0x2d36d5,_0x4df377);}this[_0x3db0a9(0x14e)][_0x3db0a9(0x16c)][_0x3db0a9(0x14b)]({'isUndoable':!0x1},()=>{const _0xfa6491=_0x3db0a9;_0xc8f40[_0xfa6491(0x17c)]=!0x0,this[_0xfa6491(0x14e)][_0xfa6491(0x16c)][_0xfa6491(0x1d3)][_0xfa6491(0x243)][_0xfa6491(0x1df)](_0xc8f40);});},{'priority':_0x1d2a18(0x1bf)});}async[_0x42231a(0x1b1)](_0x5e1a4d){const _0x2005a1=_0x42231a,_0x44ab7f=this[_0x2005a1(0x14e)][_0x2005a1(0x23f)][_0x2005a1(0x247)](_0x1cc2b3),{connection:_0x23c65d}=this[_0x2005a1(0x14e)][_0x2005a1(0x23f)][_0x2005a1(0x247)](_0x1a8d74),_0x2d84af=new Set();for(const _0xafa6db of _0x5e1a4d){const _0x49db21=_0xafa6db[_0x2005a1(0x211)];_0x49db21&&!_0x44ab7f[_0x2005a1(0x195)](_0x49db21)&&_0x2d84af[_0x2005a1(0x158)](_0x49db21);}if(0x0===_0x2d84af[_0x2005a1(0x233)])return;const _0x12ac9b=await _0x3058f7[_0x2005a1(0x216)](_0x23c65d,Array[_0x2005a1(0x154)](_0x2d84af));for(const _0x1a5631 of _0x12ac9b)_0x44ab7f[_0x2005a1(0x195)](_0x1a5631['id'])||_0x44ab7f[_0x2005a1(0x164)](_0x1a5631);}[_0x42231a(0x22e)](_0x35633b,_0x5ba853={}){const _0x3ab9c8=_0x42231a,_0x294456=this[_0x3ab9c8(0x14e)][_0x3ab9c8(0x16c)],_0x56a33c=[];let _0x2b3251=0x0;const _0x5f3585=_0x3ab9c8(0x1f4)==typeof _0x35633b?{'main':_0x35633b}:_0x35633b;for(const _0x499d1b of Object[_0x3ab9c8(0x226)](_0x5f3585)){if(!this[_0x3ab9c8(0x1c8)][_0x3ab9c8(0x187)][_0x3ab9c8(0x1c2)](_0x499d1b))throw new _0x2c870b(_0x3ab9c8(0x218),this);const _0x94ee5c=this[_0x3ab9c8(0x14e)][_0x3ab9c8(0x172)][_0x3ab9c8(0x174)](_0x5f3585[_0x499d1b]),_0x54b6ce=this[_0x3ab9c8(0x1c8)][_0x3ab9c8(0x181)](_0x499d1b),_0x4fcbc2=new _0x41d737(_0x294456[_0x3ab9c8(0x21d)](_0x54b6ce,0x0),_0x94ee5c,_0x2b3251++);_0x56a33c[_0x3ab9c8(0x246)](_0x4fcbc2);for(const [_0x36bd1e,_0x5b5180]of _0x94ee5c[_0x3ab9c8(0x1db)]){const _0x4a79a2=_0x294456[_0x3ab9c8(0x20e)](_0x294456[_0x3ab9c8(0x19d)](_0x54b6ce,_0x5b5180[_0x3ab9c8(0x22f)][_0x3ab9c8(0x1d8)][_0x3ab9c8(0x242)]()),_0x294456[_0x3ab9c8(0x19d)](_0x54b6ce,_0x5b5180[_0x3ab9c8(0x1fb)][_0x3ab9c8(0x1d8)][_0x3ab9c8(0x242)]())),_0x3eff05=new _0x2f2e78(_0x36bd1e,null,_0x4a79a2,_0x294456[_0x3ab9c8(0x1db)],!0x0,_0x2b3251++);_0x56a33c[_0x3ab9c8(0x246)](_0x3eff05);}}if(_0x5ba853)for(const [_0x51fef1,_0x393f1d]of Object[_0x3ab9c8(0x23c)](_0x5ba853)){const _0x57ed23=_0x294456[_0x3ab9c8(0x1d3)][_0x3ab9c8(0x181)](_0x51fef1);if(!_0x57ed23)throw new _0x2c870b(_0x3ab9c8(0x206),null);for(const [_0xa82548,_0x19d554]of Object[_0x3ab9c8(0x23c)](_0x393f1d))if(null!==_0x19d554){const _0x5d6f0c=new _0x4bb47a(_0x57ed23,_0xa82548,null,_0x19d554,_0x2b3251++);_0x56a33c[_0x3ab9c8(0x246)](_0x5d6f0c);}}return _0x56a33c;}async[_0x42231a(0x147)](_0x53846e,_0x41242b,_0x5a3797){const _0x4622df=_0x42231a;this[_0x4622df(0x22e)]({[_0x53846e]:_0x41242b},{[_0x53846e]:_0x5a3797})[_0x4622df(0x1a5)]((_0x3d9f73,_0x877d48)=>{const _0x561ba6=_0x4622df;_0x3d9f73[_0x561ba6(0x17e)]=this[_0x561ba6(0x1c8)][_0x561ba6(0x1ff)]+_0x877d48,_0x3d9f73[_0x561ba6(0x15f)]=!0x0,this[_0x561ba6(0x1a3)](_0x3d9f73);}),this[_0x4622df(0x240)](),await this[_0x4622df(0x163)]();}async[_0x42231a(0x190)](_0x15f70a,_0x3b3396){const _0x43377f=_0x42231a;let _0x2132a8;this[_0x43377f(0x165)]=_0x15f70a[_0x43377f(0x156)];const _0x4319d4=_0x15f70a[_0x43377f(0x214)]&&!_0x15f70a[_0x43377f(0x1b6)],_0x4bbad2=_0x4319d4?0x0:_0x15f70a[_0x43377f(0x172)][_0x43377f(0x17e)];if(_0x3b3396[_0x43377f(0x1a5)](_0x381134=>{const _0x5ff7b9=_0x43377f;_0x381134[_0x5ff7b9(0x15f)]=!0x0,_0x381134[_0x5ff7b9(0x234)]=_0x15f70a[_0x5ff7b9(0x1b7)],_0x381134[_0x5ff7b9(0x211)]=null;}),_0x4319d4)_0x2132a8=_0x3b3396,this[_0x43377f(0x23e)](_0x2132a8,_0x4319d4);else{if(_0x15f70a[_0x43377f(0x1b6)]){const _0x1de496=this[_0x43377f(0x22e)](_0x15f70a[_0x43377f(0x1b6)]);this[_0x43377f(0x1c8)][_0x43377f(0x1ed)][_0x43377f(0x1ff)]=-_0x1de496[_0x43377f(0x1f0)],_0x1de496[_0x43377f(0x1a5)](_0x16098e=>{const _0x1f141c=_0x43377f;_0x16098e[_0x1f141c(0x17e)]-=_0x1de496[_0x1f141c(0x1f0)],_0x16098e[_0x1f141c(0x234)]=_0x15f70a[_0x1f141c(0x1b7)],_0x16098e[_0x1f141c(0x15f)]=!0x0,_0x16098e[_0x1f141c(0x211)]=null;}),this[_0x43377f(0x23e)](_0x1de496,!0x0),this[_0x43377f(0x155)][_0x43377f(0x1ff)]=-_0x1de496[_0x43377f(0x1f0)]+this[_0x43377f(0x165)],this[_0x43377f(0x235)](_0x1de496);}this[_0x43377f(0x1c8)][_0x43377f(0x1ed)][_0x43377f(0x1ff)]=_0x4bbad2,_0x2132a8=this[_0x43377f(0x20b)](_0x15f70a[_0x43377f(0x172)],_0x15f70a[_0x43377f(0x230)]),await this[_0x43377f(0x1b1)](_0x2132a8),this[_0x43377f(0x23e)](_0x2132a8,_0x4319d4);}_0x15f70a[_0x43377f(0x191)]&&(this[_0x43377f(0x1c4)][_0x43377f(0x1e8)](_0x2132a8,_0x15f70a[_0x43377f(0x191)]),this[_0x43377f(0x1ee)]=_0x15f70a[_0x43377f(0x191)]),this[_0x43377f(0x155)][_0x43377f(0x1ff)]=_0x4bbad2+this[_0x43377f(0x165)],this[_0x43377f(0x235)](_0x2132a8),_0x3b3396[_0x43377f(0x186)](_0x53dcad=>{const _0x10eec0=_0x43377f,_0x546085=this[_0x10eec0(0x1d4)](_0x53dcad);return _0x546085&&!this[_0x10eec0(0x20d)][_0x10eec0(0x1c2)](_0x546085);})[_0x43377f(0x1a5)]((_0x1b5d68,_0x196696)=>{const _0x40d3cd=_0x43377f;_0x1b5d68[_0x40d3cd(0x17e)]=this[_0x40d3cd(0x1c8)][_0x40d3cd(0x1ff)]+_0x196696,this[_0x40d3cd(0x1a3)](_0x1b5d68);}),this[_0x43377f(0x1a0)]()?(this[_0x43377f(0x213)]=0x0,this[_0x43377f(0x240)](!0x0),await this[_0x43377f(0x163)]()):(this[_0x43377f(0x201)]=!0x1,this[_0x43377f(0x17f)]());}[_0x42231a(0x1d7)](_0x4f8e8d,_0x1e94a4){const _0x433931=_0x42231a,_0x20e8c9=_0x1e94a4&&_0x1e94a4[_0x433931(0x224)];if(_0x20e8c9&&_0x20e8c9[_0x433931(0x18a)](_0x433931(0x21e)))throw _0x1e94a4;const _0x3562b8=this[_0x433931(0x14e)][_0x433931(0x23f)][_0x433931(0x247)](_0x1a8d74);throw this[_0x433931(0x201)]=!0x0,_0x3562b8[_0x433931(0x249)](),this[_0x433931(0x14e)][_0x433931(0x185)](_0x433931(0x19c)),new _0x2c870b(_0x4f8e8d,this[_0x433931(0x14e)],_0x20e8c9?{'originalError':_0x20e8c9}:void 0x0);}[_0x42231a(0x1a3)](_0x3ca0e4){const _0x158c25=_0x42231a;this[_0x158c25(0x1cb)][_0x158c25(0x1c2)](_0x3ca0e4)||(this[_0x158c25(0x1cb)][_0x158c25(0x158)](_0x3ca0e4),this[_0x158c25(0x153)][_0x158c25(0x246)](_0x3ca0e4),this[_0x158c25(0x18d)]||_0x158c25(0x15e)==_0x3ca0e4[_0x158c25(0x22d)]&&!_0x3ca0e4[_0x158c25(0x19a)]||this[_0x158c25(0x193)]());}[_0x42231a(0x240)](_0x2481f1=!0x1){const _0x124528=_0x42231a;!_0x2481f1&&this[_0x124528(0x201)]||(this[_0x124528(0x201)]=!0x0,clearTimeout(this[_0x124528(0x1d0)]),this[_0x124528(0x1d0)]=setTimeout(()=>{const _0x119142=_0x124528;this[_0x119142(0x227)]()[_0x119142(0x1e6)](_0x2a3f71=>{const _0x896b08=_0x119142;_0x2a3f71&&(this[_0x896b08(0x17f)](),this[_0x896b08(0x201)]=!0x1);})[_0x119142(0x1b3)](_0x26bf31=>{const _0x115322=_0x119142;this[_0x115322(0x17f)](),this[_0x115322(0x201)]=!0x1,function(_0x1afcac){const _0x1b2c85=_0x115322;return _0x1afcac[_0x1b2c85(0x224)][_0x1b2c85(0x18a)](_0x1b2c85(0x21b))||_0x1afcac[_0x1b2c85(0x224)][_0x1b2c85(0x18a)](_0x1b2c85(0x1b8))||_0x1afcac[_0x1b2c85(0x224)][_0x1b2c85(0x18a)](_0x1b2c85(0x22a));}(_0x26bf31)||this[_0x115322(0x1d7)](_0x26bf31[_0x115322(0x224)],_0x26bf31);});},this[_0x124528(0x213)]));}[_0x42231a(0x163)](){return new Promise(_0x4d03f2=>{const _0x42bdf7=_0x5d62;this['on'](_0x42bdf7(0x14d),()=>{_0x4d03f2();});});}async[_0x42231a(0x227)](){const _0x48a5df=_0x42231a,_0x229294=this[_0x48a5df(0x14e)][_0x48a5df(0x23f)][_0x48a5df(0x247)](_0x2a1ed3);if(this[_0x48a5df(0x1c6)]()&&(_0x229294[_0x48a5df(0x189)](),this[_0x48a5df(0x16e)]=!0x1),!this[_0x48a5df(0x1a0)]())return!0x0;const _0x21439e=[...this[_0x48a5df(0x153)]];for(const _0x361a1a of _0x21439e)_0x361a1a[_0x48a5df(0x1d1)]=this[_0x48a5df(0x1c8)][_0x48a5df(0x1ed)][_0x48a5df(0x208)](_0x361a1a);const _0x51d44f=this[_0x48a5df(0x1c4)][_0x48a5df(0x177)](_0x21439e),_0x4f74c1=K++,_0x100862=this[_0x48a5df(0x19f)](_0x21439e),_0x98312e=await this[_0x48a5df(0x1aa)][_0x48a5df(0x1fa)](_0x100862,_0x100862[_0x48a5df(0x17e)],_0x51d44f);try{return await this[_0x48a5df(0x168)](_0x21439e,_0x98312e,_0x4f74c1);}catch(_0x5d7857){return this[_0x48a5df(0x1d7)](_0x48a5df(0x21f),_0x5d7857);}}async[_0x42231a(0x168)](_0x26f1b6,_0x283662,_0x432fc1){const _0x4c74cf=_0x42231a;if(_0x4c74cf(0x169)in _0x283662)throw _0x283662[_0x4c74cf(0x169)];let _0x1ae37c=!0x1;if(_0x283662[_0x4c74cf(0x214)]){_0x283662[_0x4c74cf(0x191)]&&(this[_0x4c74cf(0x1ee)]=_0x283662[_0x4c74cf(0x191)]),this[_0x4c74cf(0x153)]=this[_0x4c74cf(0x153)][_0x4c74cf(0x186)](_0x499f32=>!_0x26f1b6[_0x4c74cf(0x18c)](_0x499f32));for(const _0x2ef49d of _0x26f1b6)_0x2ef49d[_0x4c74cf(0x234)]=_0x4c74cf(0x1cf)in _0x283662&&_0x283662[_0x4c74cf(0x1cf)]||void 0x0;Q(_0x26f1b6,_0x283662[_0x4c74cf(0x1ff)]-_0x26f1b6[_0x4c74cf(0x1f0)]),this[_0x4c74cf(0x235)](_0x26f1b6);const _0x1e9d39=_0x26f1b6[_0x4c74cf(0x186)](_0x31006c=>{const _0x488906=_0x4c74cf;if(!_0x31006c[_0x488906(0x15f)])return!0x1;const _0x35705c=this[_0x488906(0x1d4)](_0x31006c);return _0x35705c&&!this[_0x488906(0x20d)][_0x488906(0x1c2)](_0x35705c);});Q(_0x1e9d39,this[_0x4c74cf(0x1c8)][_0x4c74cf(0x1ff)]),this[_0x4c74cf(0x23e)](_0x1e9d39),_0x1ae37c=!0x0,this[_0x4c74cf(0x213)]=this[_0x4c74cf(0x1bc)];}else{const _0x23c0b5=this[_0x4c74cf(0x20b)](_0x283662[_0x4c74cf(0x172)],_0x283662[_0x4c74cf(0x230)])[_0x4c74cf(0x186)](_0x35f2a5=>_0x35f2a5[_0x4c74cf(0x17e)]>=this[_0x4c74cf(0x182)]);_0x23c0b5[_0x4c74cf(0x1a5)](_0x16949e=>this[_0x4c74cf(0x16a)](_0x16949e)),this[_0x4c74cf(0x153)]=this[_0x4c74cf(0x153)][_0x4c74cf(0x186)](_0x2ba49a=>!_0x2ba49a[_0x4c74cf(0x15f)]||!this[_0x4c74cf(0x20d)][_0x4c74cf(0x1c2)](this[_0x4c74cf(0x1d4)](_0x2ba49a))),this[_0x4c74cf(0x153)][_0x4c74cf(0x1f0)]&&Q(this[_0x4c74cf(0x153)],this[_0x4c74cf(0x153)][0x0][_0x4c74cf(0x17e)]),await this[_0x4c74cf(0x1b1)](_0x23c0b5),_0x1ae37c=this[_0x4c74cf(0x23d)](_0x23c0b5,_0x283662[_0x4c74cf(0x1ff)],_0x283662[_0x4c74cf(0x191)]),this[_0x4c74cf(0x213)]=Math[_0x4c74cf(0x239)](this[_0x4c74cf(0x213)]/0x2);}return _0x1ae37c?!this[_0x4c74cf(0x1a0)]()||(this[_0x4c74cf(0x240)](!0x0),!0x1):this[_0x4c74cf(0x1d7)](_0x4c74cf(0x210));}[_0x42231a(0x23d)](_0x223921,_0x242dd8,_0x407db5){const _0x41270d=_0x42231a;try{const _0x5ae75c={'document':this[_0x41270d(0x1c8)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x249d4d,operationsB:_0x3ba9bb,originalOperations:_0x379732}=_0x1e0f51(_0x223921,this[_0x41270d(0x153)],_0x5ae75c);Q(_0x249d4d,this[_0x41270d(0x1c8)][_0x41270d(0x1ff)]),Q(_0x3ba9bb,_0x242dd8);for(const _0x1df8fc of _0x249d4d){const _0x39a0e1=_0x379732[_0x41270d(0x247)](_0x1df8fc);_0x1df8fc[_0x41270d(0x211)]=_0x39a0e1?_0x39a0e1[_0x41270d(0x211)]:null;}_0x407db5&&(this[_0x41270d(0x1c4)][_0x41270d(0x1e8)](_0x223921,_0x407db5),this[_0x41270d(0x1ee)]=_0x407db5),this[_0x41270d(0x153)]=[..._0x3ba9bb],this[_0x41270d(0x23e)](_0x249d4d),this[_0x41270d(0x235)](_0x223921);}catch(_0x3c0683){return console[_0x41270d(0x169)](_0x3c0683),!0x1;}return!0x0;}[_0x42231a(0x23e)](_0x184d29,_0x39d798=!0x1){const _0x5d0aa5=_0x42231a;this[_0x5d0aa5(0x14e)][_0x5d0aa5(0x16c)][_0x5d0aa5(0x14b)]({'isUndoable':!0x1,'isLocal':!0x1},_0x12db8d=>{const _0x5e004c=_0x5d0aa5;for(const _0x2a7226 of _0x184d29)this[_0x5e004c(0x1cb)][_0x5e004c(0x158)](_0x2a7226),this[_0x5e004c(0x16a)](_0x2a7226),_0x12db8d[_0x5e004c(0x1f9)][_0x5e004c(0x20f)](_0x2a7226),this[_0x5e004c(0x14e)][_0x5e004c(0x16c)][_0x5e004c(0x24b)](_0x2a7226);});}[_0x42231a(0x16a)](_0x47e1a2){const _0x14c8d7=_0x42231a,_0x36b4b8=this[_0x14c8d7(0x1d4)](_0x47e1a2);_0x36b4b8&&this[_0x14c8d7(0x20d)][_0x14c8d7(0x158)](_0x36b4b8);}[_0x42231a(0x1d4)](_0x41f72e){const _0x5da9ca=_0x42231a;let _0x30df93,_0xc4de89;switch(_0x41f72e[_0x5da9ca(0x22d)]){case _0x5da9ca(0x166):_0x30df93=_0x41f72e[_0x5da9ca(0x150)][_0x5da9ca(0x205)];break;case _0x5da9ca(0x15e):if(_0xc4de89=_0x41f72e[_0x5da9ca(0x194)],!_0xc4de89)return null;_0x30df93=_0xc4de89[_0x5da9ca(0x205)];break;case _0x5da9ca(0x1d9):_0x30df93=_0x41f72e[_0x5da9ca(0x205)];break;case _0x5da9ca(0x1fe):_0x30df93=_0x41f72e[_0x5da9ca(0x17a)];break;case _0x5da9ca(0x1a6):_0x30df93=_0x41f72e[_0x5da9ca(0x1f1)][_0x5da9ca(0x205)];break;default:return null;}return _0x30df93[_0x5da9ca(0x1ca)];}[_0x42231a(0x235)](_0x534f3a){const _0x25e701=_0x42231a;_0x534f3a[_0x25e701(0x1a5)](_0x41b9cf=>{const _0x365971=_0x25e701,_0x862b18=_0x41b9cf[_0x365971(0x1ce)]();_0x862b18[_0x365971(0x211)]=_0x41b9cf[_0x365971(0x211)],_0x862b18[_0x365971(0x15f)]=!!_0x41b9cf[_0x365971(0x15f)],_0x862b18[_0x365971(0x234)]=_0x41b9cf[_0x365971(0x234)],_0x862b18[_0x365971(0x17e)]+=this[_0x365971(0x165)],_0x41b9cf[_0x365971(0x1b0)]&&this[_0x365971(0x1a2)][_0x365971(0x158)](_0x862b18),this[_0x365971(0x155)][_0x365971(0x20f)](_0x862b18);});}[_0x42231a(0x18e)](_0xdb4dca){const _0x125038=_0x42231a,_0xf4db2f=this[_0x125038(0x14e)][_0x125038(0x23f)][_0x125038(0x247)](_0x125038(0x152)),_0x3bcbe0=this[_0x125038(0x14e)][_0x125038(0x1e0)];_0xdb4dca||(_0xdb4dca=_0x21bf21(_0x3bcbe0,_0x125038(0x1cc))),_0xf4db2f[_0x125038(0x221)](_0xdb4dca,{'title':_0x21bf21(_0x3bcbe0,_0x125038(0x1fd)),'namespace':_0x125038(0x1ef)}),this[_0x125038(0x14a)]=!0x0,clearTimeout(this[_0x125038(0x1d0)]),this[_0x125038(0x153)]=[],this[_0x125038(0x14e)][_0x125038(0x23f)][_0x125038(0x247)](_0x1a8d74)[_0x125038(0x249)]();}[_0x42231a(0x193)](){const _0x55d3af=_0x42231a;this[_0x55d3af(0x18d)]||(this[_0x55d3af(0x18d)]=this[_0x55d3af(0x14e)][_0x55d3af(0x23f)][_0x55d3af(0x247)](_0x4bd464)[_0x55d3af(0x158)](_0x21bf21(this[_0x55d3af(0x14e)][_0x55d3af(0x1e0)],_0x55d3af(0x197))));}[_0x42231a(0x17f)](){const _0xc4eb27=_0x42231a;this[_0xc4eb27(0x18d)]&&(this[_0xc4eb27(0x14e)][_0xc4eb27(0x23f)][_0xc4eb27(0x247)](_0x4bd464)[_0xc4eb27(0x24a)](this[_0xc4eb27(0x18d)]),this[_0xc4eb27(0x18d)]=null);}[_0x42231a(0x19f)](_0x26a715){const _0x6a5a76=_0x42231a,_0x39e54a=_0x26a715[_0x6a5a76(0x22c)](_0x3dd346=>_0x3dd346[_0x6a5a76(0x1e1)]());return this[_0x6a5a76(0x1cd)][_0x6a5a76(0x1e7)](_0x39e54a);}[_0x42231a(0x20b)](_0x4a2a70,_0x22df02){const _0x4412eb=_0x42231a;return this[_0x4412eb(0x1cd)][_0x4412eb(0x1ab)](_0x4a2a70)[_0x4412eb(0x22c)]((_0x15e401,_0x448320)=>{const _0x4c9cd3=_0x4412eb,_0x3e29aa=_0x4c9cd3(0x148)==_0x22df02[_0x448320][_0x4c9cd3(0x22d)];if(_0x4c9cd3(0x15b)==_0x15e401[_0x4c9cd3(0x1ba)]){const _0x102e70=_0x15e401[_0x4c9cd3(0x150)][_0x4c9cd3(0x205)];!this[_0x4c9cd3(0x1c8)][_0x4c9cd3(0x181)](_0x102e70)&&(this[_0x4c9cd3(0x1c8)][_0x4c9cd3(0x232)](_0x4c9cd3(0x1f7),_0x102e70)[_0x4c9cd3(0x207)]=!0x1);}const _0x2d3223=_0x495498[_0x4c9cd3(0x1de)](_0x15e401,this[_0x4c9cd3(0x1c8)]);return _0x2d3223[_0x4c9cd3(0x1d1)]=_0x15e401[_0x4c9cd3(0x1d1)],_0x2d3223[_0x4c9cd3(0x15f)]=_0x3e29aa,_0x2d3223[_0x4c9cd3(0x211)]=_0x3e29aa?null:_0x22df02[_0x448320][_0x4c9cd3(0x1a8)],_0x2d3223[_0x4c9cd3(0x1b0)]=_0x4c9cd3(0x1d2)===_0x22df02[_0x448320][_0x4c9cd3(0x22d)],_0x2d3223[_0x4c9cd3(0x234)]=_0x22df02[_0x448320][_0x4c9cd3(0x234)],_0x2d3223;});}[_0x42231a(0x22b)](){const _0x257d14=_0x42231a;this[_0x257d14(0x16e)]=!0x0,this[_0x257d14(0x1c6)]()?this[_0x257d14(0x240)]():this[_0x257d14(0x16e)]=!0x1;}[_0x42231a(0x1c6)](){const _0x3efa23=_0x42231a,_0xd512e2=this[_0x3efa23(0x14e)][_0x3efa23(0x23f)][_0x3efa23(0x247)](_0x9eb648)[_0x3efa23(0x1f2)][_0x3efa23(0x247)](this[_0x3efa23(0x1e5)]);return!this[_0x3efa23(0x14e)][_0x3efa23(0x1ac)]&&!!_0xd512e2&&_0xd512e2[_0x3efa23(0x1f0)]>0x1&&this[_0x3efa23(0x16e)];}[_0x42231a(0x1a0)](){const _0x5d0f47=_0x42231a;return this[_0x5d0f47(0x153)][_0x5d0f47(0x1f0)]>0x0||this[_0x5d0f47(0x1c6)]();}}class J extends Error{}function Q(_0x4716a4,_0x1754da){const _0x4be83f=_0x42231a;for(const _0x19f32c of _0x4716a4)_0x19f32c[_0x4be83f(0x17e)]=_0x1754da++;}class X{[_0x42231a(0x1ae)];[_0x42231a(0x1bb)];constructor(_0x498de4){const _0x5293d1=_0x42231a;this[_0x5293d1(0x1ae)]=_0x498de4,this[_0x5293d1(0x1bb)]=new WeakMap();}[_0x42231a(0x177)](_0x887d27){const _0x6de75c=_0x42231a;let _0x172016=_0x887d27[_0x6de75c(0x1f0)];for(;_0x172016--;){const _0x57163a=_0x887d27[_0x172016];if(!this[_0x6de75c(0x1ae)][_0x6de75c(0x1c2)](_0x57163a)){if(!this[_0x6de75c(0x1bb)][_0x6de75c(0x1c2)](_0x57163a)){const _0xb5bc82=_0x585be3()[_0x6de75c(0x242)](0x1,0x12);this[_0x6de75c(0x1bb)][_0x6de75c(0x16f)](_0x57163a,_0xb5bc82);}return this[_0x6de75c(0x1bb)][_0x6de75c(0x247)](_0x57163a);}}}[_0x42231a(0x1e8)](_0x206ec5,_0x3d8e79){const _0x5753cd=_0x42231a;if(!_0x3d8e79)return;let _0xb5d03f=_0x206ec5[_0x5753cd(0x1f0)];for(;_0xb5d03f--;){const _0x4ddc48=_0x206ec5[_0xb5d03f];this[_0x5753cd(0x1ae)][_0x5753cd(0x1c2)](_0x4ddc48)||this[_0x5753cd(0x1bb)][_0x5753cd(0x16f)](_0x4ddc48,_0x3d8e79);}}}